Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the testkube v1 API group +kubebuilder:object:generate=true +groupName=tests.testkube.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "tests.testkube.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// Type_ repository type
Type_ string `json:"type"`
// Uri of content file or git directory
Uri string `json:"uri"`
// branch/tag name for checkout
Branch string `json:"branch"`
// if needed we can checkout particular path (dir or file) in case of BIG/mono repositories
Path string `json:"path,omitempty"`
// git auth username for private repositories
Username string `json:"username,omitempty"`
// git auth token for private repositories
Token string `json:"token,omitempty"`
}
Repository represents VCS repo, currently we're habdling Git only
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Script ¶
type Script struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ScriptSpec `json:"spec,omitempty"`
Status ScriptStatus `json:"status,omitempty"`
}
Script is the Schema for the scripts API
func (*Script) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Script.
func (*Script) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Script) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScriptList ¶
type ScriptList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Script `json:"items"`
}
ScriptList contains a list of Script
func (*ScriptList) DeepCopy ¶
func (in *ScriptList) DeepCopy() *ScriptList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScriptList.
func (*ScriptList) DeepCopyInto ¶
func (in *ScriptList) DeepCopyInto(out *ScriptList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScriptList) DeepCopyObject ¶
func (in *ScriptList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScriptSpec ¶
type ScriptSpec struct {
// script type
Type_ string `json:"type,omitempty"`
// script execution custom name
Name string `json:"name,omitempty"`
// execution params passed to executor
Params map[string]string `json:"params,omitempty"`
// script content as string (content depends from executor)
Content string `json:"content,omitempty"`
// script content type can be: - direct content - created from file, - git repo directory checkout in case when test is some kind of project or have more than one file,
InputType string `json:"input-type,omitempty"`
// repository details if exists
Repository *Repository `json:"repository,omitempty"`
Tags []string `json:"tags,omitempty"`
}
ScriptSpec defines the desired state of Script
func (*ScriptSpec) DeepCopy ¶
func (in *ScriptSpec) DeepCopy() *ScriptSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScriptSpec.
func (*ScriptSpec) DeepCopyInto ¶
func (in *ScriptSpec) DeepCopyInto(out *ScriptSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScriptStatus ¶
type ScriptStatus struct {
LastExecution metav1.Time `json:"last_execution,omitempty"`
ExecutionsCount int `json:"executions_count,omitempty"`
}
ScriptStatus defines the observed state of Script
func (*ScriptStatus) DeepCopy ¶
func (in *ScriptStatus) DeepCopy() *ScriptStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScriptStatus.
func (*ScriptStatus) DeepCopyInto ¶
func (in *ScriptStatus) DeepCopyInto(out *ScriptStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.