scripts

package
v0.7.4-beta007 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ErrTypeNotDetected = fmt.Errorf("type not detected")

Functions

func DownloadArtifacts added in v0.6.29

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

func GenerateCRD

func GenerateCRD(namespace, path string) (string, error)

TODO find a way to use internal objects as YAML GenerateCRD generates CRDs based on directory of test files

func GetClient

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

func NewAbortExecutionCmd

func NewAbortExecutionCmd() *cobra.Command

func NewCRDScriptsCmd

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

func NewWatchExecutionCmd() *cobra.Command

func SanitizePath

func SanitizePath(path string) string

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

type Script

type Script struct {
	Name      string
	Namespace string
	Content   string
	Type      string
}

Jump to

Keyboard shortcuts

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