clusterserviceclass

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckObject

func CheckObject(obj runtime.Object) error

CheckObject returns a non-nil error if obj is not a cluster service class object.

func EmptyObject

func EmptyObject() runtime.Object

EmptyObject returns an empty cluster service class.

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func Match

Match determines whether an ServiceInstance matches a field and label selector.

func NewList

func NewList() runtime.Object

NewList returns a new shell of a cluster service class list.

func NewScopeStrategy

func NewScopeStrategy() rest.NamespaceScopedStrategy

NewScopeStrategy returns a new NamespaceScopedStrategy for cluster service classes.

func NewSingular

func NewSingular(ns, name string) runtime.Object

NewSingular returns a new shell of a cluster service class, according to the given namespace and name.

func NewStorage

func NewStorage(opts server.Options) (rest.Storage, rest.Storage)

NewStorage creates a new rest.Storage responsible for accessing ClusterServiceClass resources.

Types

type StatusREST

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

StatusREST defines the REST operations for the status subresource via implementation of various rest interfaces. It supports the http verbs GET, PATCH, and PUT.

func (*StatusREST) Get

func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get retrieves the object from the storage. It is required to support Patch and to implement the rest.Getter interface.

func (*StatusREST) New

func (r *StatusREST) New() runtime.Object

New returns a new ClusterServiceClass.

func (*StatusREST) Update

func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object and it implements rest.Updater interface

Jump to

Keyboard shortcuts

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