Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=licensing.cattle.io
+k8s:deepcopy-gen=package +groupName=licensing.cattle.io
+k8s:deepcopy-gen=package +groupName=licensing.cattle.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( GrantStatusFree GrantStatus = "Free" GrantStatusPending GrantStatus = "Pending" GrantStatusInUse GrantStatus = "InUse" UsageRequestStatusDiscover UsageRequestStatus = "Discover" UsageRequestStatusOffer UsageRequestStatus = "Offer" UsageRequestStatusAcknowledged UsageRequestStatus = "Acknowledged" )
var ( EntitlementResourceName = "entitlements" RequestResourceName = "requests" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: licensing.GroupName, Version: "v1"}
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 Entitlement ¶
type Entitlement struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status EntitlementStatus `json:"status,omitempty"` }
func NewEntitlement ¶
func NewEntitlement(namespace, name string, obj Entitlement) *Entitlement
func (*Entitlement) DeepCopy ¶
func (in *Entitlement) DeepCopy() *Entitlement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Entitlement.
func (*Entitlement) DeepCopyInto ¶
func (in *Entitlement) DeepCopyInto(out *Entitlement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Entitlement) DeepCopyObject ¶
func (in *Entitlement) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EntitlementList ¶
type EntitlementList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Entitlement `json:"items"` }
EntitlementList is a list of Entitlement resources
func (*EntitlementList) DeepCopy ¶
func (in *EntitlementList) DeepCopy() *EntitlementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntitlementList.
func (*EntitlementList) DeepCopyInto ¶
func (in *EntitlementList) DeepCopyInto(out *EntitlementList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EntitlementList) DeepCopyObject ¶
func (in *EntitlementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EntitlementStatus ¶
type EntitlementStatus struct { Grants map[string]Grant `json:"grants"` Licenses int `json:"licenses"` Units string `json:"units"` EarliestExpiration metav1.Time `json:"earliestExpiration"` }
func (*EntitlementStatus) DeepCopy ¶
func (in *EntitlementStatus) DeepCopy() *EntitlementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EntitlementStatus.
func (*EntitlementStatus) DeepCopyInto ¶
func (in *EntitlementStatus) DeepCopyInto(out *EntitlementStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Grant ¶
type Grant struct { Id string `json:"id"` Amount int `json:"amount"` Unit string `json:"unit"` NotBefore metav1.Time `json:"notBefore"` NotAfter metav1.Time `json:"notAfter"` LicenseSecret kubernetes.NamespacedName `json:"licenseSecret"` Status GrantStatus `json:"grantStatus"` Request kubernetes.NamespacedName `json:"request"` }
func (*Grant) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Grant.
func (*Grant) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrantStatus ¶
type GrantStatus string
type Request ¶
type Request struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RequestSpec `json:"spec,omitempty"` Status RequestStatus `json:"status,omitempty"` }
func NewRequest ¶
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"` Items []Request `json:"items"` }
RequestList is a list of Request resources
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 { Kind string `json:"kind"` Unit string `json:"unit"` Amount int `json:"amount"` }
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 RequestStatus ¶
type RequestStatus struct { Status UsageRequestStatus `json:"status"` Grant string `json:"grant"` LicenseSecret string `json:"licenseSecret"` Message string `json:"message"` }
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.
type UsageRequestStatus ¶
type UsageRequestStatus string