Documentation ¶
Index ¶
- func CheckObject(obj runtime.Object) error
- func EmptyObject() runtime.Object
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func Match(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewList() runtime.Object
- func NewScopeStrategy() rest.NamespaceScopedStrategy
- func NewSingular(ns, name string) runtime.Object
- func NewStorage(opts server.Options) (rest.Storage, rest.Storage, rest.Storage)
- type ReferenceREST
- func (r *ReferenceREST) Get(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *ReferenceREST) New() runtime.Object
- func (r *ReferenceREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
- type StatusREST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckObject ¶
CheckObject returns a non-nil error if obj is not an instance object
func NewScopeStrategy ¶
func NewScopeStrategy() rest.NamespaceScopedStrategy
NewScopeStrategy returns a new NamespaceScopedStrategy for instances
func NewSingular ¶
NewSingular returns a new shell of a service instance, according to the given namespace and name
Types ¶
type ReferenceREST ¶ added in v0.0.23
type ReferenceREST struct {
// contains filtered or unexported fields
}
ReferenceREST defines the REST operations for the reference subresource.
func (*ReferenceREST) Get ¶ added in v0.0.23
func (r *ReferenceREST) Get(ctx genericapirequest.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 (*ReferenceREST) New ¶ added in v0.0.23
func (r *ReferenceREST) New() runtime.Object
New returns a new ServiceInstance
func (*ReferenceREST) Update ¶ added in v0.0.23
func (r *ReferenceREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Update alters the reference subset of an object and it implements rest.Updater interface
type StatusREST ¶ added in v0.0.22
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 ¶ added in v0.0.22
func (r *StatusREST) Get(ctx genericapirequest.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 ¶ added in v0.0.22
func (r *StatusREST) New() runtime.Object
New returns a new ServiceInstance
func (*StatusREST) Update ¶ added in v0.0.22
func (r *StatusREST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Update alters the status subset of an object and it implements rest.Updater interface