v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubewharf/kubezoo/pkg +k8s:defaulter-gen=TypeMeta +groupName=tenant.kubezoo.io

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AddToScheme = func(scheme *runtime.Scheme) error {
	metav1.AddToGroupVersion(scheme, schema.GroupVersion{
		Group:   "tenant.kubezoo.io",
		Version: "v1alpha1",
	})
	scheme.AddKnownTypes(schema.GroupVersion{
		Group:   "tenant.kubezoo.io",
		Version: "v1alpha1",
	}, &Tenant{}, &TenantList{})

	scheme.AddKnownTypes(schema.GroupVersion{
		Group:   "tenant.kubezoo.io",
		Version: runtime.APIVersionInternal,
	}, &Tenant{}, &TenantList{})

	return nil
}
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "tenant.kubezoo.io",
	Version: "v1alpha1",
}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Tenant

type Tenant struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// `spec` is the specification of the desired behavior of a flow-schema.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Spec TenantSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	// `status` is the current status of a flow-schema.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Status TenantStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

func (*Tenant) DeepCopy

func (in *Tenant) DeepCopy() *Tenant

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

func (*Tenant) DeepCopyInto

func (in *Tenant) DeepCopyInto(out *Tenant)

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

func (*Tenant) DeepCopyObject

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

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

func (*Tenant) Descriptor

func (*Tenant) Descriptor() ([]byte, []int)

func (*Tenant) GetGroupVersionResource

func (t *Tenant) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the group version resource of tenant.

func (*Tenant) GetObjectMeta

func (t *Tenant) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta returns the object metadata of tenant.

func (*Tenant) GetStatus

func (in *Tenant) GetStatus() resource.StatusSubResource

GetStatus returns the sub resource of status.

func (*Tenant) IsStorageVersion

func (t *Tenant) IsStorageVersion() bool

IsStorageVersion returns whether tenant is storage version or not.

func (*Tenant) Marshal

func (m *Tenant) Marshal() (dAtA []byte, err error)

func (*Tenant) MarshalTo

func (m *Tenant) MarshalTo(dAtA []byte) (int, error)

func (*Tenant) MarshalToSizedBuffer

func (m *Tenant) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Tenant) NamespaceScoped

func (t *Tenant) NamespaceScoped() bool

NamespaceScoped returns whether the tenant is namespace scoped or not.

func (*Tenant) New

func (t *Tenant) New() runtime.Object

New returns a tenant object.

func (*Tenant) NewList

func (t *Tenant) NewList() runtime.Object

NewList returns a list of tenant objects.

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) Reset

func (m *Tenant) Reset()

func (*Tenant) Size

func (m *Tenant) Size() (n int)

func (*Tenant) String

func (this *Tenant) String() string

func (*Tenant) Unmarshal

func (m *Tenant) Unmarshal(dAtA []byte) error

func (*Tenant) Validate

func (t *Tenant) Validate(ctx context.Context) field.ErrorList

Validate does some validation.

func (*Tenant) XXX_DiscardUnknown

func (m *Tenant) XXX_DiscardUnknown()

func (*Tenant) XXX_Marshal

func (m *Tenant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tenant) XXX_Merge

func (m *Tenant) XXX_Merge(src proto.Message)

func (*Tenant) XXX_Size

func (m *Tenant) XXX_Size() int

func (*Tenant) XXX_Unmarshal

func (m *Tenant) XXX_Unmarshal(b []byte) error

type TenantList

type TenantList struct {
	metav1.TypeMeta `json:",inline"`
	// `metadata` is the standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// `items` is a list of tenant
	// +listType=atomic
	Items []Tenant `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object TenantList is a list of Tenant objects.

func (*TenantList) DeepCopy

func (in *TenantList) DeepCopy() *TenantList

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

func (*TenantList) DeepCopyInto

func (in *TenantList) DeepCopyInto(out *TenantList)

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

func (*TenantList) DeepCopyObject

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

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

func (*TenantList) Descriptor

func (*TenantList) Descriptor() ([]byte, []int)

func (*TenantList) GetListMeta

func (in *TenantList) GetListMeta() *metav1.ListMeta

GetListMeta returns list metadata.

func (*TenantList) Marshal

func (m *TenantList) Marshal() (dAtA []byte, err error)

func (*TenantList) MarshalTo

func (m *TenantList) MarshalTo(dAtA []byte) (int, error)

func (*TenantList) MarshalToSizedBuffer

func (m *TenantList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TenantList) ProtoMessage

func (*TenantList) ProtoMessage()

func (*TenantList) Reset

func (m *TenantList) Reset()

func (*TenantList) Size

func (m *TenantList) Size() (n int)

func (*TenantList) String

func (this *TenantList) String() string

func (*TenantList) Unmarshal

func (m *TenantList) Unmarshal(dAtA []byte) error

func (*TenantList) XXX_DiscardUnknown

func (m *TenantList) XXX_DiscardUnknown()

func (*TenantList) XXX_Marshal

func (m *TenantList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TenantList) XXX_Merge

func (m *TenantList) XXX_Merge(src proto.Message)

func (*TenantList) XXX_Size

func (m *TenantList) XXX_Size() int

func (*TenantList) XXX_Unmarshal

func (m *TenantList) XXX_Unmarshal(b []byte) error

type TenantQuota

type TenantQuota struct {
	// hard is the set of desired hard limits for each named resource.
	// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
	// +optional
	Hard corev1.ResourceList `json:"hard,omitempty" protobuf:"bytes,1,rep,name=hard,casttype=ResourceList,castkey=ResourceName"`
}

func (*TenantQuota) DeepCopy

func (in *TenantQuota) DeepCopy() *TenantQuota

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

func (*TenantQuota) DeepCopyInto

func (in *TenantQuota) DeepCopyInto(out *TenantQuota)

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

func (*TenantQuota) Descriptor

func (*TenantQuota) Descriptor() ([]byte, []int)

func (*TenantQuota) Marshal

func (m *TenantQuota) Marshal() (dAtA []byte, err error)

func (*TenantQuota) MarshalTo

func (m *TenantQuota) MarshalTo(dAtA []byte) (int, error)

func (*TenantQuota) MarshalToSizedBuffer

func (m *TenantQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TenantQuota) ProtoMessage

func (*TenantQuota) ProtoMessage()

func (*TenantQuota) Reset

func (m *TenantQuota) Reset()

func (*TenantQuota) Size

func (m *TenantQuota) Size() (n int)

func (*TenantQuota) String

func (this *TenantQuota) String() string

func (*TenantQuota) Unmarshal

func (m *TenantQuota) Unmarshal(dAtA []byte) error

func (*TenantQuota) XXX_DiscardUnknown

func (m *TenantQuota) XXX_DiscardUnknown()

func (*TenantQuota) XXX_Marshal

func (m *TenantQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TenantQuota) XXX_Merge

func (m *TenantQuota) XXX_Merge(src proto.Message)

func (*TenantQuota) XXX_Size

func (m *TenantQuota) XXX_Size() int

func (*TenantQuota) XXX_Unmarshal

func (m *TenantQuota) XXX_Unmarshal(b []byte) error

type TenantSpec

type TenantSpec struct {
	ID    int32       `json:"id" protobuf:"varint,1,name=id"`
	Quota TenantQuota `json:"quota" protobuf:"bytes,2,name=quota"`
}

TenantSpec describes how the proxy-rule's specification looks like.

func (*TenantSpec) DeepCopy

func (in *TenantSpec) DeepCopy() *TenantSpec

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

func (*TenantSpec) DeepCopyInto

func (in *TenantSpec) DeepCopyInto(out *TenantSpec)

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

func (*TenantSpec) Descriptor

func (*TenantSpec) Descriptor() ([]byte, []int)

func (*TenantSpec) Marshal

func (m *TenantSpec) Marshal() (dAtA []byte, err error)

func (*TenantSpec) MarshalTo

func (m *TenantSpec) MarshalTo(dAtA []byte) (int, error)

func (*TenantSpec) MarshalToSizedBuffer

func (m *TenantSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TenantSpec) ProtoMessage

func (*TenantSpec) ProtoMessage()

func (*TenantSpec) Reset

func (m *TenantSpec) Reset()

func (*TenantSpec) Size

func (m *TenantSpec) Size() (n int)

func (*TenantSpec) String

func (this *TenantSpec) String() string

func (*TenantSpec) Unmarshal

func (m *TenantSpec) Unmarshal(dAtA []byte) error

func (*TenantSpec) XXX_DiscardUnknown

func (m *TenantSpec) XXX_DiscardUnknown()

func (*TenantSpec) XXX_Marshal

func (m *TenantSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TenantSpec) XXX_Merge

func (m *TenantSpec) XXX_Merge(src proto.Message)

func (*TenantSpec) XXX_Size

func (m *TenantSpec) XXX_Size() int

func (*TenantSpec) XXX_Unmarshal

func (m *TenantSpec) XXX_Unmarshal(b []byte) error

type TenantStatus

type TenantStatus struct {
	// Current state of tenant.
	Online bool `json:"online,omitempty" protobuf:"bytes,1,name=online"`
}

TenantStatus represents the current state of a rule.

func (TenantStatus) CopyTo

CopyTo the status.

func (*TenantStatus) DeepCopy

func (in *TenantStatus) DeepCopy() *TenantStatus

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

func (*TenantStatus) DeepCopyInto

func (in *TenantStatus) DeepCopyInto(out *TenantStatus)

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

func (*TenantStatus) Descriptor

func (*TenantStatus) Descriptor() ([]byte, []int)

func (*TenantStatus) Marshal

func (m *TenantStatus) Marshal() (dAtA []byte, err error)

func (*TenantStatus) MarshalTo

func (m *TenantStatus) MarshalTo(dAtA []byte) (int, error)

func (*TenantStatus) MarshalToSizedBuffer

func (m *TenantStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TenantStatus) ProtoMessage

func (*TenantStatus) ProtoMessage()

func (*TenantStatus) Reset

func (m *TenantStatus) Reset()

func (*TenantStatus) Size

func (m *TenantStatus) Size() (n int)

func (*TenantStatus) String

func (this *TenantStatus) String() string

func (TenantStatus) SubResourceName

func (in TenantStatus) SubResourceName() string

SubResourceName returns subresource name.

func (*TenantStatus) Unmarshal

func (m *TenantStatus) Unmarshal(dAtA []byte) error

func (*TenantStatus) XXX_DiscardUnknown

func (m *TenantStatus) XXX_DiscardUnknown()

func (*TenantStatus) XXX_Marshal

func (m *TenantStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TenantStatus) XXX_Merge

func (m *TenantStatus) XXX_Merge(src proto.Message)

func (*TenantStatus) XXX_Size

func (m *TenantStatus) XXX_Size() int

func (*TenantStatus) XXX_Unmarshal

func (m *TenantStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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