v1

package
v0.0.0-...-0e15285 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterRoleBindingKind = resource.Kind{
	Group:   "rbac.authorization.k8s.io",
	Version: "v1",
	Kind:    "ClusterRoleBinding",
	Scoped:  false,
}
View Source
var ClusterRoleBindingResource = resource.Type{
	Kind: ClusterRoleBindingKind,
	Name: "clusterrolebindings",
}
View Source
var ClusterRoleKind = resource.Kind{
	Group:   "rbac.authorization.k8s.io",
	Version: "v1",
	Kind:    "ClusterRole",
	Scoped:  false,
}
View Source
var ClusterRoleResource = resource.Type{
	Kind: ClusterRoleKind,
	Name: "clusterroles",
}
View Source
var RoleBindingKind = resource.Kind{
	Group:   "rbac.authorization.k8s.io",
	Version: "v1",
	Kind:    "RoleBinding",
	Scoped:  true,
}
View Source
var RoleBindingResource = resource.Type{
	Kind: RoleBindingKind,
	Name: "rolebindings",
}
View Source
var RoleKind = resource.Kind{
	Group:   "rbac.authorization.k8s.io",
	Version: "v1",
	Kind:    "Role",
	Scoped:  true,
}
View Source
var RoleResource = resource.Type{
	Kind: RoleKind,
	Name: "roles",
}

Functions

This section is empty.

Types

type Client

func NewClient

func NewClient(resources resource.Client, filter resource.Filter) Client

type ClusterRole

type ClusterRole struct {
	*resource.Resource
	Object *rbacv1.ClusterRole
}

func NewClusterRole

func NewClusterRole(clusterRole *rbacv1.ClusterRole, client resource.Client) *ClusterRole

func (*ClusterRole) Delete

func (r *ClusterRole) Delete() error

type ClusterRoleBinding

type ClusterRoleBinding struct {
	*resource.Resource
	Object *rbacv1.ClusterRoleBinding
}

func NewClusterRoleBinding

func NewClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, client resource.Client) *ClusterRoleBinding

func (*ClusterRoleBinding) Delete

func (r *ClusterRoleBinding) Delete() error

type ClusterRoleBindingsClient

type ClusterRoleBindingsClient interface {
	ClusterRoleBindings() ClusterRoleBindingsReader
}

func NewClusterRoleBindingsClient

func NewClusterRoleBindingsClient(resources resource.Client, filter resource.Filter) ClusterRoleBindingsClient

type ClusterRoleBindingsReader

type ClusterRoleBindingsReader interface {
	Get(name string) (*ClusterRoleBinding, error)
	List() ([]*ClusterRoleBinding, error)
}

func NewClusterRoleBindingsReader

func NewClusterRoleBindingsReader(client resource.Client, filter resource.Filter) ClusterRoleBindingsReader

type ClusterRolesClient

type ClusterRolesClient interface {
	ClusterRoles() ClusterRolesReader
}

func NewClusterRolesClient

func NewClusterRolesClient(resources resource.Client, filter resource.Filter) ClusterRolesClient

type ClusterRolesReader

type ClusterRolesReader interface {
	Get(name string) (*ClusterRole, error)
	List() ([]*ClusterRole, error)
}

func NewClusterRolesReader

func NewClusterRolesReader(client resource.Client, filter resource.Filter) ClusterRolesReader

type Role

type Role struct {
	*resource.Resource
	Object *rbacv1.Role
}

func NewRole

func NewRole(role *rbacv1.Role, client resource.Client) *Role

func (*Role) Delete

func (r *Role) Delete() error

type RoleBinding

type RoleBinding struct {
	*resource.Resource
	Object *rbacv1.RoleBinding
}

func NewRoleBinding

func NewRoleBinding(roleBinding *rbacv1.RoleBinding, client resource.Client) *RoleBinding

func (*RoleBinding) Delete

func (r *RoleBinding) Delete() error

type RoleBindingsClient

type RoleBindingsClient interface {
	RoleBindings() RoleBindingsReader
}

func NewRoleBindingsClient

func NewRoleBindingsClient(resources resource.Client, filter resource.Filter) RoleBindingsClient

type RoleBindingsReader

type RoleBindingsReader interface {
	Get(name string) (*RoleBinding, error)
	List() ([]*RoleBinding, error)
}

func NewRoleBindingsReader

func NewRoleBindingsReader(client resource.Client, filter resource.Filter) RoleBindingsReader

type RolesClient

type RolesClient interface {
	Roles() RolesReader
}

func NewRolesClient

func NewRolesClient(resources resource.Client, filter resource.Filter) RolesClient

type RolesReader

type RolesReader interface {
	Get(name string) (*Role, error)
	List() ([]*Role, error)
}

func NewRolesReader

func NewRolesReader(client resource.Client, filter resource.Filter) RolesReader

Jump to

Keyboard shortcuts

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