Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the validation v1alpha1 API group +kubebuilder:object:generate=true +groupName=validation.spectrocloud.labs
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "validation.spectrocloud.labs", Version: "v1alpha1"} // 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 Auth ¶
type Auth struct {
// +kubebuilder:validation:Optional
SecretName string `json:"secretName" yaml:"secretName"`
// +kubebuilder:validation:Optional
TokenKey string `json:"token" yaml:"token"`
}
func (*Auth) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Auth.
func (*Auth) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaasInstance ¶
type MaasInstance struct {
// Host is the URL for your MaaS instance
Host string `json:"host" yaml:"host"`
Auth Auth `json:"auth" yaml:"auth"`
}
MaasInstance describes the MaaS host
func (*MaasInstance) DeepCopy ¶
func (in *MaasInstance) DeepCopy() *MaasInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasInstance.
func (*MaasInstance) DeepCopyInto ¶
func (in *MaasInstance) DeepCopyInto(out *MaasInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaasInstanceRules ¶
type MaasInstanceRules struct {
// Unique rule name
Name string `json:"name" yaml:"name"`
// OSImages is a list of bootable os images
OSImages []OSImage `json:"bootable-images,omitempty" yaml:"bootable-images,omitempty"`
// Auth provides authentication information for the MaaS Instance
Auth Auth `json:"auth" yaml:"auth"`
}
func (*MaasInstanceRules) DeepCopy ¶
func (in *MaasInstanceRules) DeepCopy() *MaasInstanceRules
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasInstanceRules.
func (*MaasInstanceRules) DeepCopyInto ¶
func (in *MaasInstanceRules) DeepCopyInto(out *MaasInstanceRules)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MaasValidator ¶
type MaasValidator struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MaasValidatorSpec `json:"spec,omitempty"`
Status MaasValidatorStatus `json:"status,omitempty"`
}
MaasValidator is the Schema for the maasvalidators API
func (*MaasValidator) DeepCopy ¶
func (in *MaasValidator) DeepCopy() *MaasValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasValidator.
func (*MaasValidator) DeepCopyInto ¶
func (in *MaasValidator) DeepCopyInto(out *MaasValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaasValidator) DeepCopyObject ¶
func (in *MaasValidator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaasValidatorList ¶
type MaasValidatorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MaasValidator `json:"items"`
}
MaasValidatorList contains a list of MaasValidator
func (*MaasValidatorList) DeepCopy ¶
func (in *MaasValidatorList) DeepCopy() *MaasValidatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasValidatorList.
func (*MaasValidatorList) DeepCopyInto ¶
func (in *MaasValidatorList) DeepCopyInto(out *MaasValidatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MaasValidatorList) DeepCopyObject ¶
func (in *MaasValidatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MaasValidatorSpec ¶
type MaasValidatorSpec struct {
MaasInstanceRules `json:"MaasInstanceRules,omitempty" yaml:"MaasInstanceRules,omitempty"`
MaasInstance `json:"MaasInstance" yaml:"MaasInstance"`
}
MaasValidatorSpec defines the desired state of MaasValidator
func (*MaasValidatorSpec) DeepCopy ¶
func (in *MaasValidatorSpec) DeepCopy() *MaasValidatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasValidatorSpec.
func (*MaasValidatorSpec) DeepCopyInto ¶
func (in *MaasValidatorSpec) DeepCopyInto(out *MaasValidatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MaasValidatorSpec) ResultCount ¶
func (s MaasValidatorSpec) ResultCount() int
type MaasValidatorStatus ¶
type MaasValidatorStatus struct{}
MaasValidatorStatus defines the observed state of MaasValidator
func (*MaasValidatorStatus) DeepCopy ¶
func (in *MaasValidatorStatus) DeepCopy() *MaasValidatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaasValidatorStatus.
func (*MaasValidatorStatus) DeepCopyInto ¶
func (in *MaasValidatorStatus) DeepCopyInto(out *MaasValidatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OSImage ¶
type OSImage struct {
// The name of the bootable image
Name string `json:"name" yaml:"name"`
// OS Architecture
Architecture string `json:"os-arch" yaml:"os-arch"`
}
func (*OSImage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImage.
func (*OSImage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.