Documentation ¶
Index ¶
- Constants
- type AppGitConfigHelper
- func (ca *AppGitConfigHelper) AddFilesToRepo(paths []string) error
- func (ca *AppGitConfigHelper) CloneTemplateRepo(ctx context.Context, repoURL, projectId string) (templateDir string, err error)
- func (ca *AppGitConfigHelper) CloneUserRepo(ctx context.Context, repoURL, projectId string) (reqRepo string, err error)
- func (ca *AppGitConfigHelper) CommitRepoChanges() error
- func (ca *AppGitConfigHelper) CreateCluster(ctx context.Context, id, clusterName string) (string, error)
- func (ca *AppGitConfigHelper) DeleteArgoCDApp(ctx context.Context, ns, resName, mainApp string) error
- func (ca *AppGitConfigHelper) DeployMainApp(ctx context.Context, fileName string) (string, string, error)
- func (ca *AppGitConfigHelper) GetClusterCreds(ctx context.Context, entityName, projectId string) (string, string, string, error)
- func (ca *AppGitConfigHelper) GetClusterGlobalValues(ctx context.Context, val map[string]string) (map[string]string, error)
- func (ca *AppGitConfigHelper) GetContainerRegCreds(ctx context.Context, entityName, projectId string) (string, string, error)
- func (ca *AppGitConfigHelper) GetCosingKeys(ctx context.Context, entityName, projectId string) (string, string, error)
- func (ca *AppGitConfigHelper) GetGitCreds(ctx context.Context, projectId string) (string, string, error)
- func (ca *AppGitConfigHelper) RemoveFilesFromRepo(paths []string) error
- func (ca *AppGitConfigHelper) SyncArgoCDApp(ctx context.Context, ns, resName string) error
- func (ca *AppGitConfigHelper) WaitForArgoCDToSync(ctx context.Context, ns, resName string) error
- type Config
Constants ¶
View Source
const ( CosignKey = "cosign.key" CosignPub = "cosign.pub" DomainName = "DomainName" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppGitConfigHelper ¶
type AppGitConfigHelper struct {
// contains filtered or unexported fields
}
func NewAppGitConfigHelper ¶
func NewAppGitConfigHelper() (*AppGitConfigHelper, error)
func (*AppGitConfigHelper) AddFilesToRepo ¶
func (ca *AppGitConfigHelper) AddFilesToRepo(paths []string) error
func (*AppGitConfigHelper) CloneTemplateRepo ¶
func (*AppGitConfigHelper) CloneUserRepo ¶
func (*AppGitConfigHelper) CommitRepoChanges ¶
func (ca *AppGitConfigHelper) CommitRepoChanges() error
func (*AppGitConfigHelper) CreateCluster ¶
func (*AppGitConfigHelper) DeleteArgoCDApp ¶
func (ca *AppGitConfigHelper) DeleteArgoCDApp(ctx context.Context, ns, resName, mainApp string) error
func (*AppGitConfigHelper) DeployMainApp ¶
func (*AppGitConfigHelper) GetClusterCreds ¶
func (*AppGitConfigHelper) GetClusterGlobalValues ¶
func (*AppGitConfigHelper) GetContainerRegCreds ¶
func (*AppGitConfigHelper) GetCosingKeys ¶
func (*AppGitConfigHelper) GetGitCreds ¶
func (*AppGitConfigHelper) RemoveFilesFromRepo ¶
func (ca *AppGitConfigHelper) RemoveFilesFromRepo(paths []string) error
func (*AppGitConfigHelper) SyncArgoCDApp ¶
func (ca *AppGitConfigHelper) SyncArgoCDApp(ctx context.Context, ns, resName string) error
func (*AppGitConfigHelper) WaitForArgoCDToSync ¶
func (ca *AppGitConfigHelper) WaitForArgoCDToSync(ctx context.Context, ns, resName string) error
type Config ¶
type Config struct { GitDefaultCommitMessage string `envconfig:"GIT_COMMIT_MSG" default:"capten-config-update"` GitDefaultCommiterName string `envconfig:"GIT_COMMIT_NAME" default:"capten-bot"` GitDefaultCommiterEmail string `envconfig:"GIT_COMMIT_EMAIL" default:"capten-bot@intelops.dev"` GitVaultEntityName string `envconfig:"GIT_VAULT_ENTITY_NAME" default:"git-project"` GitCloneDir string `envconfig:"GIT_CLONE_DIR" default:"/gitCloneDir"` GitBranchName string `envconfig:"GIT_BRANCH_NAME" default:"capten-template-bot"` ManagedClusterEntityName string `envconfig:"MANAGED_CLUSER_VAULT_ENTITY_NAME" default:"managedcluster"` }
Click to show internal directories.
Click to hide internal directories.