Documentation
¶
Index ¶
- type Auth
- type Commit
- func (c *Commit) ApplyPatch(definition idefinitions.IDefinition) ([]byte, error)
- func (c *Commit) FromJson(data []byte) error
- func (c *Commit) GenerateClone() error
- func (c *Commit) Parse(format string, spec string) error
- func (c *Commit) ToJson() ([]byte, error)
- func (c *Commit) UnmarshalJSON(data []byte) error
- func (c *Commit) WriteFile(path string, bytes []byte) error
- type FileKind
- type FilePath
- type Gitops
- func (gitops *Gitops) Commit(logger *zap.Logger, client *clients.Http, user *authentication.User, ...) error
- func (gitops *Gitops) Drift(client *clients.Http, user *authentication.User) (bool, []error)
- func (gitops *Gitops) GetAutoSync() bool
- func (gitops *Gitops) GetCommit() *object.Commit
- func (gitops *Gitops) GetDefinition() idefinitions.IDefinition
- func (gitops *Gitops) GetDirectory() string
- func (gitops *Gitops) GetFilePath(file string) (*FilePath, error)
- func (gitops *Gitops) GetForceClone() bool
- func (gitops *Gitops) GetForceSync() bool
- func (gitops *Gitops) GetGit() *internal.Git
- func (gitops *Gitops) GetGroup() string
- func (gitops *Gitops) GetGroupIdentifier() string
- func (gitops *Gitops) GetName() string
- func (gitops *Gitops) GetPack() *packer.Pack
- func (gitops *Gitops) GetQueue() *QueueTS
- func (gitops *Gitops) GetStatus() *status.Status
- func (gitops *Gitops) Prepare(client *clients.Http, user *authentication.User) error
- func (gitops *Gitops) SetCommit(commit *object.Commit, err error) error
- func (gitops *Gitops) SetForceClone(value bool)
- func (gitops *Gitops) SetForceSync(value bool)
- func (gitops *Gitops) SetPack(pack *packer.Pack, err error) error
- func (gitops *Gitops) ShouldSync() bool
- func (gitops *Gitops) Sync(logger *zap.Logger, client *clients.Http, user *authentication.User) ([]*common.Request, []error)
- func (gitops *Gitops) SyncState(logger *zap.Logger, client *clients.Http, user *authentication.User) ([]*common.Request, []error)
- func (gitops *Gitops) ToJSON() ([]byte, error)
- func (gitops *Gitops) Update(pack *packer.Pack) error
- type GitopsInternal
- type QueueTS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
CertKeyRef *v1.GitopsCertKeyRef
HttpAuthRef *v1.GitopsHttpauthRef
}
type Commit ¶ added in v0.1.56
type Commit struct {
Format iformat.Format
Patch []byte
Message string
Clone *definitions.Definition
}
func (*Commit) ApplyPatch ¶ added in v0.1.56
func (c *Commit) ApplyPatch(definition idefinitions.IDefinition) ([]byte, error)
func (*Commit) GenerateClone ¶ added in v0.1.56
func (*Commit) UnmarshalJSON ¶ added in v0.1.56
type Gitops ¶
type Gitops struct {
Gitops *GitopsInternal
Definition *v1.GitopsDefinition
}
func New ¶
func New(definition *v1.GitopsDefinition, config *configuration.Configuration) (*Gitops, error)
func (*Gitops) GetAutoSync ¶ added in v0.1.56
func (*Gitops) GetDefinition ¶ added in v0.1.30
func (gitops *Gitops) GetDefinition() idefinitions.IDefinition
func (*Gitops) GetDirectory ¶ added in v0.1.56
func (*Gitops) GetFilePath ¶ added in v0.1.56
func (*Gitops) GetForceClone ¶ added in v0.1.56
func (*Gitops) GetForceSync ¶ added in v0.1.56
func (*Gitops) GetGroupIdentifier ¶ added in v0.0.128
func (*Gitops) SetForceClone ¶ added in v0.1.56
func (*Gitops) SetForceSync ¶ added in v0.1.56
func (*Gitops) ShouldSync ¶ added in v0.1.26
type GitopsInternal ¶ added in v0.1.56
type GitopsInternal struct {
Git *internal.Git
Node *node.Node
Group string
Name string
PatchQueue *QueueTS
LogPath string
DirectoryPath string
PoolingInterval time.Duration
LastPoll time.Time
ForceClone bool
AutomaticSync bool
ForceSync bool
Commit *object.Commit
Status *status.Status
Auth *Auth
Pack *packer.Pack
Ghost bool
// contains filtered or unexported fields
}
type QueueTS ¶ added in v0.1.56
func NewQueueTS ¶ added in v0.1.56
func NewQueueTS() *QueueTS
func (*QueueTS) GetSnapshot ¶ added in v0.1.56
Source Files
¶
Click to show internal directories.
Click to hide internal directories.