Documentation
¶
Index ¶
- Constants
- Variables
- func CheckIfAuthn(status int) bool
- func Execute()
- func Login()
- func MakeBuildPath()
- func PrintVerboseRequest(req *http.Request)
- func PrintVerboseResponse(res *http.Response)
- func RequireAuthToken()
- func RequireOrgName()
- type AuthResponse
- type Bundle
- type Deployment
- type DeploymentPatch
- type EnvVar
- type Environment
- type EnvironmentPatch
Constants ¶
const ( NAME = 0 VALUE = 1 )
Variables ¶
var ADD_CORS = `` /* 748-byte string literal not displayed */
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`,
}
var PROXY_ENDPOINT = `` /* 622-byte string literal not displayed */
var PROXY_XML = `` /* 809-byte string literal not displayed */
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
var TARGET_ENDPOINT = `` /* 515-byte string literal not displayed */
var Version = "0.0.0"
Functions ¶
func CheckIfAuthn ¶ added in v1.3.0
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 MakeBuildPath ¶ added in v1.2.0
func MakeBuildPath()
MakeBuildPath make build service path with given orgName
func PrintVerboseRequest ¶
PrintVerboseRequest used to print the request when using verbose
func PrintVerboseResponse ¶
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 Deployment ¶
type DeploymentPatch ¶
type Environment ¶
type EnvironmentPatch ¶
type EnvironmentPatch struct {
HostNames []string
}