implementation

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

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 FileKind added in v0.0.114

type FileKind struct {
	File string
	Kind string
}

type Gitops

type Gitops struct {
	Git             *internal.Git
	LogPath         string
	DirectoryPath   string
	PoolingInterval time.Duration
	LastPoll        time.Time
	ForcePoll       bool
	AutomaticSync   bool
	DoSync          bool
	Commit          *object.Commit
	Status          *status.Status
	Auth            *Auth
	AuthResolved    transport.AuthMethod `json:"-"`
	Context         string
	Definition      *v1.GitopsDefinition
	Definitions     []common.Request
	Ghost           bool
}

func New

func New(definition *v1.GitopsDefinition) *Gitops

func (*Gitops) Drift

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

func (*Gitops) GetGroup added in v0.0.128

func (gitops *Gitops) GetGroup() string

func (*Gitops) GetGroupIdentifier added in v0.0.128

func (gitops *Gitops) GetGroupIdentifier() string

func (*Gitops) GetName added in v0.0.128

func (gitops *Gitops) GetName() string

func (*Gitops) GetStatus added in v0.1.26

func (gitops *Gitops) GetStatus() *status.Status

func (*Gitops) Prepare

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

func (*Gitops) ShouldSync added in v0.1.26

func (gitops *Gitops) ShouldSync() bool

func (*Gitops) Sync

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

func (*Gitops) ToJson added in v0.0.128

func (gitops *Gitops) ToJson() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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