Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder collects functions that add things to a scheme. It's to allow // code to compile without explicitly referencing generated types. You should // declare one in each package that will have generated deep copy or conversion // functions. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. A non-nil error // indicates that one function failed and the attempt was abandoned. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{
Group: "staples",
Version: "v1alpha1",
}
SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Container ¶
type Container struct { //+optional Image string `json:"image,omitempty"` //+Optional Env []v1.EnvVar `json:"env,omitempty"` Resources v1.ResourceRequirements `json:"resources"` }
func (*Container) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container.
func (*Container) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Site ¶
type Site struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec SiteSpec `json:"spec"` // +optional Status SiteStatus `json:"status,omitempty"` }
Site describes a website with vinceanalytics configured to send analytics stats.
func (*Site) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Site.
func (*Site) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Site) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SiteList ¶
type SiteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Site `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SiteList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteList.
func (*SiteList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SiteList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SiteSpec ¶
type SiteSpec struct { //+kubebuilder:validation:Pattern=`(?P<domain>(?:[a-z0-9]+(?:-[a-z0-9]+)*\.)+[a-z]{2,})` Domain string `json:"domain"` //+optional Public *bool `json:"public,omitempty"` //+optional Target *Target `json:"target,omitempty"` }
func (*SiteSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteSpec.
func (*SiteSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SiteStatus ¶
type SiteStatus struct {
Status string `json:"status"`
}
func (*SiteStatus) DeepCopy ¶
func (in *SiteStatus) DeepCopy() *SiteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SiteStatus.
func (*SiteStatus) DeepCopyInto ¶
func (in *SiteStatus) DeepCopyInto(out *SiteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Target ¶
Target is a reference to Vince crd resource that this site is attached to. We avoid using selectors because there will always be 1:1 mapping between the sites and vince instance.
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Vince ¶
type Vince struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec VinceSpec `json:"spec"` Status VinceStatus `json:"status,omitempty"` }
func (*Vince) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vince.
func (*Vince) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Vince) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VinceList ¶
type VinceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Vince `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*VinceList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VinceList.
func (*VinceList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VinceList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VinceSpec ¶
func (*VinceSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VinceSpec.
func (*VinceSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VinceStatus ¶
type VinceStatus struct { // A list of sites attached to this Vince instance. //+optional Sites []string `json:"sites,omitempty"` }
VinceStatus tracks status of resources that are created from Vince.
func (*VinceStatus) DeepCopy ¶
func (in *VinceStatus) DeepCopy() *VinceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VinceStatus.
func (*VinceStatus) DeepCopyInto ¶
func (in *VinceStatus) DeepCopyInto(out *VinceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Volume ¶
type Volume struct { Selector *metav1.LabelSelector `json:"selector,omitempty"` Size resource.Quantity `json:"size"` StorageClass string `json:"storageClass,omitempty"` SubPath string `json:"subPath,omitempty"` }
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.