Documentation ¶
Index ¶
- Constants
- Variables
- func AcceptUserInput(input Input) (string, error)
- func AcceptUserPassword(input Input) (string, error)
- func AskAgreeTerms()
- func CheckDomain(domain string) bool
- func CheckErr(err error)
- func CheckErrAndExit(err error, exitCode int)
- func CheckErrAndSendMetrics(err error)
- func CheckFatal(err error)
- func CheckMatch(value string, input Input) bool
- func CheckSchema(schema string) bool
- func CheckVersion(versionRaw, constraint string) (bool, error)
- func ConditionSkip() bool
- func DirectoryCheck(dirName string)
- func GenerateRunnerToken(length int) string
- func GetInstallDefinition(file string, version string) (rd []byte, err error)
- func GetReleaseTag(repo, app, version string) (targetVersion string, err error)
- func GetRemoteResource(resourceUrl string) (data []byte, err error)
- func GetResource(resource string) (data []byte, err error)
- func GetResourceFile(isRemote bool, version, filepath string) (rd []byte)
- func GetVersion(branch string) string
- func HomeDir() string
- func IsFileExist(fileName string) (error, bool)
- func PrettyPrint(data interface{})
- func RandomString(length ...int) string
- func RandomToken(length int) string
- func Vals(values []string, fileValues string) (map[string]interface{}, error)
- func VersionOrdinal(version string) string
- type Cluster
- type Config
- type Input
- type KV
- type NamedCluster
- type NamedUser
- type Terms
- type User
Constants ¶
View Source
const ( VersionPath = "version.yml" InstallConfigPath = "install.yml" UpgradeConfigPath = "upgrade.yml" )
Variables ¶
View Source
var C7nFunc = template.FuncMap{
"randomToken": randomToken,
"getImageRepo": getImageRepo,
"randomLowCaseToken": randomLowCaseToken,
"generateAlphaNum": generateAlphaNum,
}
Functions ¶
func AcceptUserInput ¶
func AcceptUserPassword ¶
func AskAgreeTerms ¶
func AskAgreeTerms()
func CheckDomain ¶
func CheckErrAndExit ¶
func CheckErrAndSendMetrics ¶
func CheckErrAndSendMetrics(err error)
func CheckFatal ¶
func CheckFatal(err error)
func CheckMatch ¶
func CheckSchema ¶
func CheckVersion ¶
func ConditionSkip ¶
func ConditionSkip() bool
func DirectoryCheck ¶
func DirectoryCheck(dirName string)
func GenerateRunnerToken ¶
func GetInstallDefinition ¶
func GetReleaseTag ¶
func GetRemoteResource ¶
func GetResourceFile ¶
func IsFileExist ¶
func RandomString ¶
func RandomToken ¶
func Vals ¶
vals merges values from files specified via -f/--values and directly via --set or --set-string or --set-file, marshaling them to YAML
func VersionOrdinal ¶
Types ¶
type Config ¶
type Config struct { Version string Terms Terms Clusters []*NamedCluster SelectedCluster string `yaml:"current-cluster"` Users []*NamedUser OpsMail string `yaml:"opsMail"` }
func (*Config) CurrentCluster ¶
func (*Config) CurrentServer ¶
func (*Config) CurrentUser ¶
func (*Config) FindNamedClusterByServer ¶
func (c *Config) FindNamedClusterByServer(serverUrl string) *NamedCluster
type NamedCluster ¶
Click to show internal directories.
Click to hide internal directories.