Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadArtifacts(id, dir string, client client.Client)
- func GenerateCRD(namespace, path string) (string, error)
- func GetClient(cmd *cobra.Command) (client.Client, string)
- func NewAbortExecutionCmd() *cobra.Command
- func NewCRDScriptsCmd() *cobra.Command
- func NewCreateScriptsCmd() *cobra.Command
- func NewDeleteScriptsCmd() *cobra.Command
- func NewGetExecutionCmd() *cobra.Command
- func NewGetScriptsCmd() *cobra.Command
- func NewListExecutionsCmd() *cobra.Command
- func NewListScriptsCmd() *cobra.Command
- func NewStartScriptCmd() *cobra.Command
- func NewUpdateScriptsCmd() *cobra.Command
- func NewWatchExecutionCmd() *cobra.Command
- func SanitizePath(path string) string
- type ExecutionGoTemplateRenderer
- type ExecutionJSONRenderer
- type ExecutionRawRenderer
- type ExecutionRenderer
- type ExecutionsGoTemplateListRenderer
- type ExecutionsJSONListRenderer
- type ExecutionsListRenderer
- type ExecutionsRawListRenderer
- type Script
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 GenerateCRD ¶
TODO find a way to use internal objects as YAML GenerateCRD generates CRDs based on directory of test files
func NewAbortExecutionCmd ¶
func NewCRDScriptsCmd ¶
func NewCreateScriptsCmd ¶
func NewDeleteScriptsCmd ¶ added in v0.6.4
func NewGetExecutionCmd ¶
func NewGetScriptsCmd ¶ added in v0.7.3
func NewListExecutionsCmd ¶
func NewListScriptsCmd ¶
func NewStartScriptCmd ¶
func NewUpdateScriptsCmd ¶ added in v0.7.3
func NewWatchExecutionCmd ¶
func SanitizePath ¶
Types ¶
type ExecutionGoTemplateRenderer ¶ added in v0.6.4
type ExecutionGoTemplateRenderer struct {
Template string
}
type ExecutionJSONRenderer ¶ added in v0.6.4
type ExecutionJSONRenderer struct { }
type ExecutionRawRenderer ¶ added in v0.6.4
type ExecutionRawRenderer struct { }
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
func (r ExecutionsGoTemplateListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
type ExecutionsJSONListRenderer ¶ added in v0.6.4
type ExecutionsJSONListRenderer struct { }
func (ExecutionsJSONListRenderer) Render ¶ added in v0.6.4
func (r ExecutionsJSONListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
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
func (r ExecutionsRawListRenderer) Render(list testkube.ExecutionsResult, writer io.Writer) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.