Documentation ¶
Overview ¶
Package api is the internal version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Account
- func (in *Account) DeepCopy() *Account
- func (in *Account) DeepCopyInto(out *Account)
- func (in *Account) DeepCopyObject() runtime.Object
- func (pc Account) GetGeneration() int64
- func (pc *Account) GetObjectMeta() *metav1.ObjectMeta
- func (pc *Account) GetSpec() interface{}
- func (pc *Account) GetStatus() interface{}
- func (Account) NewStatus() interface{}
- func (pc *Account) SetGeneration(generation int64)
- func (pc *Account) SetSpec(s interface{})
- func (pc *Account) SetStatus(s interface{})
- type AccountList
- type AccountRegistry
- type AccountSpec
- type AccountStatus
- type AccountStatusStrategy
- type AccountStrategy
- type FinalizerName
- type NamespacePhase
- type NewRESTFunc
- type Space
- func (in *Space) DeepCopy() *Space
- func (in *Space) DeepCopyInto(out *Space)
- func (in *Space) DeepCopyObject() runtime.Object
- func (pc Space) GetGeneration() int64
- func (pc *Space) GetObjectMeta() *metav1.ObjectMeta
- func (pc *Space) GetSpec() interface{}
- func (pc *Space) GetStatus() interface{}
- func (Space) NewStatus() interface{}
- func (pc *Space) SetGeneration(generation int64)
- func (pc *Space) SetSpec(s interface{})
- func (pc *Space) SetStatus(s interface{})
- type SpaceList
- type SpaceRegistry
- type SpaceSpec
- type SpaceStatus
- type SpaceStatusStrategy
- type SpaceStrategy
Constants ¶
This section is empty.
Variables ¶
var ( TenancyAccountStorage = builders.NewApiResourceWithStorage( InternalAccount, func() runtime.Object { return &Account{} }, func() runtime.Object { return &AccountList{} }, NewAccountREST, ) NewAccountREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewAccountRESTFunc(CachedClient, UncachedClient, Scheme) } NewAccountRESTFunc NewRESTFunc TenancySpaceStorage = builders.NewApiResourceWithStorage( InternalSpace, func() runtime.Object { return &Space{} }, func() runtime.Object { return &SpaceList{} }, NewSpaceREST, ) NewSpaceREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewSpaceRESTFunc(CachedClient, UncachedClient, Scheme) } NewSpaceRESTFunc NewRESTFunc InternalAccount = builders.NewInternalResource( "accounts", "Account", func() runtime.Object { return &Account{} }, func() runtime.Object { return &AccountList{} }, ) InternalAccountStatus = builders.NewInternalResourceStatus( "accounts", "AccountStatus", func() runtime.Object { return &Account{} }, func() runtime.Object { return &AccountList{} }, ) InternalSpace = builders.NewInternalResource( "spaces", "Space", func() runtime.Object { return &Space{} }, func() runtime.Object { return &SpaceList{} }, ) InternalSpaceStatus = builders.NewInternalResourceStatus( "spaces", "SpaceStatus", func() runtime.Object { return &Space{} }, func() runtime.Object { return &SpaceList{} }, ) // Registered resources and subresources ApiVersion = builders.NewApiGroup("tenancy.kiosk.sh").WithKinds( InternalAccount, InternalAccountStatus, InternalSpace, InternalSpaceStatus, ) // Required by code generated by go2idl AddToScheme = (&runtime.SchemeBuilder{ ApiVersion.SchemeBuilder.AddToScheme, RegisterDefaults, }).AddToScheme SchemeBuilder = ApiVersion.SchemeBuilder SchemeGroupVersion = ApiVersion.GroupVersion )
var CachedClient client.Client
CachedClient will be injected during startup and then passed to the rest storages
var Scheme *runtime.Scheme
Scheme will be injected during startup and then passed to the rest storages
var UncachedClient client.Client
UncachedClient will be injected during startup and then passed to the rest storages
Functions ¶
func Kind ¶
Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Required by code generated by go2idl Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Account ¶
type Account struct { metav1.TypeMeta metav1.ObjectMeta Spec AccountSpec Status AccountStatus }
func (*Account) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Account.
func (*Account) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Account) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Account) GetGeneration ¶
func (*Account) GetObjectMeta ¶
func (pc *Account) GetObjectMeta() *metav1.ObjectMeta
func (*Account) SetGeneration ¶
type AccountList ¶
func (*AccountList) DeepCopy ¶
func (in *AccountList) DeepCopy() *AccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountList.
func (*AccountList) DeepCopyInto ¶
func (in *AccountList) DeepCopyInto(out *AccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AccountList) DeepCopyObject ¶
func (in *AccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccountRegistry ¶
type AccountRegistry interface { ListAccounts(ctx context.Context, options *internalversion.ListOptions) (*AccountList, error) GetAccount(ctx context.Context, id string, options *metav1.GetOptions) (*Account, error) CreateAccount(ctx context.Context, id *Account) (*Account, error) UpdateAccount(ctx context.Context, id *Account) (*Account, error) DeleteAccount(ctx context.Context, id string) (bool, error) }
Registry is an interface for things that know how to store Account. +k8s:deepcopy-gen=false
func NewAccountRegistry ¶
func NewAccountRegistry(sp builders.StandardStorageProvider) AccountRegistry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type AccountSpec ¶
type AccountSpec struct {
configv1alpha1.AccountSpec
}
func (*AccountSpec) DeepCopy ¶
func (in *AccountSpec) DeepCopy() *AccountSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountSpec.
func (*AccountSpec) DeepCopyInto ¶
func (in *AccountSpec) DeepCopyInto(out *AccountSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccountStatus ¶
type AccountStatus struct {
configv1alpha1.AccountStatus
}
func (*AccountStatus) DeepCopy ¶
func (in *AccountStatus) DeepCopy() *AccountStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountStatus.
func (*AccountStatus) DeepCopyInto ¶
func (in *AccountStatus) DeepCopyInto(out *AccountStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccountStatusStrategy ¶
type AccountStatusStrategy struct {
builders.DefaultStatusStorageStrategy
}
+k8s:deepcopy-gen=false
type AccountStrategy ¶
type AccountStrategy struct {
builders.DefaultStorageStrategy
}
Account Functions and Structs
+k8s:deepcopy-gen=false
type FinalizerName ¶
type FinalizerName string
type NamespacePhase ¶
type NamespacePhase string
type NewRESTFunc ¶
type Space ¶
type Space struct { metav1.TypeMeta metav1.ObjectMeta Spec SpaceSpec Status SpaceStatus }
func (*Space) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Space.
func (*Space) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Space) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Space) GetGeneration ¶
func (*Space) GetObjectMeta ¶
func (pc *Space) GetObjectMeta() *metav1.ObjectMeta
func (*Space) SetGeneration ¶
type SpaceList ¶
func (*SpaceList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceList.
func (*SpaceList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpaceList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpaceRegistry ¶
type SpaceRegistry interface { ListSpaces(ctx context.Context, options *internalversion.ListOptions) (*SpaceList, error) GetSpace(ctx context.Context, id string, options *metav1.GetOptions) (*Space, error) CreateSpace(ctx context.Context, id *Space) (*Space, error) UpdateSpace(ctx context.Context, id *Space) (*Space, error) DeleteSpace(ctx context.Context, id string) (bool, error) }
Registry is an interface for things that know how to store Space. +k8s:deepcopy-gen=false
func NewSpaceRegistry ¶
func NewSpaceRegistry(sp builders.StandardStorageProvider) SpaceRegistry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type SpaceSpec ¶
type SpaceSpec struct { Account string Finalizers []corev1.FinalizerName }
func (*SpaceSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceSpec.
func (*SpaceSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpaceStatus ¶
type SpaceStatus struct {
Phase corev1.NamespacePhase
}
func (*SpaceStatus) DeepCopy ¶
func (in *SpaceStatus) DeepCopy() *SpaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceStatus.
func (*SpaceStatus) DeepCopyInto ¶
func (in *SpaceStatus) DeepCopyInto(out *SpaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpaceStatusStrategy ¶
type SpaceStatusStrategy struct {
builders.DefaultStatusStorageStrategy
}
+k8s:deepcopy-gen=false
type SpaceStrategy ¶
type SpaceStrategy struct {
builders.DefaultStorageStrategy
}
Space Functions and Structs
+k8s:deepcopy-gen=false
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/loft-sh/kiosk/pkg/apis/tenancy +k8s:defaulter-gen=TypeMeta +groupName=tenancy.kiosk.sh
|
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/loft-sh/kiosk/pkg/apis/tenancy +k8s:defaulter-gen=TypeMeta +groupName=tenancy.kiosk.sh |