cmd

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ApiResource = "api"
View Source
const BuildResource = "build"
View Source
const CreateAction = "create"
View Source
const DefaultUseContainer = false

DefaultUseContainer sets the default behavior if a container is used to run the oc commands.

View Source
const DeployAction = "deploy"
View Source
const DoctorAction = "doctor"
View Source
const EnvironmentResource = "environment"
View Source
const ExecuteAction = "execute"
View Source
const JsonCommandOutputFormat string = "json"
View Source
const ListAction = "list"
View Source
const LoginAction = "login"
View Source
const PipelineAnnotation = "techzone.ibm.com/tekton-pipeline-location"
View Source
const PipelineResource = "pipeline"
View Source
const PipelineRunAnnotation = "techzone.ibm.com/tekton-pipeline-run-location"
View Source
const ReservationResource = "reservation"
View Source
const ReserveAction = "reserve"
View Source
const ShowAction = "show"
View Source
const TechZoneFull = "IBM Technology Zone"
View Source
const TechZoneShort = "TechZone"
View Source
const TextCommandOutputFormat string = "text"
View Source
const VersionAction = "version"
View Source
const WorkspaceResource = "workspace"

Variables

View Source
var ITZVersionString = "No Version Provided"

Functions

func AssertFlag added in v0.1.26

func AssertFlag(val string, match AssertMatcher, msg string) error

func Execute

func Execute(version string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

func ExecutePipeline added in v0.1.26

func ExecutePipeline(cmd *cobra.Command, execArgs PipelineExecArgs) error

func GetFormat added in v0.1.26

func GetFormat(cmd *cobra.Command) string

func LoadApiClientConfig added in v0.1.26

func LoadApiClientConfig(path string) (*configuration.ApiConfig, error)

func LookupAnnotation added in v0.1.26

func LookupAnnotation(sol *solutions.Solution, name string) (string, bool)

func NotNull added in v0.1.26

func NotNull(val string) bool

func RunDoctor

func RunDoctor(fix bool) error

func SetLoggingLevel

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

func SetQuietLogging

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

func TextFileLogin added in v0.1.24

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

func ValidURL added in v0.1.26

func ValidURL(val string) bool

Types

type AssertMatcher added in v0.1.26

type AssertMatcher func(string) bool

type PipelineExecArgs added in v0.1.26

type PipelineExecArgs struct {
	PipelineURI     string
	PipelineRunURI  string
	AcceptDefaults  bool
	UseContainer    bool
	ClusterURL      string
	ClusterUsername string
	ClusterPassword string
	AdditionalArgs  []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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