roles

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RolesClient

type RolesClient struct {
	Clientset *kubernetes.Clientset
}

func (*RolesClient) CreateRole

func (rc *RolesClient) CreateRole(role *rbacv1.Role, namespace string) (*rbacv1.Role, error)

func (*RolesClient) DeleteRole

func (rc *RolesClient) DeleteRole(name string, namespace string) error

func (*RolesClient) GetList

func (rc *RolesClient) GetList(namespace string, opts metav1.ListOptions) (*rbacv1.RoleList, error)

func (*RolesClient) GetRole

func (rc *RolesClient) GetRole(name string, namespace string) (*rbacv1.Role, error)

type RolesClientInterface

type RolesClientInterface interface {
	GetRole(name string, namespace string) (*rbacv1.Role, error)
	GetList(namespace string, opts metav1.ListOptions) (*rbacv1.RoleList, error)
	CreateRole(role *rbacv1.Role, namespace string) (*rbacv1.Role, error)
	DeleteRole(name string, namespace string) error
}

Jump to

Keyboard shortcuts

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