github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_executor.go (about)

     1  /*
     2   * Testkube API
     3   *
     4   * Testkube provides a Kubernetes-native framework for test definition, execution and results
     5   *
     6   * API version: 1.0.0
     7   * Contact: testkube@kubeshop.io
     8   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     9   */
    10  package testkube
    11  
    12  // CRD based executor data
    13  type Executor struct {
    14  	// ExecutorType one of \"rest\" for rest openapi based executors or \"job\" which will be default runners for testkube soon
    15  	ExecutorType string `json:"executorType,omitempty"`
    16  	// Image for kube-job
    17  	Image  string      `json:"image,omitempty"`
    18  	Slaves *SlavesMeta `json:"slaves,omitempty"`
    19  	// container image pull secrets
    20  	ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"`
    21  	// executor image command
    22  	Command []string `json:"command,omitempty"`
    23  	// additional executor binary argument
    24  	Args []string `json:"args,omitempty"`
    25  	// Types defines what types can be handled by executor e.g. \"postman/collection\", \":curl/command\" etc
    26  	Types []string `json:"types,omitempty"`
    27  	// URI for rest based executors
    28  	Uri string `json:"uri,omitempty"`
    29  	// list of handled content types
    30  	ContentTypes []string `json:"contentTypes,omitempty"`
    31  	// Job template to launch executor
    32  	JobTemplate string `json:"jobTemplate,omitempty"`
    33  	// name of the template resource
    34  	JobTemplateReference string `json:"jobTemplateReference,omitempty"`
    35  	// executor labels
    36  	Labels map[string]string `json:"labels,omitempty"`
    37  	// Available executor features
    38  	Features []string      `json:"features,omitempty"`
    39  	Meta     *ExecutorMeta `json:"meta,omitempty"`
    40  	// use data dir as working dir for executor
    41  	UseDataDirAsWorkingDir bool `json:"useDataDirAsWorkingDir,omitempty"`
    42  }