internal

package
v0.1.60 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Auth transport.AuthMethod
}

func NewAuth

func NewAuth() *Auth

func (*Auth) Http

func (auth *Auth) Http(definition *v1.HttpAuthDefinition) error

func (*Auth) Ssh

func (auth *Auth) Ssh(definition *v1.CertKeyDefinition) error

type Git

type Git struct {
	Repository string
	Revision   string
	Directory  string
	LogPath    string
	Auth       *Auth `json:"-"`
}

func NewGit

func NewGit(definition *v1.GitopsDefinition, logpath string) (*Git, error)

func (*Git) Clone

func (g *Git) Clone() error

func (*Git) CommitFiles added in v0.1.56

func (g *Git) CommitFiles(logger *zap.Logger, message string, files []string) error

func (*Git) Fetch

func (g *Git) Fetch() (*object.Commit, error)

func (*Git) LogClose

func (g *Git) LogClose(file *os.File) error

func (*Git) LogOpen

func (g *Git) LogOpen() (*os.File, error)

func (*Git) Pull

func (g *Git) Pull() (*object.Commit, error)

func (*Git) Push added in v0.1.56

func (g *Git) Push(logger *zap.Logger) error

func (*Git) PushToRemote added in v0.1.56

func (g *Git) PushToRemote(remoteName, refSpec string) error

func (*Git) RemoteHead

func (g *Git) RemoteHead() (plumbing.Hash, error)

Jump to

Keyboard shortcuts

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