Documentation
¶
Index ¶
- Constants
- func Bind(cmd *cobra.Command, command Command, options BindOptions)
- func FindIntegrationDefinition(ctx CommandContext, name string) (openapi_client.IntegrationsIntegrationDefinition, error)
- func ParseIntegrationScopedName(name string) (string, string, bool)
- func ParseYamlResourceHeaders(raw []byte) (string, string, error)
- type BindOptions
- type Command
- type CommandContext
- type OutputFormat
- type Renderer
Constants ¶
View Source
const (
APIVersion = "v1"
)
Variables ¶
This section is empty.
Functions ¶
func FindIntegrationDefinition ¶
func FindIntegrationDefinition(ctx CommandContext, name string) (openapi_client.IntegrationsIntegrationDefinition, error)
Types ¶
type BindOptions ¶
type BindOptions struct {
NewAPIClient func() *openapi_client.APIClient
DefaultOutputFormat func() string
}
type Command ¶
type Command interface {
Execute(ctx CommandContext) error
}
type CommandContext ¶
type CommandContext struct {
Context context.Context
Cmd *cobra.Command
Args []string
Logger *log.Entry
API *openapi_client.APIClient
Renderer Renderer
}
func NewCommandContext ¶
func NewCommandContext(cmd *cobra.Command, args []string, options BindOptions) (CommandContext, error)
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatText OutputFormat = "text" OutputFormatJSON OutputFormat = "json" OutputFormatYAML OutputFormat = "yaml" )
Click to show internal directories.
Click to hide internal directories.