Documentation
¶
Index ¶
- Constants
- Variables
- func AddGraphql(cmd *cobra.Command, args []string) error
- func AddSecret(cmd *cobra.Command, args []string) error
- func BashCompletion(cmd *cobra.Command, args []string) error
- func Checkout(cmd *cobra.Command, args []string) error
- func CreateVault(cmd *cobra.Command, args []string) error
- func DefaultTablePrinter(header string, rows []string, out io.Writer)
- func DeleteSecret(cmd *cobra.Command, args []string) error
- func DeleteVault(cmd *cobra.Command, args []string) error
- func EditFile(cmd *cobra.Command, args []string) error
- func EditSecret(cmd *cobra.Command, args []string) error
- func GetApplicationDeploymentRefTable(deployments []string) (string, []string)
- func GetDeploySpecTable(specs []deploymentspec.DeploymentSpec, newVersion string) (string, []string)
- func GetFilesTable(files []string) (string, []string)
- func GetSecret(cmd *cobra.Command, args []string) error
- func ListVaults(cmd *cobra.Command, args []string) error
- func Login(cmd *cobra.Command, args []string) error
- func Logout(cmd *cobra.Command, args []string) error
- func PostLogin(cmd *cobra.Command, args []string)
- func PreLogin(cmd *cobra.Command, args []string) error
- func PrintAffiliationsGraphql(cmd *cobra.Command, args []string) error
- func PrintAll(cmd *cobra.Command, args []string) error
- func PrintApplications(cmd *cobra.Command, args []string) error
- func PrintClusters(cmd *cobra.Command, printAll bool)
- func PrintDeploySpec(cmd *cobra.Command, args []string) error
- func PrintDeploySpecTable(args []string, filter auroraconfig.FilterMode, cmd *cobra.Command, ...) error
- func PrintEnvironments(cmd *cobra.Command, args []string) error
- func PrintFile(cmd *cobra.Command, args []string) error
- func RecreateConfig(cmd *cobra.Command, args []string) error
- func RenameSecret(cmd *cobra.Command, args []string) error
- func RenameVault(cmd *cobra.Command, args []string) error
- func Set(cmd *cobra.Command, args []string) error
- func SetRefName(cmd *cobra.Command, args []string) error
- func Unset(cmd *cobra.Command, args []string) error
- func Update(cmd *cobra.Command, args []string) error
- func UpdateClusters(cmd *cobra.Command, args []string) error
- func UpdateGitHook(cmd *cobra.Command, args []string) error
- func Validate(cmd *cobra.Command, args []string) error
- func VaultAddPermissions(cmd *cobra.Command, args []string) error
- func VaultRemovePermissions(cmd *cobra.Command, args []string) error
- func Version(cmd *cobra.Command, args []string) error
- type AuroraConfigFileValidationResponse
- type CreateAuroraConfigFileResponse
- type DeploySpecPartition
- type DeploymentInfo
- type DeploymentPartition
- type NewAuroraConfigFileInput
- type Partition
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 GetDeploySpecTable ¶
func GetDeploySpecTable(specs []deploymentspec.DeploymentSpec, newVersion string) (string, []string)
func GetFilesTable ¶
func PrintClusters ¶
func PrintDeploySpecTable ¶
func PrintDeploySpecTable(args []string, filter auroraconfig.FilterMode, cmd *cobra.Command, fileNames auroraconfig.FileNames) 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 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.