Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Copyright 2022 coseguera.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: basiccontroller.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Demo ¶
type Demo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DemoSpec `json:"spec"` Status DemoStatus `json:"status"` }
Demo is a specification for a Demo resource
func (*Demo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Demo.
func (*Demo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Demo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DemoList ¶
type DemoList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Demo `json:"items"` }
DemoList is a list of Demo resources
func (*DemoList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DemoList.
func (*DemoList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DemoList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DemoSpec ¶
type DemoSpec struct {
Message string `json:"message"`
}
DemoSpec is the spec for a Demo resource
func (*DemoSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DemoSpec.
func (*DemoSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DemoStatus ¶
type DemoStatus struct {
LastMessage string `json:"lastMessage"`
}
DemoStatus is the status for a Demo resource
func (*DemoStatus) DeepCopy ¶
func (in *DemoStatus) DeepCopy() *DemoStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DemoStatus.
func (*DemoStatus) DeepCopyInto ¶
func (in *DemoStatus) DeepCopyInto(out *DemoStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.