appconfig

package
v0.0.0-...-7c824b2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (ca *AppGitConfigHelper) CloneTemplateRepo(ctx context.Context, repoURL, projectId string) (templateDir string, err error)

func (*AppGitConfigHelper) CloneUserRepo

func (ca *AppGitConfigHelper) CloneUserRepo(ctx context.Context, repoURL, projectId string) (reqRepo string, err error)

func (*AppGitConfigHelper) CommitRepoChanges

func (ca *AppGitConfigHelper) CommitRepoChanges() error

func (*AppGitConfigHelper) CreateCluster

func (ca *AppGitConfigHelper) CreateCluster(ctx context.Context, id, clusterName string) (string, error)

func (*AppGitConfigHelper) DeleteArgoCDApp

func (ca *AppGitConfigHelper) DeleteArgoCDApp(ctx context.Context, ns, resName, mainApp string) error

func (*AppGitConfigHelper) DeployMainApp

func (ca *AppGitConfigHelper) DeployMainApp(ctx context.Context, fileName string) (string, string, error)

func (*AppGitConfigHelper) GetClusterCreds

func (ca *AppGitConfigHelper) GetClusterCreds(ctx context.Context, entityName, projectId string) (string, string, string, error)

func (*AppGitConfigHelper) GetClusterGlobalValues

func (ca *AppGitConfigHelper) GetClusterGlobalValues(ctx context.Context, val map[string]string) (map[string]string, error)

func (*AppGitConfigHelper) GetContainerRegCreds

func (ca *AppGitConfigHelper) GetContainerRegCreds(ctx context.Context, entityName, projectId string) (string, string, error)

func (*AppGitConfigHelper) GetCosingKeys

func (ca *AppGitConfigHelper) GetCosingKeys(ctx context.Context, entityName, projectId string) (string, string, error)

func (*AppGitConfigHelper) GetGitCreds

func (ca *AppGitConfigHelper) GetGitCreds(ctx context.Context, projectId string) (string, string, error)

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"`
}

Jump to

Keyboard shortcuts

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