Documentation ¶
Index ¶
- Constants
- func AuthAndPush(apiClient *client.RancherClient, image string) error
- func GetGitToken(apiClient *client.RancherClient, username string) (string, error)
- func GetLatestVersion(templatePath string) (int, error)
- func MergeMap(first map[interface{}]interface{}, second map[interface{}]interface{}) map[interface{}]interface{}
- func MergeYaml(yml1 []byte, yml2 []byte) ([]byte, error)
- func TemplateURLPath(path string) (string, string, string, string, bool)
- func UpgradeCatalog(config *model.CatalogUpgrade) error
- func UpgradeServices(apiClient *client.RancherClient, config *model.ServiceUpgrade, ...)
- func UpgradeStack(apiClient *client.RancherClient, config *model.StackUpgrade) error
Constants ¶
View Source
const DEFAULT_REGISTRY = "index.docker.io"
Variables ¶
This section is empty.
Functions ¶
func AuthAndPush ¶
AuthAndPush find registry credential and push the image
func GetGitToken ¶
func GetLatestVersion ¶
GetLatestVersion returns latest version in the catalog template path
func MergeMap ¶
func MergeMap(first map[interface{}]interface{}, second map[interface{}]interface{}) map[interface{}]interface{}
MergeMap maps from first to second
func UpgradeCatalog ¶
func UpgradeCatalog(config *model.CatalogUpgrade) error
func UpgradeServices ¶
func UpgradeServices(apiClient *client.RancherClient, config *model.ServiceUpgrade, pushedImage string)
func UpgradeStack ¶
func UpgradeStack(apiClient *client.RancherClient, config *model.StackUpgrade) error
UpgradeStack currently works for catalog stack only
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.