scripts

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 13 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 NewDeleteScriptsCmd added in v0.6.4

func NewDeleteScriptsCmd() *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

Types

type ExecutionGoTemplateRenderer added in v0.6.4

type ExecutionGoTemplateRenderer struct {
	Template string
}

func (ExecutionGoTemplateRenderer) Render added in v0.6.4

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

func (ExecutionGoTemplateRenderer) Watch added in v0.6.4

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

type ExecutionJSONRenderer added in v0.6.4

type ExecutionJSONRenderer struct {
}

func (ExecutionJSONRenderer) Render added in v0.6.4

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

func (ExecutionJSONRenderer) Watch added in v0.6.4

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

type ExecutionRawRenderer added in v0.6.4

type ExecutionRawRenderer struct {
}

func (ExecutionRawRenderer) Render added in v0.6.4

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

func (ExecutionRawRenderer) Watch added in v0.6.4

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

type ExecutionRenderer added in v0.6.4

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

func GetExecutionRenderer added in v0.6.4

func GetExecutionRenderer(cmd *cobra.Command) ExecutionRenderer

type ExecutionsGoTemplateListRenderer added in v0.6.4

type ExecutionsGoTemplateListRenderer struct {
	Template string
}

func (ExecutionsGoTemplateListRenderer) Render added in v0.6.4

type ExecutionsJSONListRenderer added in v0.6.4

type ExecutionsJSONListRenderer struct {
}

func (ExecutionsJSONListRenderer) Render added in v0.6.4

type ExecutionsListRenderer added in v0.6.4

type ExecutionsListRenderer interface {
	Render(list testkube.ExecutionsResult, writer io.Writer) error
}

func GetExecutionsListRenderer added in v0.6.4

func GetExecutionsListRenderer(cmd *cobra.Command) ExecutionsListRenderer

type ExecutionsRawListRenderer added in v0.6.4

type ExecutionsRawListRenderer struct {
}

func (ExecutionsRawListRenderer) Render added in v0.6.4

Jump to

Keyboard shortcuts

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