Documentation ¶
Overview ¶
Package common functionality shared between commands.
Index ¶
- func CreateApplicationLinksListFromEqualDelimitedStrings(applicationLinks []string) ([]applicationsv1beta1.Link, error)
- func CreateDeployer(ctx context.Context, useGsutil, useGcloud, verbose bool, serverDryRun bool) (*deployer.Deployer, error)
- func CreateMapFromEqualDelimitedStrings(labels []string) (map[string]string, error)
- func ExpandedOutputPath(root string) string
- func GcloudInPath() bool
- func SuggestedOutputPath(root string) string
- func UseGsutil(config, output string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplicationLinksListFromEqualDelimitedStrings ¶
func CreateApplicationLinksListFromEqualDelimitedStrings(applicationLinks []string) ([]applicationsv1beta1.Link, error)
CreateApplicationLinksListFromEqualDelimitedStrings creates a []applicationsv1beta1.Link from a slice of "="-delimited strings, where the key is set as Description and the value is set as URL.
func CreateDeployer ¶
func CreateDeployer(ctx context.Context, useGsutil, useGcloud, verbose bool, serverDryRun bool) (*deployer.Deployer, error)
CreateDeployer creates a Deployer with initialized clients.
func CreateMapFromEqualDelimitedStrings ¶
CreateMapFromEqualDelimitedStrings creates a map[string]string from a slice of "="-delimited strings.
func ExpandedOutputPath ¶
ExpandedOutputPath takes a root output directory and returns the path where expanded configs should be stored.
func GcloudInPath ¶
func GcloudInPath() bool
GcloudInPath returns true if the `gcloud` command is in this machine's PATH.
func SuggestedOutputPath ¶
SuggestedOutputPath takes a root output directory and returns the path where suggested configs should be stored.
Types ¶
This section is empty.