scripts

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 17 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 DownloadArtifacts added in v0.6.29

func DownloadArtifacts(id, dir string, client apiclientv1.Client)

func NewAbortExecutionCmd

func NewAbortExecutionCmd() *cobra.Command

func NewCreateScriptsCmd

func NewCreateScriptsCmd() *cobra.Command

NewCreateScriptsCmd is a command tp create new scriptcustom resource

func NewDeleteAllScriptsCmd added in v0.7.21

func NewDeleteAllScriptsCmd() *cobra.Command

func NewDeleteScriptsCmd added in v0.6.4

func NewDeleteScriptsCmd() *cobra.Command

func NewGetExecutionCmd

func NewGetExecutionCmd() *cobra.Command

func NewGetScriptsCmd added in v0.7.3

func NewGetScriptsCmd() *cobra.Command

func NewListExecutionsCmd

func NewListExecutionsCmd() *cobra.Command

func NewListScriptsCmd

func NewListScriptsCmd() *cobra.Command

func NewStartScriptCmd

func NewStartScriptCmd() *cobra.Command

func NewUpdateScriptsCmd added in v0.7.3

func NewUpdateScriptsCmd() *cobra.Command

func NewUpsertScriptOptionsFromFlags added in v0.8.8

func NewUpsertScriptOptionsFromFlags(cmd *cobra.Command, script testkube.Script) (options apiclientv1.UpsertScriptOptions, err error)

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