v1alpha1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=proxyserver.licenses.appscode.com

Index

Constants

View Source
const (
	ResourceKindLicenseRequest = "LicenseRequest"
	ResourceLicenseRequest     = "licenserequest"
	ResourceLicenseRequests    = "licenserequests"
)
View Source
const (
	ResourceKindLicenseStatus = "LicenseStatus"
	ResourceLicenseStatus     = "licensestatus"
	ResourceLicenseStatuses   = "licensestatuses"
)

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: proxyserver.GroupName, Version: "v1alpha1"}

Functions

func Resource added in v0.0.2

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ExtraValue

type ExtraValue []string

ExtraValue masks the value so protobuf can generate +protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false

func (ExtraValue) DeepCopy

func (in ExtraValue) DeepCopy() ExtraValue

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

func (ExtraValue) DeepCopyInto

func (in ExtraValue) DeepCopyInto(out *ExtraValue)

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

func (ExtraValue) String

func (t ExtraValue) String() string

type LicenseRequest added in v0.0.2

type LicenseRequest struct {
	metav1.TypeMeta `json:",inline"`
	// Request describes the attributes for the graph request.
	// +optional
	Request *LicenseRequestRequest `json:"request,omitempty"`
	// Response describes the attributes for the graph response.
	// +optional
	Response *LicenseRequestResponse `json:"response,omitempty"`
}

+genclient +genclient:nonNamespaced +genclient:onlyVerbs=create +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:resource:path=licenserequests,singular=licenserequest,scope=Cluster

func (*LicenseRequest) DeepCopy added in v0.0.2

func (in *LicenseRequest) DeepCopy() *LicenseRequest

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

func (*LicenseRequest) DeepCopyInto added in v0.0.2

func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest)

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

func (*LicenseRequest) DeepCopyObject added in v0.0.2

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

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

type LicenseRequestRequest added in v0.0.2

type LicenseRequestRequest struct {
	Features []string `json:"features"`
}

func (*LicenseRequestRequest) DeepCopy added in v0.0.2

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

func (*LicenseRequestRequest) DeepCopyInto added in v0.0.2

func (in *LicenseRequestRequest) DeepCopyInto(out *LicenseRequestRequest)

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

type LicenseRequestResponse added in v0.0.2

type LicenseRequestResponse struct {
	License string `json:"license"`
}

func (*LicenseRequestResponse) DeepCopy added in v0.0.2

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

func (*LicenseRequestResponse) DeepCopyInto added in v0.0.2

func (in *LicenseRequestResponse) DeepCopyInto(out *LicenseRequestResponse)

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

type LicenseStatus added in v0.0.2

type LicenseStatus struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LicenseStatusSpec   `json:"spec,omitempty"`
	Status LicenseStatusStatus `json:"status,omitempty"`
}

LicenseStatus is the Schema for the licensestatuses API

func (*LicenseStatus) DeepCopy added in v0.0.2

func (in *LicenseStatus) DeepCopy() *LicenseStatus

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

func (*LicenseStatus) DeepCopyInto added in v0.0.2

func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus)

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

func (*LicenseStatus) DeepCopyObject added in v0.0.2

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

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

type LicenseStatusList added in v0.0.2

type LicenseStatusList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []LicenseStatus `json:"items"`
}

LicenseStatusList contains a list of LicenseStatus

func (*LicenseStatusList) DeepCopy added in v0.0.2

func (in *LicenseStatusList) DeepCopy() *LicenseStatusList

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

func (*LicenseStatusList) DeepCopyInto added in v0.0.2

func (in *LicenseStatusList) DeepCopyInto(out *LicenseStatusList)

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

func (*LicenseStatusList) DeepCopyObject added in v0.0.2

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

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

type LicenseStatusSpec added in v0.0.2

type LicenseStatusSpec struct {
	Feature []string `json:"features"`
	// Result contains extra details into why an admission request was denied.
	// This field IS NOT consulted in any way if "Allowed" is "true".
	// +optional
	User *UserInfo `json:"user,omitempty"`
}

LicenseStatusSpec defines the desired state of License

func (*LicenseStatusSpec) DeepCopy added in v0.0.2

func (in *LicenseStatusSpec) DeepCopy() *LicenseStatusSpec

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

func (*LicenseStatusSpec) DeepCopyInto added in v0.0.2

func (in *LicenseStatusSpec) DeepCopyInto(out *LicenseStatusSpec)

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

type LicenseStatusStatus added in v0.0.2

type LicenseStatusStatus struct {
	Contract *licenseapi.Contract `json:"contract,omitempty"`
	License  licenseapi.License   `json:"license"`
}

LicenseStatusStatus defines the status of License

func (*LicenseStatusStatus) DeepCopy added in v0.0.2

func (in *LicenseStatusStatus) DeepCopy() *LicenseStatusStatus

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

func (*LicenseStatusStatus) DeepCopyInto added in v0.0.2

func (in *LicenseStatusStatus) DeepCopyInto(out *LicenseStatusStatus)

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

type UserInfo

type UserInfo struct {
	// The name that uniquely identifies this user among all active users.
	// +optional
	Username string `json:"username,omitempty"`
	// A unique value that identifies this user across time. If this user is
	// deleted and another user by the same name is added, they will have
	// different UIDs.
	// +optional
	UID string `json:"uid,omitempty"`
	// The names of groups this user is a part of.
	// +optional
	Groups []string `json:"groups,omitempty"`
	// Any additional information provided by the authenticator.
	// +optional
	Extra map[string]ExtraValue `json:"extra,omitempty"`
}

UserInfo holds the information about the user needed to implement the user.Info interface.

func (*UserInfo) DeepCopy

func (in *UserInfo) DeepCopy() *UserInfo

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

func (*UserInfo) DeepCopyInto

func (in *UserInfo) DeepCopyInto(out *UserInfo)

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