Documentation ¶
Index ¶
Constants ¶
const ( GroupName = "apirator.io" Version = "v1alpha1" )
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: GroupName, Version: Version, }
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type APIMock ¶
type APIMock struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec APIMockSpec `json:"spec,omitempty"` Status APIMockStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Foo is a specification for a Foo resource
func (*APIMock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMock.
func (*APIMock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIMock) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type APIMockList ¶
type APIMockList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []APIMock `json:"items"` }
func (*APIMockList) DeepCopy ¶
func (in *APIMockList) DeepCopy() *APIMockList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockList.
func (*APIMockList) DeepCopyInto ¶
func (in *APIMockList) DeepCopyInto(out *APIMockList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIMockList) DeepCopyObject ¶
func (in *APIMockList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type APIMockSpec ¶
type APIMockSpec struct { Definition string `json:"definition,omitempty"` ServiceDefinition ServiceDefinition `json:"serviceDefinition,omitempty"` Watch bool `json:"watch,omitempty"` Selector map[string]string `json:"selector,omitempty"` Host string `json:"host,omitempty"` }
func (*APIMockSpec) DeepCopy ¶
func (in *APIMockSpec) DeepCopy() *APIMockSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockSpec.
func (*APIMockSpec) DeepCopyInto ¶
func (in *APIMockSpec) DeepCopyInto(out *APIMockSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type APIMockStatus ¶
func (*APIMockStatus) DeepCopy ¶
func (in *APIMockStatus) DeepCopy() *APIMockStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockStatus.
func (*APIMockStatus) DeepCopyInto ¶
func (in *APIMockStatus) DeepCopyInto(out *APIMockStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceDefinition ¶
type ServiceDefinition struct { Port int `json:"port,omitempty"` ServiceType v1.ServiceType `json:"serviceType,omitempty"` }
func (*ServiceDefinition) DeepCopy ¶
func (in *ServiceDefinition) DeepCopy() *ServiceDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDefinition.
func (*ServiceDefinition) DeepCopyInto ¶
func (in *ServiceDefinition) DeepCopyInto(out *ServiceDefinition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Step ¶
type Step struct { Action string `json:"action,omitempty"` LastUpdate metav1.Time `json:"lastUpdate,omitempty"` Description string `json:"description,omitempty"` }
func (*Step) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.
func (*Step) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.