v1alpha1

package
Version: v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 28

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
	ProductLine  string            `json:"productLine,omitempty"`
	TierName     string            `json:"tierName,omitempty"`
	PlanName     string            `json:"planName,omitempty"`
	Features     []string          `json:"features,omitempty"`
	FeatureFlags map[string]string `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

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.

func (License) DisableAnalytics added in v0.9.5

func (l License) DisableAnalytics() bool

type LicenseStatus

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

type User

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

Jump to

Keyboard shortcuts

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