git

package
v1.5.14-0...-e6cd0ce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, monitor mntr.Monitor, committer, email string) *Client

func (*Client) Check

func (g *Client) Check() error

func (*Client) Clone

func (g *Client) Clone() (err error)

func (*Client) Commit

func (g *Client) Commit(msg string) error

func (*Client) Configure

func (g *Client) Configure(repoURL string, deploykey []byte) error

func (*Client) EmptyFolder

func (g *Client) EmptyFolder(path string) (bool, error)

func (*Client) Exists

func (g *Client) Exists(path DesiredFile) bool

func (*Client) ExistsFolder

func (g *Client) ExistsFolder(path string) (bool, error)

func (*Client) GetURL

func (g *Client) GetURL() string

func (*Client) Push

func (g *Client) Push() error

func (*Client) PushDesiredFunc

func (g *Client) PushDesiredFunc(file DesiredFile, desired *tree.Tree) func(mntr.Monitor) error

func (*Client) PushGitDesiredStates

func (g *Client) PushGitDesiredStates(monitor mntr.Monitor, msg string, desireds []GitDesiredState) (err error)

func (*Client) Read

func (g *Client) Read(path string) []byte

func (*Client) ReadFolder

func (g *Client) ReadFolder(path string) (map[string][]byte, []string, error)

func (*Client) ReadTree

func (g *Client) ReadTree(path DesiredFile) (*tree.Tree, error)

func (*Client) ReadYamlIntoStruct

func (g *Client) ReadYamlIntoStruct(path string, struc interface{}) error

func (*Client) UpdateRemote

func (g *Client) UpdateRemote(msg string, whenCloned func() []File) error

type DesiredFile

type DesiredFile string
const (
	OrbiterFile    DesiredFile = "orbiter.yml"
	BoomFile       DesiredFile = "boom.yml"
	NetworkingFile DesiredFile = "networking.yml"
	DatabaseFile   DesiredFile = "database.yml"
	ZitadelFile    DesiredFile = "zitadel.yml"
)

func (DesiredFile) WOExtension

func (d DesiredFile) WOExtension() string

type File

type File struct {
	Path    string
	Content []byte
}

type GitDesiredState

type GitDesiredState struct {
	Desired *tree.Tree
	Path    DesiredFile
}

Jump to

Keyboard shortcuts

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