v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+groupName=licenses.appscode.com

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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 License

type License struct {
	metav1.TypeMeta `json:",inline,omitempty"`

	Issuer    string        `json:"issuer,omitempty"` // byte.builders
	Products  []string      `json:"products,omitempty"`
	Clusters  []string      `json:"clusters,omitempty"`  // cluster_id ?
	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

func (in *License) DeepCopy() *License

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

func (*License) DeepCopyInto

func (in *License) DeepCopyInto(out *License)

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

func (*License) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LicenseStatus

type LicenseStatus string
const (
	LicenseUnknown  LicenseStatus = "unknown"
	LicenseActive   LicenseStatus = "active"
	LicenseExpired  LicenseStatus = "expired"
	LicenseCanceled LicenseStatus = "canceled"
)

Jump to

Keyboard shortcuts

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