Documentation ¶
Index ¶
- Constants
- type Auth
- type AuthInternal
- type AuthType
- type CertKey
- type Event
- type Gitops
- func (gitops *Gitops) CloneOrPull(auth transport.AuthMethod) error
- func (gitops *Gitops) Definitions(relations *relations.RelationRegistry) ([]map[string]string, error)
- func (gitops *Gitops) Drift(client *client.Http, user *authentication.User, ...) (bool, error)
- func (gitops *Gitops) GetAuth() (transport.AuthMethod, error)
- func (gitops *Gitops) Prepare(client *client.Http, user *authentication.User) (*AuthType, error)
- func (gitops *Gitops) Sync(logger *zap.Logger, client *client.Http, user *authentication.User, ...) error
- type HttpAuth
Constants ¶
View Source
const HTTP_AUTH_TYPE string = "http"
View Source
const POLLING_INTERVAL_ERROR = "latest changes not pulled - waiting for interval"
View Source
const SSH_AUTH_TYPE string = "ssh"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { AuthType *AuthType CertKeyRef v1.GitopsCertKeyRef HttpAuthRef v1.GitopsHttpauthRef }
type AuthInternal ¶
type CertKey ¶
type CertKey struct { Certificate string `json:"certificate"` PublicKey string `json:"publicKey"` PrivateKey string `json:"privateKey"` PrivateKeyPassword string `json:"privateKeyPassword"` KeyStore string `json:"keystore"` KeyStorePassword string `json:"keyStorePassword"` CertStore string `json:"certstore"` CertStorePassword string `json:"certstorePassword"` Definition v1.CertKeyDefinition }
type Gitops ¶
type Gitops struct { RepoURL string Revision string DirectoryPath string PoolingInterval string LastPoll time.Time ForcePoll bool AutomaticSync bool ManualSync bool Commit *object.Commit Path string Status *status.Status Auth *Auth AuthInternal *AuthInternal `json:"-"` API string Context string Definition *v1.GitopsDefinition }
func New ¶
func New(gitopsObj *v1.GitopsDefinition) *Gitops
func (*Gitops) CloneOrPull ¶
func (gitops *Gitops) CloneOrPull(auth transport.AuthMethod) error
func (*Gitops) Definitions ¶
Click to show internal directories.
Click to hide internal directories.