Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { List(ns string, options ...meta.ListOptions) (*rbac.RoleBindingList, error) Create(ns, name, role string, subject rbac.Subject) (*rbac.RoleBinding, error) }
Client provides an interface to role bindings.
type DefaultClient ¶
type DefaultClient struct {
rbac_type.RoleBindingsGetter
}
DefaultClient implementation of Client operates on a real kubernetes API.
func NewDefaultClient ¶
func NewDefaultClient(getter rbac_type.RoleBindingsGetter) *DefaultClient
NewDefaultClient returns an initialized DefaultClient.
func (*DefaultClient) Create ¶
func (c *DefaultClient) Create(ns, name, role string, subject rbac.Subject) (*rbac.RoleBinding, error)
Create binds the role to a single subject.
func (*DefaultClient) List ¶
func (c *DefaultClient) List(ns string, options ...meta.ListOptions) (*rbac.RoleBindingList, error)
List returns the matching objects.
A single ListOptions value can be passed as the final argument to customize the query.
It implements Client.
Click to show internal directories.
Click to hide internal directories.