cmd

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppAttachDomain

func AppAttachDomain(appName, domainName, path, endpoint string) (*ybApi.AppStatusRes, error)

AppAttachDomain link the application and domain

func AppAttachVolume

func AppAttachVolume(appName, volumeName, path string) (*ybApi.AppStatusRes, error)

AppAttachVolume link the application and volume

func AppStart

func AppStart(name string) (*ybApi.AppStatusRes, error)

AppStart start the application by name

func AppStop

func AppStop(name string) (*ybApi.AppStatusRes, error)

AppStop stop the application by name

func ApplicationAddEnvironmentVariable

func ApplicationAddEnvironmentVariable(serviceName string, variable map[string]string) (*ybApi.AppStatusRes, error)

ApplicationAddEnvironmentVariable add Environment Variable to Application

func ApplicationCreate

func ApplicationCreate(appName, image, plan, EndpointType string, port, minScale uint64) (*ybApi.AppStatusRes, error)

ApplicationCreate create application by link of docker image

func ApplicationLinkService

func ApplicationLinkService(applicationName, serviceName string) (*ybApi.AppStatusRes, error)

ApplicationLinkService Application <-> Service

func CheckNewerVersion

func CheckNewerVersion(inform bool) (*selfupdate.Release, bool)

CheckNewerVersion .

func DomainCreate

func DomainCreate(domain string, tls bool) (*ybApi.DomainStatusRes, error)

DomainCreate create domain

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SelfUpdate

func SelfUpdate(latestAvailable *selfupdate.Release)

SelfUpdate .

func ServiceCreate

func ServiceCreate(productName, serviceName, plan string, variable map[string]string) (*ybApi.SrvStatusRes, error)

ServiceCreate create Service by ProductName and PlanName

func ServiceEnvironmentSet

func ServiceEnvironmentSet(serviceName string, variable map[string]string) (*ybApi.SrvStatusRes, error)

ServiceEnvironmentSet set Environment {key:value} for service

func ServiceLinkDomain

func ServiceLinkDomain(serviceName, domainName, endpoint, path string) (*ybApi.SrvStatusRes, error)

ServiceLinkDomain like domain to service

func ServiceStart

func ServiceStart(name string) (*ybApi.SrvStatusRes, error)

ServiceStart start service by name

func ServiceStop

func ServiceStop(name string) (*ybApi.SrvStatusRes, error)

ServiceStop stop service by name

func VolumeCreate

func VolumeCreate(name, volumeType string) (*ybApi.VolumeStatusRes, error)

VolumeCreate crate a volume by name and type

func VolumeDelete

func VolumeDelete(name string) error

VolumeDelete delete a volume by name

Types

This section is empty.

Jump to

Keyboard shortcuts

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