Documentation ¶
Index ¶
- func CloneAndCheckout(workDir string, cloneOptions *git.CloneOptions, branchName string) (*git.Repository, *git.Worktree, error)
- func CreateGitOps(provider string, repoURI string, hostname string) error
- func CreateGitOpsCommit(gitOpsConfig *GitOpsConfig, appSlug string, appName string, newSequence int, ...) (string, error)
- func DisableDownstreamGitOps(appID string, clusterID string) error
- func ResetGitOps() error
- func SetGitOpsError(appID string, clusterID string, errMsg string) error
- func TestGitOpsConnection(gitOpsConfig *GitOpsConfig) error
- func UpdateDownstreamGitOps(appID, clusterID, uri, branch, path, format, action string) error
- type GitOpsConfig
- type GlobalGitOpsConfig
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneAndCheckout ¶
func CreateGitOpsCommit ¶
func DisableDownstreamGitOps ¶
func ResetGitOps ¶
func ResetGitOps() error
func TestGitOpsConnection ¶
func TestGitOpsConnection(gitOpsConfig *GitOpsConfig) error
func UpdateDownstreamGitOps ¶
Types ¶
type GitOpsConfig ¶
type GitOpsConfig struct { Provider string `json:"provider"` RepoURI string `json:"repoUri"` Hostname string `json:"hostname"` Path string `json:"path"` Branch string `json:"branch"` Format string `json:"format"` Action string `json:"action"` PublicKey string `json:"publicKey"` PrivateKey string `json:"-"` IsConnected bool `json:"isConnected"` }
func GetDownstreamGitOps ¶
func GetDownstreamGitOps(appID string, clusterID string) (*GitOpsConfig, error)
GetDownstreamGitOps will return the gitops config for a downstrea, This implementation copies how it works in typescript.
func (*GitOpsConfig) CloneURL ¶
func (g *GitOpsConfig) CloneURL() string
func (*GitOpsConfig) CommitURL ¶
func (g *GitOpsConfig) CommitURL(hash string) string
type GlobalGitOpsConfig ¶
type GlobalGitOpsConfig struct { Enabled bool `json:"enabled"` Hostname string `json:"hostname"` Provider string `json:"provider"` URI string `json:"uri"` }
func GetGitOps ¶
func GetGitOps() (GlobalGitOpsConfig, error)
Click to show internal directories.
Click to hide internal directories.