Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the dela v1alpha1 API group +kubebuilder:object:generate=true +groupName=dela.phillebaba.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "dela.phillebaba.io", 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 Intent ¶
type Intent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IntentSpec `json:"spec,omitempty"` Status IntentStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" Intent is the Schema for the Intents API
func (*Intent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Intent.
func (*Intent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Intent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntentList ¶
type IntentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Intent `json:"items"` }
+kubebuilder:object:root=true IntentList contains a list of Intent
func (*IntentList) DeepCopy ¶
func (in *IntentList) DeepCopy() *IntentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentList.
func (*IntentList) DeepCopyInto ¶
func (in *IntentList) DeepCopyInto(out *IntentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntentList) DeepCopyObject ¶
func (in *IntentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IntentReference ¶
type IntentReference struct { // Name of Intent. Name string `json:"name"` // Namespace of Intent. Namespace string `json:"namespace"` }
IntentReference contains the name and namespace of an Intent.
func (*IntentReference) DeepCopy ¶
func (in *IntentReference) DeepCopy() *IntentReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentReference.
func (*IntentReference) DeepCopyInto ¶
func (in *IntentReference) DeepCopyInto(out *IntentReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntentSpec ¶
type IntentSpec struct { // Reference to Secret that is shared by Intent. SecretName string `json:"secretName"` // Namespaces that are whitelisted to access the Intent. // Supports either plain text or regex. // Empty list means allowing all namespaces. NamespaceWhitelist []string `json:"namespaceWhitelist,omitempty"` }
IntentSpec defines the desired state of Intent
func (*IntentSpec) DeepCopy ¶
func (in *IntentSpec) DeepCopy() *IntentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentSpec.
func (*IntentSpec) DeepCopyInto ¶
func (in *IntentSpec) DeepCopyInto(out *IntentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntentState ¶
type IntentState string
IntentState represents the current state of a Intent.
const ( // Error when locating referenced Secert. IntentStateError IntentState = "Error" // Secret has been located. IntentStateReady IntentState = "Ready" )
type IntentStatus ¶
type IntentStatus struct {
State IntentState `json:"state"`
}
IntentStatus defines the observed state of Intent
func (*IntentStatus) DeepCopy ¶
func (in *IntentStatus) DeepCopy() *IntentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntentStatus.
func (*IntentStatus) DeepCopyInto ¶
func (in *IntentStatus) DeepCopyInto(out *IntentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Request ¶
type Request struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RequestSpec `json:"spec,omitempty"` Status RequestStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" Request is the Schema for the Requests API
func (*Request) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request.
func (*Request) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Request) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RequestList ¶
type RequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Request `json:"items"` }
+kubebuilder:object:root=true RequestList contains a list of Request
func (*RequestList) DeepCopy ¶
func (in *RequestList) DeepCopy() *RequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestList.
func (*RequestList) DeepCopyInto ¶
func (in *RequestList) DeepCopyInto(out *RequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RequestList) DeepCopyObject ¶
func (in *RequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RequestSpec ¶
type RequestSpec struct { // Identifier of Intent to make Request for. IntentRef IntentReference `json:"intentRef"` // Overrides ObjectMeta of the Secret copy. SecretObjectMeta metav1.ObjectMeta `json:"secretMetadata"` }
RequestSpec defines the desired state of Request
func (*RequestSpec) DeepCopy ¶
func (in *RequestSpec) DeepCopy() *RequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestSpec.
func (*RequestSpec) DeepCopyInto ¶
func (in *RequestSpec) DeepCopyInto(out *RequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RequestState ¶
type RequestState string
RequestState represents the current state of a Request.
const ( // Error has occured when copying the Secret. RequestStateError RequestState = "Error" // Request fulfilled and the Secret has been copied. RequestStateReady RequestState = "Ready" )
type RequestStatus ¶
type RequestStatus struct {
State RequestState `json:"state"`
}
RequestStatus defines the observed state of Request
func (*RequestStatus) DeepCopy ¶
func (in *RequestStatus) DeepCopy() *RequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestStatus.
func (*RequestStatus) DeepCopyInto ¶
func (in *RequestStatus) DeepCopyInto(out *RequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.