Documentation ¶
Index ¶
- Constants
- func GetClient(cmd *cobra.Command) (client.Client, string)
- func NewAbortExecutionCmd() *cobra.Command
- func NewCreateScriptsCmd() *cobra.Command
- func NewGetExecutionCmd() *cobra.Command
- func NewListExecutionsCmd() *cobra.Command
- func NewListScriptsCmd() *cobra.Command
- func NewStartScriptCmd() *cobra.Command
- func NewWatchExecutionCmd() *cobra.Command
- func PrintExecutionDetails(execution testkube.Execution)
- type GoTemplateListRenderer
- type GoTemplateRenderer
- type JSONListRenderer
- type JSONRenderer
- type ListRenderer
- type RawListRenderer
- type RawRenderer
- type Renderer
Constants ¶
View Source
const ( OutputGoTemplate = "go" OutputJSON = "json" OutputRAW = "raw" )
View Source
const WatchInterval = 2 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewAbortExecutionCmd ¶
func NewCreateScriptsCmd ¶
func NewGetExecutionCmd ¶
func NewListExecutionsCmd ¶
func NewListScriptsCmd ¶
func NewStartScriptCmd ¶
func NewWatchExecutionCmd ¶
func PrintExecutionDetails ¶
Types ¶
type GoTemplateListRenderer ¶
type GoTemplateListRenderer struct {
Template string
}
func (GoTemplateListRenderer) Render ¶
func (r GoTemplateListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
type GoTemplateRenderer ¶
type GoTemplateRenderer struct {
Template string
}
type JSONListRenderer ¶
type JSONListRenderer struct { }
func (JSONListRenderer) Render ¶
func (r JSONListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
type ListRenderer ¶
type ListRenderer interface {
Render(list testkube.ExecutionsResult, writer io.Writer) error
}
func GetListRenderer ¶
func GetListRenderer(cmd *cobra.Command) ListRenderer
type RawListRenderer ¶
type RawListRenderer struct { }
func (RawListRenderer) Render ¶
func (r RawListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
Click to show internal directories.
Click to hide internal directories.