{"modulePath":"github.com/SovereignCloudStack/csctl","version":"v0.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package clusterstack\n\nPackage clusterstack has necessary function to work on cluster stack.\n\n## Functions\n\n```go\nfunc BumpVersion(version string) (string, error)\n```\nBumpVersion bumps the version of the cluster stacks component.\n\n```go\nfunc GetClusterStackReleaseDirectoryName(metadata *MetaData, config *CsctlConfig) (string, error)\n```\nGetClusterStackReleaseDirectoryName returns cluster stack release directory. e.g. - docker-ferrol-1-27-v1/ .\n\n```go\nfunc GetClusterStackReleaseName(metada *MetaData, config *CsctlConfig) (string, error)\n```\nGetClusterStackReleaseName return the cluster stack release name. e.g. - docker-ferrol-1-27-v0-sha.uxumi7s .\n\n## Types\n\n```go\ntype Component struct {\n\tClusterAddon string `yaml:\"clusterAddon\"`\n\tNodeImage    string `yaml:\"nodeImage,omitempty\"`\n}\n```\nComponent contains component.\n\n```go\ntype CsctlConfig struct {\n\tAPIVersion string `yaml:\"apiVersion\"`\n\tConfig     struct {\n\t\tKubernetesVersion string `yaml:\"kubernetesVersion\"`\n\t\tClusterStackName  string `yaml:\"clusterStackName\"`\n\t\tProvider          struct {\n\t\t\tType       string                 `yaml:\"type\"`\n\t\t\tAPIVersion string                 `yaml:\"apiVersion\"`\n\t\t\tConfig     map[string]interface{} `yaml:\"config\"`\n\t\t} `yaml:\"provider\"`\n\t} `yaml:\"config\"`\n}\n```\nCsctlConfig contains information of CsctlConfig yaml.\n\n```go\nfunc GetCsctlConfig(path string) (*CsctlConfig, error)\n```\nGetCsctlConfig returns CsctlConfig.\n\n```go\nfunc (c *CsctlConfig) ParseKubernetesVersion() (kubernetesversion.KubernetesVersion, error)\n```\nParseKubernetesVersion parse the kubernetes version present in the Csctl Config.\n\n```go\ntype MetaData struct {\n\tAPIVersion string   `yaml:\"apiVersion\"`\n\tVersions   Versions `yaml:\"versions\"`\n}\n```\nMetaData contains metadata.\n\n```go\nfunc HandleCustomMode(kubernetesVersion, clusterStackVersion, clusterAddonVersion, nodeImageVersion string) (*MetaData, error)\n```\nHandleCustomMode handles custom mode with version for all components.\n\n```go\nfunc HandleHashMode(currentRelease hash.ReleaseHash, kubernetesVersion string) *MetaData\n```\nHandleHashMode handles the hash mode with the cluster stack hash.\n\n```go\nfunc HandleStableMode(gitHubReleasePath string, currentReleaseHash, latestReleaseHash hash.ReleaseHash) (*MetaData, error)\n```\nHandleStableMode returns metadata for the stable mode.\n\n```go\nfunc ParseMetaData(path string) (*MetaData, error)\n```\nParseMetaData parse the metadata file.\n\n```go\ntype Versions struct {\n\tClusterStack string    `yaml:\"clusterStack\"`\n\tKubernetes   string    `yaml:\"kubernetes\"`\n\tComponents   Component `yaml:\"components\"`\n}\n```\nVersions contains version information.\n\n","path":"github.com/SovereignCloudStack/csctl/pkg/clusterstack","name":"clusterstack","synopsis":"Package clusterstack has necessary function to work on cluster stack.","isRedistributable":true}
