cluster_role_binding

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(name, role string, subject rbac.Subject) (*rbac.ClusterRoleBinding, error)
	List(options ...meta.ListOptions) (*rbac.ClusterRoleBindingList, error)
}

Client provides an interface to cluster role bindings.

type DefaultClient

type DefaultClient struct {
	rbac_type.ClusterRoleBindingsGetter
}

DefaultClient implementation of Client operates on a real kubernetes API.

func NewDefaultClient

func NewDefaultClient(getter rbac_type.ClusterRoleBindingsGetter) *DefaultClient

NewDefaultClient returns an initialized DefaultClient.

func (*DefaultClient) Create

func (c *DefaultClient) Create(name, role string, subject rbac.Subject) (*rbac.ClusterRoleBinding, error)

Create binds the role to a single subject.

func (*DefaultClient) List

List returns the matching objects.

A single ListOptions value can be passed as the final argument to customize the query.

It implements Client.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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