Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=gooslo.io
Index ¶
Constants ¶
const ( PollPeriod = 5 * time.Second PollTimeout = 30 * time.Second )
PollPeriod defines how often we poll to check if CRD is there PollTimeout defines after how much time we'll stop waiting to check if CRD was created
const ( GroupName = "gooslo.io" Kind = "application" GroupVersion = "v1" SingularName = "application" PluralName = "applications" CustomResourceDefinitionName = PluralName + "." + GroupName )
GroupName contains the api name GroupVersion contains the api version
Variables ¶
var ( AddToScheme = localSchemeBuilder.AddToScheme SchemeBuilder runtime.SchemeBuilder )
localSchemeBuilder will stay in k8s.io/kubernetes. AddToScheme will stay in k8s.io/kubernetes.
var SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: GroupVersion, }
Functions ¶
func CreateCRD ¶
func CreateCRD(clientset apiextensionsclientset.Interface) (*apiextensionsv1beta1.CustomResourceDefinition, error)
CreateCRD registers a new CRD kind and then periodically polls the API server to check if the CRD was created.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` // apiVersion, kind metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec"` }
Application is a top-level type. A client is created for it.
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Application) DeepCopyObject ¶
func (in *Application) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationList ¶
type ApplicationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Application `json:"items"` }
ApplicationList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*ApplicationList) DeepCopy ¶
func (in *ApplicationList) DeepCopy() *ApplicationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationList.
func (*ApplicationList) DeepCopyInto ¶
func (in *ApplicationList) DeepCopyInto(out *ApplicationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationList) DeepCopyObject ¶
func (in *ApplicationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationSpec ¶
ApplicationSpec defines the CRD spec.
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.