interfaces

package
v3.7.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: Apache-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 ClusterRoleAdapter

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

func (ClusterRoleAdapter) Name

func (a ClusterRoleAdapter) Name() string

func (ClusterRoleAdapter) Namespace

func (a ClusterRoleAdapter) Namespace() string

func (ClusterRoleAdapter) Rules

type ClusterRoleBindingAdapter

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

func (ClusterRoleBindingAdapter) AppliesToUser added in v1.3.0

func (a ClusterRoleBindingAdapter) AppliesToUser(user user.Info) bool

AppliesToUser returns true if this binding applies to the provided user.

func (ClusterRoleBindingAdapter) Groups

func (ClusterRoleBindingAdapter) Name

func (ClusterRoleBindingAdapter) Namespace

func (a ClusterRoleBindingAdapter) Namespace() string

func (ClusterRoleBindingAdapter) RoleRef

func (ClusterRoleBindingAdapter) Users

type Role

type Role interface {
	Name() string
	Namespace() string

	Rules() []authorizationapi.PolicyRule
}

func NewClusterRoleAdapter

func NewClusterRoleAdapter(role *authorizationapi.ClusterRole) Role

func NewLocalRoleAdapter

func NewLocalRoleAdapter(role *authorizationapi.Role) Role

type RoleAdapter

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

func (RoleAdapter) Name

func (a RoleAdapter) Name() string

func (RoleAdapter) Namespace

func (a RoleAdapter) Namespace() string

func (RoleAdapter) Rules

type RoleBinding

type RoleBinding interface {
	Name() string
	Namespace() string

	RoleRef() kapi.ObjectReference
	Users() sets.String
	Groups() sets.String

	// AppliesToUser returns true if the provided user matches this role binding
	AppliesToUser(user.Info) bool
}

func NewClusterRoleBindingAdapter

func NewClusterRoleBindingAdapter(roleBinding *authorizationapi.ClusterRoleBinding) RoleBinding

func NewLocalRoleBindingAdapter

func NewLocalRoleBindingAdapter(roleBinding *authorizationapi.RoleBinding) RoleBinding

type RoleBindingAdapter

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

func (RoleBindingAdapter) AppliesToUser added in v1.3.0

func (a RoleBindingAdapter) AppliesToUser(user user.Info) bool

AppliesToUser returns true if this binding applies to the provided user.

func (RoleBindingAdapter) Groups

func (a RoleBindingAdapter) Groups() sets.String

func (RoleBindingAdapter) Name

func (a RoleBindingAdapter) Name() string

func (RoleBindingAdapter) Namespace

func (a RoleBindingAdapter) Namespace() string

func (RoleBindingAdapter) RoleRef

func (RoleBindingAdapter) Users

func (a RoleBindingAdapter) Users() sets.String

Jump to

Keyboard shortcuts

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