tests

package
v0.9.17-beta001 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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.9.5

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

func NewAbortExecutionCmd added in v0.9.5

func NewAbortExecutionCmd() *cobra.Command

func NewCreateTestsCmd

func NewCreateTestsCmd() *cobra.Command

NewCreateTestsCmd is a command tp create new Test Custom Resource

func NewDeleteAllTestsCmd added in v0.9.5

func NewDeleteAllTestsCmd() *cobra.Command

func NewDeleteTestsCmd

func NewDeleteTestsCmd() *cobra.Command

func NewGetExecutionCmd added in v0.9.5

func NewGetExecutionCmd() *cobra.Command

func NewGetTestsCmd

func NewGetTestsCmd() *cobra.Command

func NewListExecutionsCmd added in v0.9.5

func NewListExecutionsCmd() *cobra.Command

func NewListTestsCmd

func NewListTestsCmd() *cobra.Command

func NewRunTestCmd added in v0.9.5

func NewRunTestCmd() *cobra.Command

func NewUpdateTestsCmd

func NewUpdateTestsCmd() *cobra.Command

func NewUpsertTestOptionsFromFlags added in v0.9.5

func NewUpsertTestOptionsFromFlags(cmd *cobra.Command, test testkube.Test) (options apiclientv1.UpsertTestOptions, err error)

func NewWatchExecutionCmd added in v0.9.5

func NewWatchExecutionCmd() *cobra.Command

Types

type ExecutionGoTemplateRenderer added in v0.9.5

type ExecutionGoTemplateRenderer struct {
	Template string
}

func (ExecutionGoTemplateRenderer) Render added in v0.9.5

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

func (ExecutionGoTemplateRenderer) Watch added in v0.9.5

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

type ExecutionJSONRenderer added in v0.9.5

type ExecutionJSONRenderer struct {
}

func (ExecutionJSONRenderer) Render added in v0.9.5

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

func (ExecutionJSONRenderer) Watch added in v0.9.5

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

type ExecutionRawRenderer added in v0.9.5

type ExecutionRawRenderer struct {
}

func (ExecutionRawRenderer) Render added in v0.9.5

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

func (ExecutionRawRenderer) Watch added in v0.9.5

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

type ExecutionRenderer added in v0.9.5

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

func GetExecutionRenderer added in v0.9.5

func GetExecutionRenderer(cmd *cobra.Command) ExecutionRenderer

type ExecutionsGoTemplateListRenderer added in v0.9.5

type ExecutionsGoTemplateListRenderer struct {
	Template string
}

func (ExecutionsGoTemplateListRenderer) Render added in v0.9.5

type ExecutionsJSONListRenderer added in v0.9.5

type ExecutionsJSONListRenderer struct {
}

func (ExecutionsJSONListRenderer) Render added in v0.9.5

type ExecutionsListRenderer added in v0.9.5

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

func GetExecutionsListRenderer added in v0.9.5

func GetExecutionsListRenderer(cmd *cobra.Command) ExecutionsListRenderer

type ExecutionsRawListRenderer added in v0.9.5

type ExecutionsRawListRenderer struct {
}

func (ExecutionsRawListRenderer) Render added in v0.9.5

Jump to

Keyboard shortcuts

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