Class MirrorContext

java.lang.Object
com.linecorp.centraldogma.server.mirror.MirrorContext

public final class MirrorContext extends Object
A context of a mirror.
  • Constructor Details

  • Method Details

    • id

      public String id()
      Returns the ID of this mirror.
    • enabled

      public boolean enabled()
      Returns whether this mirror is enabled or not.
    • schedule

      @Nullable public com.cronutils.model.Cron schedule()
      Returns the cron schedule of this mirror. null if this mirror is not scheduled automatically.
    • direction

      public MirrorDirection direction()
      Returns the direction of this mirror.
    • credential

      public Credential credential()
      Returns the credential of this mirror.
    • localRepo

      public Repository localRepo()
      Returns the local repository of this mirror.
    • localPath

      public String localPath()
      Returns the local path of this mirror.
    • remoteUri

      public URI remoteUri()
      Returns the remote URI of this mirror.
    • gitignore

      @Nullable public String gitignore()
      Returns the gitignore of this mirror.
    • zone

      @Nullable public String zone()
      Returns the zone where this mirror is pinned.
    • toString

      public String toString()
      Overrides:
      toString in class Object