v1

package
v0.0.0-...-98ac406 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

View Source
var (
	GrantStatusFree    GrantStatus = "Free"
	GrantStatusPending GrantStatus = "Pending"
	GrantStatusInUse   GrantStatus = "InUse"

	UsageRequestStatusDiscover     UsageRequestStatus = "Discover"
	UsageRequestStatusOffer        UsageRequestStatus = "Offer"
	UsageRequestStatusAcknowledged UsageRequestStatus = "Acknowledged"
)
View Source
var (
	EntitlementResourceName = "entitlements"
	RequestResourceName     = "requests"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: licensing.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Grant) DeepCopy() *Grant

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Grant.

func (*Grant) DeepCopyInto

func (in *Grant) DeepCopyInto(out *Grant)

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 NewRequest(namespace, name string, obj Request) *Request

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request.

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Request) DeepCopyObject

func (in *Request) DeepCopyObject() runtime.Object

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL