gitop

package
v2.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func GetK8SConfigsRepository

func GetK8SConfigsRepository(gitConfig config.GitConfig) (k8srepo *Repository, err error)

func (*Repository) AddFile

func (repo *Repository) AddFile(filenamePath string) error

AddFile add the file to the staging area of worktree

func (*Repository) Commit

func (repo *Repository) Commit(filename, caller, message string) error

Commit with username as slack caller name annotated by (Major Tom)

func (*Repository) GetFile

func (repo *Repository) GetFile(filenamePath string) (billy.File, error)

GetFile will return an billy.Filewith read and write permission

func (*Repository) GetHeadHash

func (repo *Repository) GetHeadHash() (plumbing.Hash, error)

GetHeadHash hard reset the worktree to the commit to clear changes

func (*Repository) HardResetToCommit

func (repo *Repository) HardResetToCommit(commit plumbing.Hash) error

HardResetToCommit hard reset the worktree to the commit to clear changes

func (*Repository) Pull

func (repo *Repository) Pull() error

func (*Repository) Push

func (repo *Repository) Push() error

Jump to

Keyboard shortcuts

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