internal

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: 12 Imported by: 0

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 {
	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
}

func NewGit

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

func (*Git) Clone

func (g *Git) Clone() 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) PathExists

func (g *Git) PathExists() bool

func (*Git) Pull

func (g *Git) Pull() (*object.Commit, 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