Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIURL = "http://localhost:8000" ConfigKeyURL = "url" ConfigKeyToken = "token" ConfigKeyOutput = "output" )
Variables ¶
View Source
var ( Verbose bool OutputFormat string )
View Source
var RootCmd = &cobra.Command{ Use: "admin", Short: "Manage a SuperPlane installation", PersistentPreRunE: func(_ *cobra.Command, _ []string) error { if !Verbose { log.SetOutput(io.Discard) } if GetAPIToken() == "" { return fmt.Errorf( "installation admin token is required; set INSTALLATION_ADMIN_TOKEN or use --token", ) } return nil }, }
Functions ¶
func DefaultClient ¶
func DefaultClient() *openapi_client.APIClient
func GetAPIToken ¶
func GetAPIToken() string
func GetOutputFormat ¶
func GetOutputFormat() string
func NewAPIClient ¶
func NewAPIClient(config *ClientConfig) *openapi_client.APIClient
Types ¶
type ClientConfig ¶
func NewClientConfig ¶
func NewClientConfig() *ClientConfig
Click to show internal directories.
Click to hide internal directories.