common

package
v0.0.0-...-88de366 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common functionality shared between commands.

Index

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

func CreateMapFromEqualDelimitedStrings(labels []string) (map[string]string, error)

CreateMapFromEqualDelimitedStrings creates a map[string]string from a slice of "="-delimited strings.

func ExpandedOutputPath

func ExpandedOutputPath(root string) string

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

func SuggestedOutputPath(root string) string

SuggestedOutputPath takes a root output directory and returns the path where suggested configs should be stored.

func UseGsutil

func UseGsutil(config, output string) bool

UseGsutil returns true if the config or suggestedOutput or expandedOutput has a prefix of gs://. This indicates whether to pull the config from GCS or push the output to GCS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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