Documentation ¶
Index ¶
- Constants
- func DownloadArtifacts(id, dir string, client apiclientv1.Client)
- func NewAbortExecutionCmd() *cobra.Command
- func NewCreateTestsCmd() *cobra.Command
- func NewDeleteAllTestsCmd() *cobra.Command
- func NewDeleteTestsCmd() *cobra.Command
- func NewGetExecutionCmd() *cobra.Command
- func NewGetTestsCmd() *cobra.Command
- func NewListExecutionsCmd() *cobra.Command
- func NewListTestsCmd() *cobra.Command
- func NewRunTestCmd() *cobra.Command
- func NewUpdateTestsCmd() *cobra.Command
- func NewUpsertTestOptionsFromFlags(cmd *cobra.Command, test testkube.Test) (options apiclientv1.UpsertTestOptions, err error)
- func NewWatchExecutionCmd() *cobra.Command
- type ExecutionGoTemplateRenderer
- type ExecutionJSONRenderer
- type ExecutionRawRenderer
- type ExecutionRenderer
- type ExecutionsGoTemplateListRenderer
- type ExecutionsJSONListRenderer
- type ExecutionsListRenderer
- type ExecutionsRawListRenderer
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 NewCreateTestsCmd ¶
NewCreateTestsCmd is a command tp create new Test Custom Resource
func NewDeleteAllTestsCmd ¶ added in v0.9.5
func NewDeleteTestsCmd ¶
func NewGetExecutionCmd ¶ added in v0.9.5
func NewGetTestsCmd ¶
func NewListExecutionsCmd ¶ added in v0.9.5
func NewListTestsCmd ¶
func NewRunTestCmd ¶ added in v0.9.5
func NewUpdateTestsCmd ¶
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
Types ¶
type ExecutionGoTemplateRenderer ¶ added in v0.9.5
type ExecutionGoTemplateRenderer struct {
Template string
}
type ExecutionJSONRenderer ¶ added in v0.9.5
type ExecutionJSONRenderer struct { }
type ExecutionRawRenderer ¶ added in v0.9.5
type ExecutionRawRenderer struct { }
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
func (r ExecutionsGoTemplateListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
type ExecutionsJSONListRenderer ¶ added in v0.9.5
type ExecutionsJSONListRenderer struct { }
func (ExecutionsJSONListRenderer) Render ¶ added in v0.9.5
func (r ExecutionsJSONListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
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
func (r ExecutionsRawListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
Click to show internal directories.
Click to hide internal directories.