cmd

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME  = 0
	VALUE = 1
)

Variables

View Source
var ADD_CORS = `` /* 748-byte string literal not displayed */
View Source
var ConfigCmd = &cobra.Command{
	Use:   "config <sub-command>",
	Short: "config based commands",
	Long: `Supports all of the configuration based commands for shipyardctl.

Example of use:

$ shipyardctl config use-context e2e

$ shipyardctl config view

$ shipyardctl config new-context prod --cluster-target=https://my.shipyard.com`,
}
View Source
var PROXY_ENDPOINT = `` /* 622-byte string literal not displayed */
View Source
var PROXY_XML = `` /* 809-byte string literal not displayed */
View Source
var RootCmd = &cobra.Command{
	Use:   "shipyardctl",
	Short: "A CLI wrapper for Enrober API",
	Long: `shipyardctl is a CLI wrapper for the Shipyard build and deploy APIs.

Pair this command with any of the available functions for applications, images,
bundles, environments or deployments.`,
}

RootCmd represents the base command when called without any subcommands

View Source
var TARGET_ENDPOINT = `` /* 515-byte string literal not displayed */
View Source
var Version = "0.0.0"

Functions

func CheckIfAuthn added in v1.3.0

func CheckIfAuthn(status int) bool

CheckIfAuthn checks if the API call was authenticated or not

func Execute

func Execute()

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

func Login added in v1.3.0

func Login()

func MakeBuildPath added in v1.2.0

func MakeBuildPath()

MakeBuildPath make build service path with given orgName

func PrintVerboseRequest

func PrintVerboseRequest(req *http.Request)

PrintVerboseRequest used to print the request when using verbose

func PrintVerboseResponse

func PrintVerboseResponse(res *http.Response)

PrintVerboseResponse used to print the response when using verbose

func RequireAuthToken added in v1.2.0

func RequireAuthToken()

RequireAuthToken used to load the auth token from: 1. --token flag 2. APIGEE_TOKEN env var 3. config file 4. Runs login sequence if there is no token at all

func RequireOrgName added in v1.2.0

func RequireOrgName()

RequireOrgName used to short circuit commands requiring the Apigee org name if it is not present

Types

type AuthResponse added in v1.2.1

type AuthResponse struct {
	Access_token string `json:"access_token"`
}

type Bundle

type Bundle struct {
	Name       string
	BasePath   string
	PublicPath string
}

type Deployment

type Deployment struct {
	DeploymentName string
	PublicHosts    string
	PrivateHosts   string
	Replicas       int64
	PtsUrl         string
	EnvVars        []EnvVar
}

type DeploymentPatch

type DeploymentPatch struct {
	PublicHosts  string
	PrivateHosts string
	Replicas     int64
	PtsUrl       string
}

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

type Environment

type Environment struct {
	EnvironmentName string
	HostNames       []string
}

type EnvironmentPatch

type EnvironmentPatch struct {
	HostNames []string
}

Jump to

Keyboard shortcuts

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