Documentation ¶
Overview ¶
+groupName=licenses.appscode.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: licenses.GroupName, Version: "v1alpha1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Contract ¶ added in v0.12.0
type Contract struct { ID string `json:"id"` StartTimestamp metav1.Time `json:"startTimestamp"` ExpiryTimestamp metav1.Time `json:"expiryTimestamp"` }
func (*Contract) DeepCopy ¶ added in v0.12.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Contract.
func (*Contract) DeepCopyInto ¶ added in v0.12.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureFlag ¶ added in v0.14.5
type FeatureFlag string
const ( FeatureDisableAnalytics FeatureFlag = "DisableAnalytics" FeatureRestrictions FeatureFlag = "Restrictions" FeatureEnableClientBilling FeatureFlag = "EnableClientBilling" )
type FeatureFlags ¶ added in v0.14.5
type FeatureFlags map[FeatureFlag]string
func (FeatureFlags) DeepCopy ¶ added in v0.14.5
func (in FeatureFlags) DeepCopy() FeatureFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlags.
func (FeatureFlags) DeepCopyInto ¶ added in v0.14.5
func (in FeatureFlags) DeepCopyInto(out *FeatureFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureFlags) IsValid ¶ added in v0.14.5
func (f FeatureFlags) IsValid() error
func (FeatureFlags) ToSlice ¶ added in v0.14.5
func (f FeatureFlags) ToSlice() []string
type License ¶
type License struct { metav1.TypeMeta `json:",inline,omitempty"` Data []byte `json:"-"` Issuer string `json:"issuer,omitempty"` // byte.builders ProductLine string `json:"productLine,omitempty"` TierName string `json:"tierName,omitempty"` PlanName string `json:"planName,omitempty"` Features []string `json:"features,omitempty"` FeatureFlags FeatureFlags `json:"featureFlags,omitempty"` Clusters []string `json:"clusters,omitempty"` // cluster_id ? User *User `json:"user,omitempty"` NotBefore *metav1.Time `json:"notBefore,omitempty"` // start of subscription start NotAfter *metav1.Time `json:"notAfter,omitempty"` // if set, use this ID string `json:"id,omitempty"` // license ID Status LicenseStatus `json:"status"` Reason string `json:"reason"` }
License defines a AppsCode product license info.
func (*License) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License.
func (*License) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*License) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (License) DisableAnalytics ¶ added in v0.9.5
func (License) EnableClientBilling ¶ added in v0.14.6
type LicenseStatus ¶
type LicenseStatus string
+kubebuilder:validation:Enum=unknown;active;invalid;canceled
const ( LicenseUnknown LicenseStatus = "unknown" LicenseActive LicenseStatus = "active" LicenseInvalid LicenseStatus = "invalid" LicenseCanceled LicenseStatus = "canceled" )