Documentation ¶
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)
- func Matcher(label labels.Selector, field fields.Selector) kstorage.SelectionPredicate
- func NewREST(client restclient.Interface) utilregistry.NoWatchStorage
- type REST
- func (s *REST) Create(ctx apirequest.Context, obj runtime.Object, _ bool) (runtime.Object, error)
- func (s *REST) Delete(ctx apirequest.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
- func (s *REST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (s *REST) List(ctx apirequest.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (s *REST) NewList() runtime.Object
- func (s *REST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterStrategy = strategy{false, kapi.Scheme}
View Source
var LocalStrategy = strategy{true, kapi.Scheme}
Functions ¶
func Matcher ¶ added in v0.5.1
Matcher returns a generic matcher for a given label and field selector.
func NewREST ¶
func NewREST(client restclient.Interface) utilregistry.NoWatchStorage
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func (*REST) Delete ¶
func (s *REST) Delete(ctx apirequest.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)
func (*REST) Get ¶ added in v0.4.2
func (s *REST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*REST) List ¶ added in v0.4.2
func (s *REST) List(ctx apirequest.Context, options *metainternal.ListOptions) (runtime.Object, error)
type Storage ¶ added in v0.5.1
type Storage interface { rest.Getter rest.Lister rest.CreaterUpdater rest.GracefulDeleter // CreateRoleBindingWithEscalation creates a new policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound. CreateRoleBindingWithEscalation(ctx apirequest.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, error) // UpdateRoleBindingWithEscalation updates a policyRoleBinding. Skipping the escalation check should only be done during bootstrapping procedures where no users are currently bound. UpdateRoleBindingWithEscalation(ctx apirequest.Context, policyRoleBinding *authorizationapi.RoleBinding) (*authorizationapi.RoleBinding, bool, error) }
Storage is an interface for a standard REST Storage backend
Click to show internal directories.
Click to hide internal directories.