cmd

package
v1.6.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptCommon = NewOptionsCommon()

Functions

func CheckAdminKind

func CheckAdminKind(item pkg.AdminKind) error

func CheckDefKind

func CheckDefKind(def pkg.DefKind) error

func CheckError

func CheckError(err error)

func GetAdminKinds

func GetAdminKinds(fileName string, bs []byte) ([]pkg.AdminKind, error)

func GetAdminKindsFromJson

func GetAdminKindsFromJson(fileName string, bs []byte) ([]pkg.AdminKind, error)

func GetAdminKindsFromYaml

func GetAdminKindsFromYaml(fileName string, bs []byte) ([]pkg.AdminKind, error)

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 GetDefKinds

func GetDefKinds(fileName string, bs []byte) ([]pkg.DefKind, error)

func GetDefKindsFromJson

func GetDefKindsFromJson(fileName string, bs []byte) ([]pkg.DefKind, error)

func GetDefKindsFromYaml

func GetDefKindsFromYaml(fileName string, bs []byte) ([]pkg.DefKind, error)

func NewCmdAdmin

func NewCmdAdmin() *cobra.Command

func NewCmdAdminApply

func NewCmdAdminApply() *cobra.Command

func NewCmdAdminDelete

func NewCmdAdminDelete() *cobra.Command

func NewCmdAdminGet

func NewCmdAdminGet() *cobra.Command

func NewCmdConsole added in v1.6.5

func NewCmdConsole() *cobra.Command

func NewCmdConsoleApply added in v1.6.5

func NewCmdConsoleApply() *cobra.Command

func NewCmdConsoleDelete added in v1.6.5

func NewCmdConsoleDelete() *cobra.Command

func NewCmdConsoleGet added in v1.6.5

func NewCmdConsoleGet() *cobra.Command

func NewCmdDef

func NewCmdDef() *cobra.Command

func NewCmdDefApply

func NewCmdDefApply() *cobra.Command

func NewCmdDefClone

func NewCmdDefClone() *cobra.Command

func NewCmdDefDelete

func NewCmdDefDelete() *cobra.Command

func NewCmdDefGet

func NewCmdDefGet() *cobra.Command

func NewCmdDefPatch

func NewCmdDefPatch() *cobra.Command

func NewCmdInstall

func NewCmdInstall() *cobra.Command

func NewCmdInstallCheck

func NewCmdInstallCheck() *cobra.Command

func NewCmdInstallHa

func NewCmdInstallHa() *cobra.Command

func NewCmdInstallHaPrint

func NewCmdInstallHaPrint() *cobra.Command

func NewCmdInstallHaScript

func NewCmdInstallHaScript() *cobra.Command

func NewCmdInstallPrint

func NewCmdInstallPrint() *cobra.Command

func NewCmdInstallPull

func NewCmdInstallPull() *cobra.Command

func NewCmdInstallRun

func NewCmdInstallRun() *cobra.Command

func NewCmdInstallScript

func NewCmdInstallScript() *cobra.Command

func NewCmdLogin

func NewCmdLogin() *cobra.Command

func NewCmdLogout

func NewCmdLogout() *cobra.Command

func NewCmdPipeline

func NewCmdPipeline() *cobra.Command

func NewCmdPipelineExecute

func NewCmdPipelineExecute() *cobra.Command

func NewCmdPipelineGet

func NewCmdPipelineGet() *cobra.Command

func NewCmdProject

func NewCmdProject() *cobra.Command

func NewCmdProjectExecute

func NewCmdProjectExecute() *cobra.Command

func NewCmdProjectGet

func NewCmdProjectGet() *cobra.Command

func NewCmdRoot

func NewCmdRoot() *cobra.Command

func NewCmdRun

func NewCmdRun() *cobra.Command

func NewCmdRunAbort

func NewCmdRunAbort() *cobra.Command

func NewCmdRunGet

func NewCmdRunGet() *cobra.Command

func NewCmdRunLog

func NewCmdRunLog() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

func PrettyJson

func PrettyJson(strJson string) (string, error)

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) Debug

func (log *Log) Debug(msg string)

func (*Log) Error

func (log *Log) Error(msg string)

func (*Log) Info

func (log *Log) Info(msg string)

func (*Log) RunLog

func (log *Log) RunLog(msg pkg.WsRunLog)

func (*Log) SetVerbose

func (log *Log) SetVerbose(verbose bool)

func (*Log) Success

func (log *Log) Success(msg string)

func (*Log) Warning

func (log *Log) Warning(msg string)

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) Complete

func (o *OptionsAdminApply) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsAdminGet) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsCommon) Complete(cmd *cobra.Command) 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) QueryAPI

func (o *OptionsCommon) QueryAPI(url, method, userToken string, param map[string]interface{}, showSuccess bool) (gjson.Result, 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) Complete

func (o *OptionsDefApply) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsDefClone) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsDefDelete) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsDefGet) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsDefPatch) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsInstallRun) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsLogin) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsLogout) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsProjectGet) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsRunAbort) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsRunGet) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsRunLog) Complete(cmd *cobra.Command) error

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) Complete

func (o *OptionsVersionRun) Complete(cmd *cobra.Command) error

func (*OptionsVersionRun) Run

func (o *OptionsVersionRun) Run(args []string) error

func (*OptionsVersionRun) Validate

func (o *OptionsVersionRun) Validate(args []string) error

Jump to

Keyboard shortcuts

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