scripts

package
v0.5.42 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputGoTemplate = "go"
	OutputJSON       = "json"
	OutputRAW        = "raw"
)
View Source
const WatchInterval = 2 * time.Second

Variables

This section is empty.

Functions

func GetClient

func GetClient(cmd *cobra.Command) (client.Client, string)

func NewAbortExecutionCmd

func NewAbortExecutionCmd() *cobra.Command

func NewCreateScriptsCmd

func NewCreateScriptsCmd() *cobra.Command

func NewGetExecutionCmd

func NewGetExecutionCmd() *cobra.Command

func NewListExecutionsCmd

func NewListExecutionsCmd() *cobra.Command

func NewListScriptsCmd

func NewListScriptsCmd() *cobra.Command

func NewStartScriptCmd

func NewStartScriptCmd() *cobra.Command

func NewWatchExecutionCmd

func NewWatchExecutionCmd() *cobra.Command

func PrintExecutionDetails

func PrintExecutionDetails(execution testkube.Execution)

Types

type GoTemplateListRenderer

type GoTemplateListRenderer struct {
	Template string
}

func (GoTemplateListRenderer) Render

type GoTemplateRenderer

type GoTemplateRenderer struct {
	Template string
}

func (GoTemplateRenderer) Render

func (r GoTemplateRenderer) Render(result testkube.Execution, writer io.Writer) error

func (GoTemplateRenderer) Watch

func (r GoTemplateRenderer) Watch(result testkube.Execution, writer io.Writer) error

type JSONListRenderer

type JSONListRenderer struct {
}

func (JSONListRenderer) Render

func (r JSONListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error

type JSONRenderer

type JSONRenderer struct {
}

func (JSONRenderer) Render

func (r JSONRenderer) Render(result testkube.Execution, writer io.Writer) error

func (JSONRenderer) Watch

func (r JSONRenderer) Watch(result testkube.Execution, 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

type RawRenderer

type RawRenderer struct {
}

func (RawRenderer) Render

func (r RawRenderer) Render(execution testkube.Execution, writer io.Writer) error

func (RawRenderer) Watch

func (r RawRenderer) Watch(execution testkube.Execution, writer io.Writer) error

type Renderer

type Renderer interface {
	Render(result testkube.Execution, writer io.Writer) error
	Watch(result testkube.Execution, writer io.Writer) error
}

func GetRenderer

func GetRenderer(cmd *cobra.Command) Renderer

Jump to

Keyboard shortcuts

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