Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginAllK8sState ¶
func GetPluginAllK8sState(nameSpace string, anFilter, labelFilter map[string]string) (statemanager.ResourceState, error)
Types ¶
type Repo ¶
type Repo struct { Owner string `validate:"required_without=Org" mapstructure:"owner"` Org string `validate:"required_without=Owner" mapstructure:"org"` Repo string `validate:"required" mapstructure:"repo"` Branch string `mapstructure:"branch"` PathWithNamespace string RepoType string `validate:"oneof=gitlab github" mapstructure:"repoType"` // This is config for gitlab BaseURL string `validate:"omitempty,url" mapstructure:"baseURL"` Visibility string `validate:"omitempty,oneof=public private internal" mapstructure:"visibility"` }
Repo is the repo info of github or gitlab
func NewRepoFromURL ¶ added in v0.9.0
NewRepoFromURL build repo struct from scm url
func (*Repo) BuildRepoInfo ¶ added in v0.9.0
func (*Repo) BuildRepoRenderConfig ¶ added in v0.9.0
BuildRepoRenderConfig will generate template render variables
func (*Repo) CreateAndRenderLocalRepo ¶ added in v0.9.0
func (d *Repo) CreateAndRenderLocalRepo(appName string, vars map[string]interface{}) (git.GitFileContentMap, error)
CreateAndRenderLocalRepo will download repo from source repo and render it locally
Click to show internal directories.
Click to hide internal directories.