Documentation
¶
Index ¶
- type GitDirectory
- type GitOpsStorage
- type GitRawStorage
- func (r *GitRawStorage) Delete(key string) error
- func (r *GitRawStorage) Exists(key string) bool
- func (r *GitRawStorage) List(parentKey string) ([]string, error)
- func (r *GitRawStorage) Read(key string) ([]byte, error)
- func (r *GitRawStorage) Sync() (UpdatedFiles, error)
- func (r *GitRawStorage) Write(key string, content []byte) error
- type GitUpdate
- type UpdateType
- type UpdatedFile
- type UpdatedFiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitDirectory ¶
type GitDirectory struct {
// contains filtered or unexported fields
}
func NewGitDirectory ¶
func NewGitDirectory(url, dir, branch string, interval time.Duration) *GitDirectory
func (*GitDirectory) Ready ¶
func (d *GitDirectory) Ready() bool
func (*GitDirectory) StartLoop ¶
func (d *GitDirectory) StartLoop()
func (*GitDirectory) WaitForUpdate ¶
func (d *GitDirectory) WaitForUpdate() GitUpdate
type GitOpsStorage ¶
GitOpsStorage implements the storage interface for GitOps purposes
func NewGitOpsStorage ¶
func NewGitOpsStorage(url, branch string) *GitOpsStorage
func (*GitOpsStorage) Ready ¶
func (s *GitOpsStorage) Ready() bool
func (*GitOpsStorage) WaitForUpdate ¶
func (s *GitOpsStorage) WaitForUpdate() UpdatedFiles
type GitRawStorage ¶
type GitRawStorage struct {
// contains filtered or unexported fields
}
func NewGitRawStorage ¶
func NewGitRawStorage(gitDir, underlyingDir string) *GitRawStorage
func (*GitRawStorage) Delete ¶
func (r *GitRawStorage) Delete(key string) error
func (*GitRawStorage) Exists ¶
func (r *GitRawStorage) Exists(key string) bool
func (*GitRawStorage) Sync ¶
func (r *GitRawStorage) Sync() (UpdatedFiles, error)
type UpdateType ¶
type UpdateType string
const ( UpdateTypeCreated UpdateType = "Created" UpdateTypeChanged UpdateType = "Changed" UpdateTypeDeleted UpdateType = "Deleted" )
type UpdatedFile ¶
type UpdatedFile struct {
GitPath string
Type UpdateType
Checksum string
APIType *meta.APIType
}
type UpdatedFiles ¶
type UpdatedFiles []*UpdatedFile
Click to show internal directories.
Click to hide internal directories.