implementation

package
v0.0.123 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: GPL-3.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPoolingInterval = errors.New("sleep interval didn't pass")
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	CertKeyRef  v1.GitopsCertKeyRef
	HttpAuthRef v1.GitopsHttpauthRef
}

type FileKind added in v0.0.114

type FileKind struct {
	File string
	Kind string
}

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
	AuthResolved    transport.AuthMethod `json:"-"`
	API             string
	Context         string
	Definition      *v1.GitopsDefinition
	Definitions     []common.Request
}

func New

func New(definition *v1.GitopsDefinition) *Gitops

func (*Gitops) Clone added in v0.0.114

func (gitops *Gitops) Clone(auth transport.AuthMethod) error

func (*Gitops) Drift

func (gitops *Gitops) Drift(client *client.Http, user *authentication.User, definitionsOrdered []FileKind) (bool, error)

func (*Gitops) Fetch added in v0.0.114

func (gitops *Gitops) Fetch() error

func (*Gitops) GenerateHttpAuth added in v0.0.114

func (gitops *Gitops) GenerateHttpAuth(definition *v1.HttpAuthDefinition) (transport.AuthMethod, error)

func (*Gitops) GenerateSshAuth added in v0.0.114

func (gitops *Gitops) GenerateSshAuth(definition *v1.CertKeyDefinition) (transport.AuthMethod, error)

func (*Gitops) PathExists added in v0.0.114

func (gitops *Gitops) PathExists() bool

func (*Gitops) Prepare

func (gitops *Gitops) Prepare(client *client.Http, user *authentication.User) error

func (*Gitops) Pull added in v0.0.114

func (gitops *Gitops) Pull(auth transport.AuthMethod) error

func (*Gitops) ReadDefinitions added in v0.0.114

func (gitops *Gitops) ReadDefinitions(relations *relations.RelationRegistry) ([]FileKind, error)

func (*Gitops) RemoteHead added in v0.0.114

func (gitops *Gitops) RemoteHead() (plumbing.Hash, error)

func (*Gitops) Sync

func (gitops *Gitops) Sync(logger *zap.Logger, client *client.Http, user *authentication.User, definitionsOrdered []FileKind) ([]*common.Request, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL