Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the test sources 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 GitAuthType ¶
type GitAuthType string
GitAuthType defines git auth type +kubebuilder:validation:Enum=basic;header
const ( // GitAuthTypeBasic for git basic auth requests GitAuthTypeBasic GitAuthType = "basic" // GitAuthTypeHeader for git header auth requests GitAuthTypeHeader GitAuthType = "header" )
type Repository ¶
type Repository struct {
// VCS 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,omitempty"`
// commit id (sha) for checkout
Commit string `json:"commit,omitempty"`
// If specified, does a sparse checkout of the repository at the given path
Path string `json:"path,omitempty"`
UsernameSecret *SecretRef `json:"usernameSecret,omitempty"`
TokenSecret *SecretRef `json:"tokenSecret,omitempty"`
// git auth certificate secret for private repositories
CertificateSecret string `json:"certificateSecret,omitempty"`
// if provided we checkout the whole repository and run test from this directory
WorkingDir string `json:"workingDir,omitempty"`
// auth type for git requests
AuthType GitAuthType `json:"authType,omitempty"`
}
Repository represents VCS repo, currently we're handling 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 SecretRef ¶
type SecretRef struct {
// object kubernetes namespace
Namespace string `json:"-"`
// object name
Name string `json:"name"`
// object key
Key string `json:"key"`
}
SecretRef is the Testkube internal reference for secret storage in Kubernetes secrets
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSource ¶
type TestSource struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestSourceSpec `json:"spec,omitempty"`
Status TestSourceStatus `json:"status,omitempty"`
}
TestSource is the Schema for the testsources API
func (*TestSource) DeepCopy ¶
func (in *TestSource) DeepCopy() *TestSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSource.
func (*TestSource) DeepCopyInto ¶
func (in *TestSource) DeepCopyInto(out *TestSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestSource) DeepCopyObject ¶
func (in *TestSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestSourceList ¶
type TestSourceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []TestSource `json:"items"`
}
TestSourceList contains a list of TestSource
func (*TestSourceList) DeepCopy ¶
func (in *TestSourceList) DeepCopy() *TestSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSourceList.
func (*TestSourceList) DeepCopyInto ¶
func (in *TestSourceList) DeepCopyInto(out *TestSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestSourceList) DeepCopyObject ¶
func (in *TestSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TestSourceSpec ¶
type TestSourceSpec struct {
Type_ TestSourceType `json:"type,omitempty"`
// repository of test content
Repository *Repository `json:"repository,omitempty"`
// test content body
Data string `json:"data,omitempty"`
// uri of test content
Uri string `json:"uri,omitempty"`
}
TestSourceSpec defines the desired state of TestSource
func (*TestSourceSpec) DeepCopy ¶
func (in *TestSourceSpec) DeepCopy() *TestSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSourceSpec.
func (*TestSourceSpec) DeepCopyInto ¶
func (in *TestSourceSpec) DeepCopyInto(out *TestSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSourceStatus ¶
type TestSourceStatus struct {
}
TestSourceStatus defines the observed state of TestSource
func (*TestSourceStatus) DeepCopy ¶
func (in *TestSourceStatus) DeepCopy() *TestSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSourceStatus.
func (*TestSourceStatus) DeepCopyInto ¶
func (in *TestSourceStatus) DeepCopyInto(out *TestSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestSourceType ¶
type TestSourceType string
+kubebuilder:validation:Enum=string;file-uri;git-file;git-dir;git
const ( TestSourceTypeString TestSourceType = "string" TestSourceTypeFileURI TestSourceType = "file-uri" // Deprecated: use git instead TestSourceTypeGitFile TestSourceType = "git-file" // Deprecated: use git instead TestSourceTypeGitDir TestSourceType = "git-dir" TestSourceTypeGit TestSourceType = "git" )