tenancy

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
var CachedClient client.Client

CachedClient will be injected during startup and then passed to the rest storages

View Source
var Scheme *runtime.Scheme

Scheme will be injected during startup and then passed to the rest storages

View Source
var UncachedClient client.Client

UncachedClient will be injected during startup and then passed to the rest storages

Functions

func Kind

func Kind(kind string) schema.GroupKind

Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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

func (in *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject

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

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

func (Account) GetGeneration

func (pc Account) GetGeneration() int64

func (*Account) GetObjectMeta

func (pc *Account) GetObjectMeta() *metav1.ObjectMeta

func (*Account) GetSpec

func (pc *Account) GetSpec() interface{}

func (*Account) GetStatus

func (pc *Account) GetStatus() interface{}

func (Account) NewStatus

func (Account) NewStatus() interface{}

func (*Account) SetGeneration

func (pc *Account) SetGeneration(generation int64)

func (*Account) SetSpec

func (pc *Account) SetSpec(s interface{})

func (*Account) SetStatus

func (pc *Account) SetStatus(s interface{})

type AccountList

type AccountList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Account
}

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 NewRESTFunc func(cachedClient client.Client, uncachedClient client.Client, scheme *runtime.Scheme) rest.Storage

type Space

type Space struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec   SpaceSpec
	Status SpaceStatus
}

func (*Space) DeepCopy

func (in *Space) DeepCopy() *Space

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

func (*Space) DeepCopyInto

func (in *Space) DeepCopyInto(out *Space)

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

func (*Space) DeepCopyObject

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

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

func (Space) GetGeneration

func (pc Space) GetGeneration() int64

func (*Space) GetObjectMeta

func (pc *Space) GetObjectMeta() *metav1.ObjectMeta

func (*Space) GetSpec

func (pc *Space) GetSpec() interface{}

func (*Space) GetStatus

func (pc *Space) GetStatus() interface{}

func (Space) NewStatus

func (Space) NewStatus() interface{}

func (*Space) SetGeneration

func (pc *Space) SetGeneration(generation int64)

func (*Space) SetSpec

func (pc *Space) SetSpec(s interface{})

func (*Space) SetStatus

func (pc *Space) SetStatus(s interface{})

type SpaceList

type SpaceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Space
}

func (*SpaceList) DeepCopy

func (in *SpaceList) DeepCopy() *SpaceList

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

func (*SpaceList) DeepCopyInto

func (in *SpaceList) DeepCopyInto(out *SpaceList)

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

func (*SpaceList) DeepCopyObject

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

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

func (in *SpaceSpec) DeepCopy() *SpaceSpec

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

func (*SpaceSpec) DeepCopyInto

func (in *SpaceSpec) DeepCopyInto(out *SpaceSpec)

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

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

Jump to

Keyboard shortcuts

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