cmd

package
v2.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ADD    permissionAction = 0
	DELETE permissionAction = 1
)

Variables

View Source
var (

	// DefaultApiClient will use APICluster from ao config as default values
	// if persistent token and/or server api url is specified these will override default values
	DefaultApiClient *client.ApiClient
	AO               *config.AOConfig
	ConfigLocation   string
)
View Source
var (
	ErrEmptyGroups            = errors.New("Cannot find groups in permissions")
	ErrNotValidSecretArgument = errors.New("not a valid argument, must be <vaultname/secret>")
)
View Source
var RootCmd = &cobra.Command{
	Use:   "ao",
	Short: "Aurora OpenShift CLI",
	Long:  rootLong,

	PersistentPreRunE: initialize,
}

Functions

func AddGraphql

func AddGraphql(cmd *cobra.Command, args []string) error

func AddSecret

func AddSecret(cmd *cobra.Command, args []string) error

func BashCompletion

func BashCompletion(cmd *cobra.Command, args []string) error

func Checkout

func Checkout(cmd *cobra.Command, args []string) error

func CreateVault

func CreateVault(cmd *cobra.Command, args []string) error

func DefaultTablePrinter

func DefaultTablePrinter(header string, rows []string, out io.Writer)

func DeleteSecret

func DeleteSecret(cmd *cobra.Command, args []string) error

func DeleteVault

func DeleteVault(cmd *cobra.Command, args []string) error

func EditFile

func EditFile(cmd *cobra.Command, args []string) error

func EditSecret

func EditSecret(cmd *cobra.Command, args []string) error

func GetApplicationDeploymentRefTable

func GetApplicationDeploymentRefTable(deployments []string) (string, []string)

func GetDeploySpecTable

func GetDeploySpecTable(specs []deploymentspec.DeploymentSpec, newVersion string) (string, []string)

func GetFilesTable

func GetFilesTable(files []string) (string, []string)

func GetSecret added in v1.2.0

func GetSecret(cmd *cobra.Command, args []string) error

func ListVaults

func ListVaults(cmd *cobra.Command, args []string) error

func Login

func Login(cmd *cobra.Command, args []string) error

func Logout

func Logout(cmd *cobra.Command, args []string) error

func PostLogin

func PostLogin(cmd *cobra.Command, args []string)

func PreLogin

func PreLogin(cmd *cobra.Command, args []string) error

func PrintAffiliationsGraphql

func PrintAffiliationsGraphql(cmd *cobra.Command, args []string) error

func PrintAll

func PrintAll(cmd *cobra.Command, args []string) error

func PrintApplications

func PrintApplications(cmd *cobra.Command, args []string) error

func PrintClusters

func PrintClusters(cmd *cobra.Command, printAll bool)

func PrintDeploySpec

func PrintDeploySpec(cmd *cobra.Command, args []string) error

func PrintDeploySpecTable

func PrintDeploySpecTable(args []string, filter auroraconfig.FilterMode, cmd *cobra.Command, fileNames auroraconfig.FileNames) error

func PrintEnvironments

func PrintEnvironments(cmd *cobra.Command, args []string) error

func PrintFile

func PrintFile(cmd *cobra.Command, args []string) error

func RecreateConfig

func RecreateConfig(cmd *cobra.Command, args []string) error

func RenameSecret

func RenameSecret(cmd *cobra.Command, args []string) error

func RenameVault

func RenameVault(cmd *cobra.Command, args []string) error

func Set

func Set(cmd *cobra.Command, args []string) error

func SetRefName

func SetRefName(cmd *cobra.Command, args []string) error

func Unset

func Unset(cmd *cobra.Command, args []string) error

func Update

func Update(cmd *cobra.Command, args []string) error

func UpdateClusters

func UpdateClusters(cmd *cobra.Command, args []string) error

func UpdateGitHook

func UpdateGitHook(cmd *cobra.Command, args []string) error

func Validate

func Validate(cmd *cobra.Command, args []string) error

func VaultAddPermissions

func VaultAddPermissions(cmd *cobra.Command, args []string) error

func VaultRemovePermissions

func VaultRemovePermissions(cmd *cobra.Command, args []string) error

func Version

func Version(cmd *cobra.Command, args []string) error

Types

type AuroraConfigFileValidationResponse

type AuroraConfigFileValidationResponse struct {
	Message string `json:"message"`
	Success bool   `json:"success"`
}

AuroraConfigFileValidationResponse is core of response from the graphql "createAuroraConfigFile"

type CreateAuroraConfigFileResponse

type CreateAuroraConfigFileResponse struct {
	CreateAuroraConfigFile AuroraConfigFileValidationResponse `json:"createAuroraConfigFile"`
}

CreateAuroraConfigFileResponse is response from the named graphql mutation "createAuroraConfigFile"

type DeploySpecPartition

type DeploySpecPartition struct {
	Partition
	DeploySpecs []deploymentspec.DeploymentSpec
}

type DeploymentInfo

type DeploymentInfo struct {
	Namespace   string
	Name        string
	ClusterName string
}

type DeploymentPartition

type DeploymentPartition struct {
	Partition
	DeploymentInfos []DeploymentInfo
}

type NewAuroraConfigFileInput

type NewAuroraConfigFileInput struct {
	AuroraConfigName string `json:"auroraConfigName"`
	FileName         string `json:"fileName"`
	Contents         string `json:"contents"`
}

NewAuroraConfigFileInput is input to the graphql createAuroraConfigFile interface

type Partition

type Partition struct {
	Cluster          config.Cluster
	AuroraConfigName string
	OverrideToken    string
}

Jump to

Keyboard shortcuts

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