Documentation ¶
Index ¶
- Variables
- func CheckAdminKind(item pkg.AdminKind) error
- func CheckDefKind(def pkg.DefKind) error
- func CheckError(err error)
- func GetAdminKinds(fileName string, bs []byte) ([]pkg.AdminKind, error)
- func GetAdminKindsFromJson(fileName string, bs []byte) ([]pkg.AdminKind, error)
- func GetAdminKindsFromYaml(fileName string, bs []byte) ([]pkg.AdminKind, error)
- func GetConsoleKindsFromJson(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
- func GetConsoleKindsFromYaml(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
- func GetDefKinds(fileName string, bs []byte) ([]pkg.DefKind, error)
- func GetDefKindsFromJson(fileName string, bs []byte) ([]pkg.DefKind, error)
- func GetDefKindsFromYaml(fileName string, bs []byte) ([]pkg.DefKind, error)
- func NewCmdAdmin() *cobra.Command
- func NewCmdAdminApply() *cobra.Command
- func NewCmdAdminDelete() *cobra.Command
- func NewCmdAdminGet() *cobra.Command
- func NewCmdConsole() *cobra.Command
- func NewCmdConsoleApply() *cobra.Command
- func NewCmdConsoleDelete() *cobra.Command
- func NewCmdConsoleGet() *cobra.Command
- func NewCmdDef() *cobra.Command
- func NewCmdDefApply() *cobra.Command
- func NewCmdDefClone() *cobra.Command
- func NewCmdDefDelete() *cobra.Command
- func NewCmdDefGet() *cobra.Command
- func NewCmdDefPatch() *cobra.Command
- func NewCmdInstall() *cobra.Command
- func NewCmdInstallCheck() *cobra.Command
- func NewCmdInstallHa() *cobra.Command
- func NewCmdInstallHaPrint() *cobra.Command
- func NewCmdInstallHaScript() *cobra.Command
- func NewCmdInstallPrint() *cobra.Command
- func NewCmdInstallPull() *cobra.Command
- func NewCmdInstallRun() *cobra.Command
- func NewCmdInstallScript() *cobra.Command
- func NewCmdLogin() *cobra.Command
- func NewCmdLogout() *cobra.Command
- func NewCmdPipeline() *cobra.Command
- func NewCmdPipelineExecute() *cobra.Command
- func NewCmdPipelineGet() *cobra.Command
- func NewCmdProject() *cobra.Command
- func NewCmdProjectExecute() *cobra.Command
- func NewCmdProjectGet() *cobra.Command
- func NewCmdRoot() *cobra.Command
- func NewCmdRun() *cobra.Command
- func NewCmdRunAbort() *cobra.Command
- func NewCmdRunGet() *cobra.Command
- func NewCmdRunLog() *cobra.Command
- func NewCmdVersion() *cobra.Command
- func PrettyJson(strJson string) (string, error)
- type Log
- type OptionsAdminApply
- type OptionsAdminDelete
- type OptionsAdminGet
- type OptionsCommon
- func (o *OptionsCommon) CheckConfigFile() error
- func (o *OptionsCommon) Complete(cmd *cobra.Command) error
- func (o *OptionsCommon) GetBuildEnvNames() ([]string, error)
- func (o *OptionsCommon) GetComponentTemplateNames() ([]string, error)
- func (o *OptionsCommon) GetConsoleProject(projectName string) (pkg.ProjectConsole, error)
- func (o *OptionsCommon) GetConsoleProjectNames() ([]string, error)
- func (o *OptionsCommon) GetEnvNames() ([]string, error)
- func (o *OptionsCommon) GetOpsBatchNames(projectName string) ([]string, error)
- func (o *OptionsCommon) GetOptionsCommon() error
- func (o *OptionsCommon) GetPipelineNames() ([]string, error)
- func (o *OptionsCommon) GetProjectDef(projectName string) (pkg.ProjectOutput, error)
- func (o *OptionsCommon) GetProjectNames() ([]string, error)
- func (o *OptionsCommon) GetRepoNames() (pkg.RepoNameList, error)
- func (o *OptionsCommon) GetRunNames() ([]string, error)
- func (o *OptionsCommon) GetStepNames() ([]string, error)
- func (o *OptionsCommon) GetUserNames() ([]string, error)
- func (o *OptionsCommon) QueryAPI(url, method, userToken string, param map[string]interface{}, showSuccess bool) (gjson.Result, string, error)
- func (o *OptionsCommon) QueryWebsocket(url, runName string) error
- func (o *OptionsCommon) TransLang(msg string, args ...interface{}) string
- type OptionsConsoleApply
- func (o *OptionsConsoleApply) CheckConsoleKind(consoleKind pkg.ConsoleKind) error
- func (o *OptionsConsoleApply) Complete(cmd *cobra.Command) error
- func (o *OptionsConsoleApply) GetConsoleKinds(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
- func (o *OptionsConsoleApply) Run(args []string) error
- func (o *OptionsConsoleApply) Validate(args []string) error
- type OptionsConsoleDelete
- type OptionsConsoleGet
- type OptionsDefApply
- type OptionsDefClone
- type OptionsDefDelete
- type OptionsDefGet
- type OptionsDefPatch
- type OptionsInstallCheck
- type OptionsInstallHaPrint
- type OptionsInstallHaScript
- type OptionsInstallPrint
- type OptionsInstallPull
- type OptionsInstallRun
- func (o *OptionsInstallRun) Complete(cmd *cobra.Command) error
- func (o *OptionsInstallRun) DoryCreateConfig(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateConfigReadme(installConfig pkg.InstallConfig, readmeInstallDir, readmeName string) error
- func (o *OptionsInstallRun) DoryCreateDirs(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateDockerCertsConfig(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateKubernetesDataPod(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateNginxGitlabConfig(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateOpenldapCertsConfig(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) DoryCreateResetReadme(installConfig pkg.InstallConfig, readmeResetDir, readmeName string) error
- func (o *OptionsInstallRun) HarborConnectHint(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) HarborCreateProject(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) HarborLoginDocker(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) HarborPushDockerImages(installConfig pkg.InstallConfig, dockerImages pkg.InstallDockerImages) error
- func (o *OptionsInstallRun) InstallWithDocker(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) InstallWithKubernetes(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallRun) KubernetesCheckPodStatus(installConfig pkg.InstallConfig, namespaceMode string) error
- func (o *OptionsInstallRun) Run(args []string) error
- func (o *OptionsInstallRun) Validate(args []string) error
- type OptionsInstallScript
- func (o *OptionsInstallScript) Complete(cmd *cobra.Command) error
- func (o *OptionsInstallScript) DoryCreateConfig(installConfig pkg.InstallConfig, rootDir string) error
- func (o *OptionsInstallScript) DoryCreateDockerCertsConfig(installConfig pkg.InstallConfig, rootDir string) error
- func (o *OptionsInstallScript) DoryCreateKubernetesDataPod(installConfig pkg.InstallConfig, rootDir string) error
- func (o *OptionsInstallScript) DoryCreateNginxGitlabConfig(installConfig pkg.InstallConfig, rootDir string) error
- func (o *OptionsInstallScript) DoryCreateOpenldapCertsConfig(installConfig pkg.InstallConfig, rootDir string) error
- func (o *OptionsInstallScript) DoryCreateReadme(installConfig pkg.InstallConfig, readmeInstallDir, readmeName string) error
- func (o *OptionsInstallScript) Run(args []string) error
- func (o *OptionsInstallScript) ScriptWithDocker(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallScript) ScriptWithKubernetes(installConfig pkg.InstallConfig) error
- func (o *OptionsInstallScript) Validate(args []string) error
- type OptionsLogin
- type OptionsLogout
- type OptionsPipelineExecute
- type OptionsPipelineGet
- type OptionsProjectExecute
- type OptionsProjectGet
- type OptionsRunAbort
- type OptionsRunGet
- type OptionsRunLog
- type OptionsVersionRun
Constants ¶
This section is empty.
Variables ¶
View Source
var OptCommon = NewOptionsCommon()
Functions ¶
func CheckAdminKind ¶
func CheckDefKind ¶
func CheckError ¶
func CheckError(err error)
func GetAdminKindsFromJson ¶
func GetAdminKindsFromYaml ¶
func GetConsoleKindsFromJson ¶ added in v1.6.5
func GetConsoleKindsFromJson(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
func GetConsoleKindsFromYaml ¶ added in v1.6.5
func GetConsoleKindsFromYaml(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
func GetDefKindsFromJson ¶
func GetDefKindsFromYaml ¶
func NewCmdAdmin ¶
func NewCmdAdminApply ¶
func NewCmdAdminDelete ¶
func NewCmdAdminGet ¶
func NewCmdConsole ¶ added in v1.6.5
func NewCmdConsoleApply ¶ added in v1.6.5
func NewCmdConsoleDelete ¶ added in v1.6.5
func NewCmdConsoleGet ¶ added in v1.6.5
func NewCmdDefApply ¶
func NewCmdDefClone ¶
func NewCmdDefDelete ¶
func NewCmdDefGet ¶
func NewCmdDefPatch ¶
func NewCmdInstall ¶
func NewCmdInstallCheck ¶
func NewCmdInstallHa ¶
func NewCmdInstallHaPrint ¶
func NewCmdInstallHaScript ¶
func NewCmdInstallPrint ¶
func NewCmdInstallPull ¶
func NewCmdInstallRun ¶
func NewCmdInstallScript ¶
func NewCmdLogin ¶
func NewCmdLogout ¶
func NewCmdPipeline ¶
func NewCmdPipelineExecute ¶
func NewCmdPipelineGet ¶
func NewCmdProject ¶
func NewCmdProjectExecute ¶
func NewCmdProjectGet ¶
func NewCmdRoot ¶
func NewCmdRunAbort ¶
func NewCmdRunGet ¶
func NewCmdRunLog ¶
func NewCmdVersion ¶
func PrettyJson ¶
Types ¶
type Log ¶
type Log struct {
Verbose bool `yaml:"verbose" json:"verbose" bson:"verbose" validate:""`
}
func (*Log) AdminLog ¶
func (log *Log) AdminLog(msg pkg.WsAdminLog)
func (*Log) SetVerbose ¶
type OptionsAdminApply ¶
type OptionsAdminApply struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Recursive bool `yaml:"recursive" json:"recursive" bson:"recursive" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Items []pkg.AdminKind `yaml:"items" json:"items" bson:"items" validate:""` } }
func NewOptionsAdminApply ¶
func NewOptionsAdminApply() *OptionsAdminApply
func (*OptionsAdminApply) Run ¶
func (o *OptionsAdminApply) Run(args []string) error
func (*OptionsAdminApply) Validate ¶
func (o *OptionsAdminApply) Validate(args []string) error
type OptionsAdminDelete ¶
type OptionsAdminDelete struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Param struct { Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""` ItemNames []string `yaml:"itemNames" json:"itemNames" bson:"itemNames" validate:""` } }
func NewOptionsAdminDelete ¶
func NewOptionsAdminDelete() *OptionsAdminDelete
func (*OptionsAdminDelete) Complete ¶
func (o *OptionsAdminDelete) Complete(cmd *cobra.Command) error
func (*OptionsAdminDelete) Run ¶
func (o *OptionsAdminDelete) Run(args []string) error
func (*OptionsAdminDelete) Validate ¶
func (o *OptionsAdminDelete) Validate(args []string) error
type OptionsAdminGet ¶
type OptionsAdminGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kinds []string `yaml:"kinds" json:"kinds" bson:"kinds" validate:""` ItemNames []string `yaml:"itemNames" json:"itemNames" bson:"itemNames" validate:""` IsAllKind bool `yaml:"isAllKind" json:"isAllKind" bson:"isAllKind" validate:""` } }
func NewOptionsAdminGet ¶
func NewOptionsAdminGet() *OptionsAdminGet
func (*OptionsAdminGet) Run ¶
func (o *OptionsAdminGet) Run(args []string) error
func (*OptionsAdminGet) Validate ¶
func (o *OptionsAdminGet) Validate(args []string) error
type OptionsCommon ¶
type OptionsCommon struct { ServerURL string `yaml:"serverURL" json:"serverURL" bson:"serverURL" validate:""` Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""` Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""` AccessToken string `yaml:"accessToken" json:"accessToken" bson:"accessToken" validate:""` Language string `yaml:"language" json:"language" bson:"language" validate:""` ConfigFile string `yaml:"configFile" json:"configFile" bson:"configFile" validate:""` Verbose bool `yaml:"verbose" json:"verbose" bson:"verbose" validate:""` ConfigExists bool `yaml:"configExists" json:"configExists" bson:"configExists" validate:""` LangBundle *i18n.Bundle }
func NewOptionsCommon ¶
func NewOptionsCommon() *OptionsCommon
func (*OptionsCommon) CheckConfigFile ¶
func (o *OptionsCommon) CheckConfigFile() error
func (*OptionsCommon) GetBuildEnvNames ¶
func (o *OptionsCommon) GetBuildEnvNames() ([]string, error)
func (*OptionsCommon) GetComponentTemplateNames ¶
func (o *OptionsCommon) GetComponentTemplateNames() ([]string, error)
func (*OptionsCommon) GetConsoleProject ¶ added in v1.6.5
func (o *OptionsCommon) GetConsoleProject(projectName string) (pkg.ProjectConsole, error)
func (*OptionsCommon) GetConsoleProjectNames ¶ added in v1.6.5
func (o *OptionsCommon) GetConsoleProjectNames() ([]string, error)
func (*OptionsCommon) GetEnvNames ¶
func (o *OptionsCommon) GetEnvNames() ([]string, error)
func (*OptionsCommon) GetOpsBatchNames ¶
func (o *OptionsCommon) GetOpsBatchNames(projectName string) ([]string, error)
func (*OptionsCommon) GetOptionsCommon ¶
func (o *OptionsCommon) GetOptionsCommon() error
func (*OptionsCommon) GetPipelineNames ¶
func (o *OptionsCommon) GetPipelineNames() ([]string, error)
func (*OptionsCommon) GetProjectDef ¶
func (o *OptionsCommon) GetProjectDef(projectName string) (pkg.ProjectOutput, error)
func (*OptionsCommon) GetProjectNames ¶
func (o *OptionsCommon) GetProjectNames() ([]string, error)
func (*OptionsCommon) GetRepoNames ¶
func (o *OptionsCommon) GetRepoNames() (pkg.RepoNameList, error)
func (*OptionsCommon) GetRunNames ¶
func (o *OptionsCommon) GetRunNames() ([]string, error)
func (*OptionsCommon) GetStepNames ¶
func (o *OptionsCommon) GetStepNames() ([]string, error)
func (*OptionsCommon) GetUserNames ¶
func (o *OptionsCommon) GetUserNames() ([]string, error)
func (*OptionsCommon) QueryWebsocket ¶
func (o *OptionsCommon) QueryWebsocket(url, runName string) error
func (*OptionsCommon) TransLang ¶ added in v1.6.0
func (o *OptionsCommon) TransLang(msg string, args ...interface{}) string
type OptionsConsoleApply ¶ added in v1.6.5
type OptionsConsoleApply struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Recursive bool `yaml:"recursive" json:"recursive" bson:"recursive" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Consoles []pkg.ConsoleKind `yaml:"consoles" json:"consoles" bson:"consoles" validate:""` ProjectNames []string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""` } }
func NewOptionsConsoleApply ¶ added in v1.6.5
func NewOptionsConsoleApply() *OptionsConsoleApply
func (*OptionsConsoleApply) CheckConsoleKind ¶ added in v1.6.5
func (o *OptionsConsoleApply) CheckConsoleKind(consoleKind pkg.ConsoleKind) error
func (*OptionsConsoleApply) Complete ¶ added in v1.6.5
func (o *OptionsConsoleApply) Complete(cmd *cobra.Command) error
func (*OptionsConsoleApply) GetConsoleKinds ¶ added in v1.6.5
func (o *OptionsConsoleApply) GetConsoleKinds(fileName string, bs []byte) ([]pkg.ConsoleKind, error)
func (*OptionsConsoleApply) Run ¶ added in v1.6.5
func (o *OptionsConsoleApply) Run(args []string) error
func (*OptionsConsoleApply) Validate ¶ added in v1.6.5
func (o *OptionsConsoleApply) Validate(args []string) error
type OptionsConsoleDelete ¶ added in v1.6.5
type OptionsConsoleDelete struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Items []string `yaml:"items" json:"items" bson:"items" validate:""` EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""` BranchNames []string `yaml:"branchNames" json:"branchNames" bson:"branchNames" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` } }
func NewOptionsConsoleDelete ¶ added in v1.6.5
func NewOptionsConsoleDelete() *OptionsConsoleDelete
func (*OptionsConsoleDelete) Complete ¶ added in v1.6.5
func (o *OptionsConsoleDelete) Complete(cmd *cobra.Command) error
func (*OptionsConsoleDelete) Run ¶ added in v1.6.5
func (o *OptionsConsoleDelete) Run(args []string) error
func (*OptionsConsoleDelete) Validate ¶ added in v1.6.5
func (o *OptionsConsoleDelete) Validate(args []string) error
type OptionsConsoleGet ¶ added in v1.6.5
type OptionsConsoleGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Items []string `yaml:"items" json:"items" bson:"items" validate:""` EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""` BranchNames []string `yaml:"branchNames" json:"branchNames" bson:"branchNames" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kinds []string `yaml:"kinds" json:"kinds" bson:"kinds" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` IsAllKind bool `yaml:"isAllKind" json:"isAllKind" bson:"isAllKind" validate:""` } }
func NewOptionsConsoleGet ¶ added in v1.6.5
func NewOptionsConsoleGet() *OptionsConsoleGet
func (*OptionsConsoleGet) Complete ¶ added in v1.6.5
func (o *OptionsConsoleGet) Complete(cmd *cobra.Command) error
func (*OptionsConsoleGet) Run ¶ added in v1.6.5
func (o *OptionsConsoleGet) Run(args []string) error
func (*OptionsConsoleGet) Validate ¶ added in v1.6.5
func (o *OptionsConsoleGet) Validate(args []string) error
type OptionsDefApply ¶
type OptionsDefApply struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Recursive bool `yaml:"recursive" json:"recursive" bson:"recursive" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { FileNames []string `yaml:"fileNames" json:"fileNames" bson:"fileNames" validate:""` Defs []pkg.DefKind `yaml:"defs" json:"defs" bson:"defs" validate:""` } }
func NewOptionsDefApply ¶
func NewOptionsDefApply() *OptionsDefApply
func (*OptionsDefApply) Run ¶
func (o *OptionsDefApply) Run(args []string) error
func (*OptionsDefApply) Validate ¶
func (o *OptionsDefApply) Validate(args []string) error
type OptionsDefClone ¶
type OptionsDefClone struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FromEnvName string `yaml:"fromEnvName" json:"fromEnvName" bson:"fromEnvName" validate:""` StepName string `yaml:"stepName" json:"stepName" bson:"stepName" validate:""` ModuleNames []string `yaml:"moduleNames" json:"moduleNames" bson:"moduleNames" validate:""` ToEnvNames []string `yaml:"toEnvNames" json:"toEnvNames" bson:"toEnvNames" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` } }
func NewOptionsDefClone ¶
func NewOptionsDefClone() *OptionsDefClone
func (*OptionsDefClone) Run ¶
func (o *OptionsDefClone) Run(args []string) error
func (*OptionsDefClone) Validate ¶
func (o *OptionsDefClone) Validate(args []string) error
type OptionsDefDelete ¶
type OptionsDefDelete struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ModuleNames []string `yaml:"moduleNames" json:"moduleNames" bson:"moduleNames" validate:""` EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""` StepNames []string `yaml:"stepNames" json:"stepNames" bson:"stepNames" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` } }
func NewOptionsDefDelete ¶
func NewOptionsDefDelete() *OptionsDefDelete
func (*OptionsDefDelete) Run ¶
func (o *OptionsDefDelete) Run(args []string) error
func (*OptionsDefDelete) Validate ¶
func (o *OptionsDefDelete) Validate(args []string) error
type OptionsDefGet ¶
type OptionsDefGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ModuleNames []string `yaml:"moduleNames" json:"moduleNames" bson:"moduleNames" validate:""` EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""` BranchNames []string `yaml:"branchNames" json:"branchNames" bson:"branchNames" validate:""` StepNames []string `yaml:"stepNames" json:"stepNames" bson:"stepNames" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kinds []string `yaml:"kinds" json:"kinds" bson:"kinds" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` IsAllKind bool `yaml:"isAllKind" json:"isAllKind" bson:"isAllKind" validate:""` } }
func NewOptionsDefGet ¶
func NewOptionsDefGet() *OptionsDefGet
func (*OptionsDefGet) Run ¶
func (o *OptionsDefGet) Run(args []string) error
func (*OptionsDefGet) Validate ¶
func (o *OptionsDefGet) Validate(args []string) error
type OptionsDefPatch ¶
type OptionsDefPatch struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ModuleNames []string `yaml:"moduleNames" json:"moduleNames" bson:"moduleNames" validate:""` EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""` BranchNames []string `yaml:"branchNames" json:"branchNames" bson:"branchNames" validate:""` StepName string `yaml:"stepName" json:"stepName" bson:"stepName" validate:""` Patch string `yaml:"patch" json:"patch" bson:"patch" validate:""` FileName string `yaml:"fileName" json:"fileName" bson:"fileName" validate:""` EnableExecute []string `yaml:"enableExecute" json:"enableExecute" bson:"enableExecute" validate:""` DisableExecute []string `yaml:"disableExecute" json:"disableExecute" bson:"disableExecute" validate:""` Try bool `yaml:"try" json:"try" bson:"try" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""` ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` PatchActions []pkg.PatchAction `yaml:"patchActions" json:"patchActions" bson:"patchActions" validate:""` } }
func NewOptionsDefPatch ¶
func NewOptionsDefPatch() *OptionsDefPatch
func (*OptionsDefPatch) Run ¶
func (o *OptionsDefPatch) Run(args []string) error
func (*OptionsDefPatch) Validate ¶
func (o *OptionsDefPatch) Validate(args []string) error
type OptionsInstallCheck ¶
type OptionsInstallCheck struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Mode string `yaml:"mode" json:"mode" bson:"mode" validate:""` Runtime string `yaml:"runtime" json:"runtime" bson:"runtime" validate:""` }
func NewOptionsInstallCheck ¶
func NewOptionsInstallCheck() *OptionsInstallCheck
func (*OptionsInstallCheck) Complete ¶
func (o *OptionsInstallCheck) Complete(cmd *cobra.Command) error
func (*OptionsInstallCheck) Run ¶
func (o *OptionsInstallCheck) Run(args []string) error
Run executes the appropriate steps to check a model's documentation
func (*OptionsInstallCheck) Validate ¶
func (o *OptionsInstallCheck) Validate(args []string) error
type OptionsInstallHaPrint ¶
type OptionsInstallHaPrint struct {
*OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""`
}
func NewOptionsInstallHaPrint ¶
func NewOptionsInstallHaPrint() *OptionsInstallHaPrint
func (*OptionsInstallHaPrint) Complete ¶
func (o *OptionsInstallHaPrint) Complete(cmd *cobra.Command) error
func (*OptionsInstallHaPrint) Run ¶
func (o *OptionsInstallHaPrint) Run(args []string) error
Run executes the appropriate steps to print a model's documentation
func (*OptionsInstallHaPrint) Validate ¶
func (o *OptionsInstallHaPrint) Validate(args []string) error
type OptionsInstallHaScript ¶
type OptionsInstallHaScript struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileName string `yaml:"fileName" json:"fileName" bson:"fileName" validate:""` OutputDir string `yaml:"outputDir" json:"outputDir" bson:"outputDir" validate:""` Param struct { Stdin []byte `yaml:"stdin" json:"stdin" bson:"stdin" validate:""` } }
func NewOptionsInstallHaScript ¶
func NewOptionsInstallHaScript() *OptionsInstallHaScript
func (*OptionsInstallHaScript) Complete ¶
func (o *OptionsInstallHaScript) Complete(cmd *cobra.Command) error
func (*OptionsInstallHaScript) CreateFile ¶
func (o *OptionsInstallHaScript) CreateFile(tplFileName, fileName string, vals map[string]interface{}) error
func (*OptionsInstallHaScript) Run ¶
func (o *OptionsInstallHaScript) Run(args []string) error
Run executes the appropriate steps to run a model's documentation
func (*OptionsInstallHaScript) Validate ¶
func (o *OptionsInstallHaScript) Validate(args []string) error
type OptionsInstallPrint ¶
type OptionsInstallPrint struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Mode string `yaml:"mode" json:"mode" bson:"mode" validate:""` Runtime string `yaml:"runtime" json:"runtime" bson:"runtime" validate:""` Full bool `yaml:"full" json:"full" bson:"full" validate:""` }
func NewOptionsInstallPrint ¶
func NewOptionsInstallPrint() *OptionsInstallPrint
func (*OptionsInstallPrint) Complete ¶
func (o *OptionsInstallPrint) Complete(cmd *cobra.Command) error
func (*OptionsInstallPrint) Run ¶
func (o *OptionsInstallPrint) Run(args []string) error
Run executes the appropriate steps to print a model's documentation
func (*OptionsInstallPrint) Validate ¶
func (o *OptionsInstallPrint) Validate(args []string) error
type OptionsInstallPull ¶
type OptionsInstallPull struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileName string `yaml:"fileName" json:"fileName" bson:"fileName" validate:""` Build bool `yaml:"build" json:"build" bson:"build" validate:""` ForceDownload bool `yaml:"forceDownload" json:"forceDownload" bson:"forceDownload" validate:""` Yes bool `yaml:"yes" json:"yes" bson:"yes" validate:""` }
func NewOptionsInstallPull ¶
func NewOptionsInstallPull() *OptionsInstallPull
func (*OptionsInstallPull) Complete ¶
func (o *OptionsInstallPull) Complete(cmd *cobra.Command) error
func (*OptionsInstallPull) Run ¶
func (o *OptionsInstallPull) Run(args []string) error
Run executes the appropriate steps to pull a model's documentation
func (*OptionsInstallPull) Validate ¶
func (o *OptionsInstallPull) Validate(args []string) error
type OptionsInstallRun ¶
type OptionsInstallRun struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileName string `yaml:"fileName" json:"fileName" bson:"fileName" validate:""` OutputDir string `yaml:"outputDir" json:"outputDir" bson:"outputDir" validate:""` }
func NewOptionsInstallRun ¶
func NewOptionsInstallRun() *OptionsInstallRun
func (*OptionsInstallRun) DoryCreateConfig ¶
func (o *OptionsInstallRun) DoryCreateConfig(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateConfigReadme ¶
func (o *OptionsInstallRun) DoryCreateConfigReadme(installConfig pkg.InstallConfig, readmeInstallDir, readmeName string) error
func (*OptionsInstallRun) DoryCreateDirs ¶ added in v1.5.2
func (o *OptionsInstallRun) DoryCreateDirs(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateDockerCertsConfig ¶
func (o *OptionsInstallRun) DoryCreateDockerCertsConfig(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateKubernetesDataPod ¶
func (o *OptionsInstallRun) DoryCreateKubernetesDataPod(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateNginxGitlabConfig ¶
func (o *OptionsInstallRun) DoryCreateNginxGitlabConfig(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateOpenldapCertsConfig ¶
func (o *OptionsInstallRun) DoryCreateOpenldapCertsConfig(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) DoryCreateResetReadme ¶
func (o *OptionsInstallRun) DoryCreateResetReadme(installConfig pkg.InstallConfig, readmeResetDir, readmeName string) error
func (*OptionsInstallRun) HarborConnectHint ¶
func (o *OptionsInstallRun) HarborConnectHint(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) HarborCreateProject ¶
func (o *OptionsInstallRun) HarborCreateProject(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) HarborLoginDocker ¶
func (o *OptionsInstallRun) HarborLoginDocker(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) HarborPushDockerImages ¶
func (o *OptionsInstallRun) HarborPushDockerImages(installConfig pkg.InstallConfig, dockerImages pkg.InstallDockerImages) error
func (*OptionsInstallRun) InstallWithDocker ¶
func (o *OptionsInstallRun) InstallWithDocker(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) InstallWithKubernetes ¶
func (o *OptionsInstallRun) InstallWithKubernetes(installConfig pkg.InstallConfig) error
func (*OptionsInstallRun) KubernetesCheckPodStatus ¶
func (o *OptionsInstallRun) KubernetesCheckPodStatus(installConfig pkg.InstallConfig, namespaceMode string) error
func (*OptionsInstallRun) Run ¶
func (o *OptionsInstallRun) Run(args []string) error
Run executes the appropriate steps to run a model's documentation
func (*OptionsInstallRun) Validate ¶
func (o *OptionsInstallRun) Validate(args []string) error
type OptionsInstallScript ¶
type OptionsInstallScript struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` FileName string `yaml:"fileName" json:"fileName" bson:"fileName" validate:""` OutputDir string `yaml:"outputDir" json:"outputDir" bson:"outputDir" validate:""` Param struct { Stdin []byte `yaml:"stdin" json:"stdin" bson:"stdin" validate:""` } }
func NewOptionsInstallScript ¶
func NewOptionsInstallScript() *OptionsInstallScript
func (*OptionsInstallScript) Complete ¶
func (o *OptionsInstallScript) Complete(cmd *cobra.Command) error
func (*OptionsInstallScript) DoryCreateConfig ¶
func (o *OptionsInstallScript) DoryCreateConfig(installConfig pkg.InstallConfig, rootDir string) error
func (*OptionsInstallScript) DoryCreateDockerCertsConfig ¶
func (o *OptionsInstallScript) DoryCreateDockerCertsConfig(installConfig pkg.InstallConfig, rootDir string) error
func (*OptionsInstallScript) DoryCreateKubernetesDataPod ¶
func (o *OptionsInstallScript) DoryCreateKubernetesDataPod(installConfig pkg.InstallConfig, rootDir string) error
func (*OptionsInstallScript) DoryCreateNginxGitlabConfig ¶
func (o *OptionsInstallScript) DoryCreateNginxGitlabConfig(installConfig pkg.InstallConfig, rootDir string) error
func (*OptionsInstallScript) DoryCreateOpenldapCertsConfig ¶
func (o *OptionsInstallScript) DoryCreateOpenldapCertsConfig(installConfig pkg.InstallConfig, rootDir string) error
func (*OptionsInstallScript) DoryCreateReadme ¶
func (o *OptionsInstallScript) DoryCreateReadme(installConfig pkg.InstallConfig, readmeInstallDir, readmeName string) error
func (*OptionsInstallScript) Run ¶
func (o *OptionsInstallScript) Run(args []string) error
Run executes the appropriate steps to run a model's documentation
func (*OptionsInstallScript) ScriptWithDocker ¶
func (o *OptionsInstallScript) ScriptWithDocker(installConfig pkg.InstallConfig) error
func (*OptionsInstallScript) ScriptWithKubernetes ¶
func (o *OptionsInstallScript) ScriptWithKubernetes(installConfig pkg.InstallConfig) error
func (*OptionsInstallScript) Validate ¶
func (o *OptionsInstallScript) Validate(args []string) error
type OptionsLogin ¶
type OptionsLogin struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Username string `yaml:"username" json:"username" bson:"username" validate:""` Password string `yaml:"password" json:"password" bson:"password" validate:""` ExpireDays int `yaml:"expireDays" json:"expireDays" bson:"expireDays" validate:""` }
func NewOptionsLogin ¶
func NewOptionsLogin() *OptionsLogin
func (*OptionsLogin) Run ¶
func (o *OptionsLogin) Run(args []string) error
func (*OptionsLogin) Validate ¶
func (o *OptionsLogin) Validate(args []string) error
type OptionsLogout ¶
type OptionsLogout struct {
*OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""`
}
func NewOptionsLogout ¶
func NewOptionsLogout() *OptionsLogout
func (*OptionsLogout) Run ¶
func (o *OptionsLogout) Run(args []string) error
func (*OptionsLogout) Validate ¶
func (o *OptionsLogout) Validate(args []string) error
type OptionsPipelineExecute ¶
type OptionsPipelineExecute struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Batch string `yaml:"batch" json:"batch" bson:"batch" validate:""` Params []string `yaml:"params" json:"params" bson:"params" validate:""` Param struct { PipelineName string `yaml:"pipelineName" json:"pipelineName" bson:"pipelineName" validate:""` Batches []string `yaml:"batches" json:"batches" bson:"batches" validate:""` QueryParam string `yaml:"queryParam" json:"queryParam" bson:"queryParam" validate:""` } }
func NewOptionsPipelineExecute ¶
func NewOptionsPipelineExecute() *OptionsPipelineExecute
func (*OptionsPipelineExecute) Complete ¶
func (o *OptionsPipelineExecute) Complete(cmd *cobra.Command) error
func (*OptionsPipelineExecute) Run ¶
func (o *OptionsPipelineExecute) Run(args []string) error
func (*OptionsPipelineExecute) Validate ¶
func (o *OptionsPipelineExecute) Validate(args []string) error
type OptionsPipelineGet ¶
type OptionsPipelineGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ProjectNames string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { ProjectNames []string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""` PipelineNames []string `yaml:"pipelineNames" json:"pipelineNames" bson:"pipelineNames" validate:""` } }
func NewOptionsPipelineGet ¶
func NewOptionsPipelineGet() *OptionsPipelineGet
func (*OptionsPipelineGet) Complete ¶
func (o *OptionsPipelineGet) Complete(cmd *cobra.Command) error
func (*OptionsPipelineGet) Run ¶
func (o *OptionsPipelineGet) Run(args []string) error
func (*OptionsPipelineGet) Validate ¶
func (o *OptionsPipelineGet) Validate(args []string) error
type OptionsProjectExecute ¶
type OptionsProjectExecute struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Params []string `yaml:"params" json:"params" bson:"params" validate:""` Param struct { ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""` OpsBatchName string `yaml:"opsBatchName" json:"opsBatchName" bson:"opsBatchName" validate:""` QueryParam string `yaml:"queryParam" json:"queryParam" bson:"queryParam" validate:""` } }
func NewOptionsProjectExecute ¶
func NewOptionsProjectExecute() *OptionsProjectExecute
func (*OptionsProjectExecute) Complete ¶
func (o *OptionsProjectExecute) Complete(cmd *cobra.Command) error
func (*OptionsProjectExecute) Run ¶
func (o *OptionsProjectExecute) Run(args []string) error
func (*OptionsProjectExecute) Validate ¶
func (o *OptionsProjectExecute) Validate(args []string) error
type OptionsProjectGet ¶
type OptionsProjectGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ProjectTeam string `yaml:"projectTeam" json:"projectTeam" bson:"projectTeam" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { ProjectNames []string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""` } }
func NewOptionsProjectGet ¶
func NewOptionsProjectGet() *OptionsProjectGet
func (*OptionsProjectGet) Run ¶
func (o *OptionsProjectGet) Run(args []string) error
func (*OptionsProjectGet) Validate ¶
func (o *OptionsProjectGet) Validate(args []string) error
type OptionsRunAbort ¶
type OptionsRunAbort struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Log bool `yaml:"log" json:"log" bson:"log" validate:""` Param struct { RunName string `yaml:"runName" json:"runName" bson:"runName" validate:""` } }
func NewOptionsRunAbort ¶
func NewOptionsRunAbort() *OptionsRunAbort
func (*OptionsRunAbort) Run ¶
func (o *OptionsRunAbort) Run(args []string) error
func (*OptionsRunAbort) Validate ¶
func (o *OptionsRunAbort) Validate(args []string) error
type OptionsRunGet ¶
type OptionsRunGet struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` ProjectNames []string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""` PipelineNames []string `yaml:"pipelineNames" json:"pipelineNames" bson:"pipelineNames" validate:""` StatusResults []string `yaml:"statusResults" json:"statusResults" bson:"statusResults" validate:""` StartDate string `yaml:"startDate" json:"startDate" bson:"startDate" validate:""` EndDate string `yaml:"endDate" json:"endDate" bson:"endDate" validate:""` Page int `yaml:"page" json:"page" bson:"page" validate:""` Number int `yaml:"number" json:"number" bson:"number" validate:""` Output string `yaml:"output" json:"output" bson:"output" validate:""` Param struct { StartDate time.Time `yaml:"startDate" json:"startDate" bson:"startDate" validate:""` EndDate time.Time `yaml:"endDate" json:"endDate" bson:"endDate" validate:""` RunNames []string `yaml:"runNames" json:"runNames" bson:"runNames" validate:""` } }
func NewOptionsRunGet ¶
func NewOptionsRunGet() *OptionsRunGet
func (*OptionsRunGet) Run ¶
func (o *OptionsRunGet) Run(args []string) error
func (*OptionsRunGet) Validate ¶
func (o *OptionsRunGet) Validate(args []string) error
type OptionsRunLog ¶
type OptionsRunLog struct { *OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""` Param struct { RunName string `yaml:"runName" json:"runName" bson:"runName" validate:""` } }
func NewOptionsRunLog ¶
func NewOptionsRunLog() *OptionsRunLog
func (*OptionsRunLog) Run ¶
func (o *OptionsRunLog) Run(args []string) error
func (*OptionsRunLog) Validate ¶
func (o *OptionsRunLog) Validate(args []string) error
type OptionsVersionRun ¶
type OptionsVersionRun struct {
*OptionsCommon `yaml:"optionsCommon" json:"optionsCommon" bson:"optionsCommon" validate:""`
}
func NewOptionsVersionRun ¶
func NewOptionsVersionRun() *OptionsVersionRun
func (*OptionsVersionRun) Run ¶
func (o *OptionsVersionRun) Run(args []string) error
func (*OptionsVersionRun) Validate ¶
func (o *OptionsVersionRun) Validate(args []string) error
Source Files ¶
- admin.go
- admin_apply.go
- admin_delete.go
- admin_get.go
- cmd.go
- console.go
- console_apply.go
- console_delete.go
- console_get.go
- def.go
- def_apply.go
- def_clone.go
- def_delete.go
- def_get.go
- def_patch.go
- install.go
- install_check.go
- install_ha.go
- install_ha_print.go
- install_ha_script.go
- install_print.go
- install_pull.go
- install_run.go
- install_script.go
- login.go
- logout.go
- pipeline.go
- pipeline_execute.go
- pipeline_get.go
- project.go
- project_execute.go
- project_get.go
- run.go
- run_abort.go
- run_get.go
- run_logs.go
- version.go
Click to show internal directories.
Click to hide internal directories.