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 ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type Tenant
- func (in *Tenant) DeepCopy() *Tenant
- func (in *Tenant) DeepCopyInto(out *Tenant)
- func (in *Tenant) DeepCopyObject() runtime.Object
- func (*Tenant) Descriptor() ([]byte, []int)
- func (t *Tenant) GetGroupVersionResource() schema.GroupVersionResource
- func (t *Tenant) GetObjectMeta() *metav1.ObjectMeta
- func (in *Tenant) GetStatus() resource.StatusSubResource
- func (t *Tenant) IsStorageVersion() bool
- func (m *Tenant) Marshal() (dAtA []byte, err error)
- func (m *Tenant) MarshalTo(dAtA []byte) (int, error)
- func (m *Tenant) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (t *Tenant) NamespaceScoped() bool
- func (t *Tenant) New() runtime.Object
- func (t *Tenant) NewList() runtime.Object
- func (*Tenant) ProtoMessage()
- func (m *Tenant) Reset()
- func (m *Tenant) Size() (n int)
- func (this *Tenant) String() string
- func (m *Tenant) Unmarshal(dAtA []byte) error
- func (t *Tenant) Validate(ctx context.Context) field.ErrorList
- func (m *Tenant) XXX_DiscardUnknown()
- func (m *Tenant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tenant) XXX_Merge(src proto.Message)
- func (m *Tenant) XXX_Size() int
- func (m *Tenant) XXX_Unmarshal(b []byte) error
- type TenantList
- func (in *TenantList) DeepCopy() *TenantList
- func (in *TenantList) DeepCopyInto(out *TenantList)
- func (in *TenantList) DeepCopyObject() runtime.Object
- func (*TenantList) Descriptor() ([]byte, []int)
- func (in *TenantList) GetListMeta() *metav1.ListMeta
- func (m *TenantList) Marshal() (dAtA []byte, err error)
- func (m *TenantList) MarshalTo(dAtA []byte) (int, error)
- func (m *TenantList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TenantList) ProtoMessage()
- func (m *TenantList) Reset()
- func (m *TenantList) Size() (n int)
- func (this *TenantList) String() string
- func (m *TenantList) Unmarshal(dAtA []byte) error
- func (m *TenantList) XXX_DiscardUnknown()
- func (m *TenantList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TenantList) XXX_Merge(src proto.Message)
- func (m *TenantList) XXX_Size() int
- func (m *TenantList) XXX_Unmarshal(b []byte) error
- type TenantQuota
- func (in *TenantQuota) DeepCopy() *TenantQuota
- func (in *TenantQuota) DeepCopyInto(out *TenantQuota)
- func (*TenantQuota) Descriptor() ([]byte, []int)
- func (m *TenantQuota) Marshal() (dAtA []byte, err error)
- func (m *TenantQuota) MarshalTo(dAtA []byte) (int, error)
- func (m *TenantQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TenantQuota) ProtoMessage()
- func (m *TenantQuota) Reset()
- func (m *TenantQuota) Size() (n int)
- func (this *TenantQuota) String() string
- func (m *TenantQuota) Unmarshal(dAtA []byte) error
- func (m *TenantQuota) XXX_DiscardUnknown()
- func (m *TenantQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TenantQuota) XXX_Merge(src proto.Message)
- func (m *TenantQuota) XXX_Size() int
- func (m *TenantQuota) XXX_Unmarshal(b []byte) error
- type TenantSpec
- func (in *TenantSpec) DeepCopy() *TenantSpec
- func (in *TenantSpec) DeepCopyInto(out *TenantSpec)
- func (*TenantSpec) Descriptor() ([]byte, []int)
- func (m *TenantSpec) Marshal() (dAtA []byte, err error)
- func (m *TenantSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *TenantSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TenantSpec) ProtoMessage()
- func (m *TenantSpec) Reset()
- func (m *TenantSpec) Size() (n int)
- func (this *TenantSpec) String() string
- func (m *TenantSpec) Unmarshal(dAtA []byte) error
- func (m *TenantSpec) XXX_DiscardUnknown()
- func (m *TenantSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TenantSpec) XXX_Merge(src proto.Message)
- func (m *TenantSpec) XXX_Size() int
- func (m *TenantSpec) XXX_Unmarshal(b []byte) error
- type TenantStatus
- func (in TenantStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
- func (in *TenantStatus) DeepCopy() *TenantStatus
- func (in *TenantStatus) DeepCopyInto(out *TenantStatus)
- func (*TenantStatus) Descriptor() ([]byte, []int)
- func (m *TenantStatus) Marshal() (dAtA []byte, err error)
- func (m *TenantStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *TenantStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TenantStatus) ProtoMessage()
- func (m *TenantStatus) Reset()
- func (m *TenantStatus) Size() (n int)
- func (this *TenantStatus) String() string
- func (in TenantStatus) SubResourceName() string
- func (m *TenantStatus) Unmarshal(dAtA []byte) error
- func (m *TenantStatus) XXX_DiscardUnknown()
- func (m *TenantStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TenantStatus) XXX_Merge(src proto.Message)
- func (m *TenantStatus) XXX_Size() int
- func (m *TenantStatus) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
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 }
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tenant.
func (*Tenant) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Tenant) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Tenant) Descriptor ¶
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 ¶
IsStorageVersion returns whether tenant is storage version or not.
func (*Tenant) MarshalToSizedBuffer ¶
func (*Tenant) NamespaceScoped ¶
NamespaceScoped returns whether the tenant is namespace scoped or not.
func (*Tenant) ProtoMessage ¶
func (*Tenant) ProtoMessage()
func (*Tenant) XXX_DiscardUnknown ¶
func (m *Tenant) XXX_DiscardUnknown()
func (*Tenant) XXX_Marshal ¶
func (*Tenant) XXX_Unmarshal ¶
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) 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) 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) 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 ¶
func (in TenantStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
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) 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