computeclass

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregateStorage

func NewAggregateStorage(c kclient.WithWatch) rest.Storage

func NewClusterStorage

func NewClusterStorage(c kclient.WithWatch) rest.Storage

func NewProjectStorage

func NewProjectStorage(c kclient.WithWatch) rest.Storage

Types

type ClusterTranslator

type ClusterTranslator struct{}

func (*ClusterTranslator) FromPublic

func (s *ClusterTranslator) FromPublic(obj mtypes.Object) mtypes.Object

func (*ClusterTranslator) ToPublic

func (s *ClusterTranslator) ToPublic(obj mtypes.Object) mtypes.Object

type ClusterValidator

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

func NewClusterValidator

func NewClusterValidator(client kclient.Client) *ClusterValidator

func (*ClusterValidator) Validate

func (s *ClusterValidator) Validate(ctx context.Context, obj runtime.Object) (result field.ErrorList)

func (*ClusterValidator) ValidateUpdate

func (s *ClusterValidator) ValidateUpdate(ctx context.Context, newObj, _ runtime.Object) field.ErrorList

type ProjectTranslator

type ProjectTranslator struct{}

func (*ProjectTranslator) FromPublic

func (s *ProjectTranslator) FromPublic(obj mtypes.Object) mtypes.Object

func (*ProjectTranslator) ToPublic

func (s *ProjectTranslator) ToPublic(obj mtypes.Object) mtypes.Object

type ProjectValidator

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

func NewProjectValidator

func NewProjectValidator(client kclient.Client) *ProjectValidator

func (*ProjectValidator) Validate

func (s *ProjectValidator) Validate(ctx context.Context, obj runtime.Object) (result field.ErrorList)

func (*ProjectValidator) ValidateUpdate

func (s *ProjectValidator) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList

type Strategy

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

func NewStrategy

func NewStrategy(c client.WithWatch) *Strategy

func (*Strategy) Get

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

func (*Strategy) List

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

func (*Strategy) New

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

func (*Strategy) NewList

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

Jump to

Keyboard shortcuts

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