projects

package
v0.8.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(c kclient.WithWatch) rest.Storage

Types

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

func (*Strategy) Create

func (s *Strategy) Create(ctx context.Context, object types.Object) (types.Object, error)

func (*Strategy) Delete

func (s *Strategy) Delete(ctx context.Context, obj types.Object) (types.Object, error)

func (*Strategy) Get

func (s *Strategy) Get(ctx context.Context, namespace, name string) (types.Object, error)

Get is based on list because list will do the RBAC checks to ensure the user can access that project. This also ensure that you can only delete a project that you have namespace access to

func (*Strategy) List

func (s *Strategy) List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error)

func (*Strategy) New

func (s *Strategy) New() types.Object

func (*Strategy) NewList

func (s *Strategy) NewList() types.ObjectList

func (*Strategy) Update

func (s *Strategy) Update(ctx context.Context, object types.Object) (types.Object, error)

type Translator

type Translator struct {
	// contains filtered or unexported fields
}

func (*Translator) FromPublic

func (t *Translator) FromPublic(_ context.Context, obj runtime.Object) (types.Object, error)

func (*Translator) FromPublicName

func (t *Translator) FromPublicName(ctx context.Context, namespace, name string) (string, string, error)

func (*Translator) ListOpts

func (t *Translator) ListOpts(ctx context.Context, namespace string, opts storage.ListOptions) (string, storage.ListOptions, error)

func (*Translator) NewPublic

func (t *Translator) NewPublic() types.Object

func (*Translator) NewPublicList

func (t *Translator) NewPublicList() types.ObjectList

func (*Translator) ToPublic

func (t *Translator) ToPublic(_ context.Context, obj ...runtime.Object) (result []types.Object, _ error)

type Validator

type Validator struct {
	DefaultRegion string
	Client        kclient.Client
}

func (*Validator) Validate

func (v *Validator) Validate(_ context.Context, obj runtime.Object) field.ErrorList

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

Jump to

Keyboard shortcuts

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