service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

View Source
const DEFAULT_REGISTRY = "index.docker.io"

Variables

This section is empty.

Functions

func AuthAndPush

func AuthAndPush(apiClient *client.RancherClient, image string) error

AuthAndPush find registry credential and push the image

func GetGitToken

func GetGitToken(apiClient *client.RancherClient, username string) (string, error)

func GetLatestVersion

func GetLatestVersion(templatePath string) (int, error)

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 MergeYaml

func MergeYaml(yml1 []byte, yml2 []byte) ([]byte, error)

MergeYaml merges yml1 into yml2 and return merged result

func TemplateURLPath

func TemplateURLPath(path string) (string, string, string, string, bool)

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.

Jump to

Keyboard shortcuts

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