client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoKubeConfig = errors.New("Kubeconfig has not been set, use the kubeconfig flag to point at a Kubeconfig")
)

Functions

This section is empty.

Types

type Client

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

func New

func New() (client Client, err error)

func (*Client) GetClusterRole

func (c *Client) GetClusterRole(name string) (*rbac.ClusterRole, error)

func (*Client) GetClusterRoleBindings

func (c *Client) GetClusterRoleBindings() ([]rbac.ClusterRoleBinding, error)

func (*Client) GetRole

func (c *Client) GetRole(name string, namespace string) (*rbac.Role, error)

func (*Client) GetRoleBindings

func (c *Client) GetRoleBindings() ([]rbac.RoleBinding, error)

Jump to

Keyboard shortcuts

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