Documentation ¶
Index ¶
- type Client
- func (g *Client) Check() error
- func (g *Client) Clone() (err error)
- func (g *Client) Commit(msg string) error
- func (g *Client) Configure(repoURL string, deploykey []byte) error
- func (g *Client) EmptyFolder(path string) (bool, error)
- func (g *Client) Exists(path DesiredFile) bool
- func (g *Client) ExistsFolder(path string) (bool, error)
- func (g *Client) GetURL() string
- func (g *Client) Push() error
- func (g *Client) PushDesiredFunc(file DesiredFile, desired *tree.Tree) func(mntr.Monitor) error
- func (g *Client) PushGitDesiredStates(monitor mntr.Monitor, msg string, desireds []GitDesiredState) (err error)
- func (g *Client) Read(path string) []byte
- func (g *Client) ReadFolder(path string) (map[string][]byte, []string, error)
- func (g *Client) ReadTree(path DesiredFile) (*tree.Tree, error)
- func (g *Client) ReadYamlIntoStruct(path string, struc interface{}) error
- func (g *Client) UpdateRemote(msg string, whenCloned func() []File) error
- type DesiredFile
- type File
- type GitDesiredState
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 (*Client) Exists ¶
func (g *Client) Exists(path DesiredFile) bool
func (*Client) PushDesiredFunc ¶
func (*Client) PushGitDesiredStates ¶
func (*Client) ReadFolder ¶
func (*Client) ReadYamlIntoStruct ¶
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 GitDesiredState ¶
type GitDesiredState struct { Desired *tree.Tree Path DesiredFile }
Click to show internal directories.
Click to hide internal directories.