interfaces

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPolicyAdapter

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

func (ClusterPolicyAdapter) Name

func (a ClusterPolicyAdapter) Name() string

func (ClusterPolicyAdapter) Namespace

func (a ClusterPolicyAdapter) Namespace() string

func (ClusterPolicyAdapter) Roles

func (a ClusterPolicyAdapter) Roles() map[string]Role

type ClusterPolicyBindingAdapter

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

func (ClusterPolicyBindingAdapter) Name

func (ClusterPolicyBindingAdapter) Namespace

func (a ClusterPolicyBindingAdapter) Namespace() string

func (ClusterPolicyBindingAdapter) PolicyRef

func (ClusterPolicyBindingAdapter) RoleBindings

func (a ClusterPolicyBindingAdapter) RoleBindings() map[string]RoleBinding

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 Policy

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

	Roles() map[string]Role
}

func NewClusterPolicyAdapter

func NewClusterPolicyAdapter(policy *authorizationapi.ClusterPolicy) Policy

func NewLocalPolicyAdapter

func NewLocalPolicyAdapter(policy *authorizationapi.Policy) Policy

type PolicyAdapter

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

func (PolicyAdapter) Name

func (a PolicyAdapter) Name() string

func (PolicyAdapter) Namespace

func (a PolicyAdapter) Namespace() string

func (PolicyAdapter) Roles

func (a PolicyAdapter) Roles() map[string]Role

type PolicyBinding

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

	PolicyRef() kapi.ObjectReference
	RoleBindings() map[string]RoleBinding
}

func NewClusterPolicyBindingAdapter

func NewClusterPolicyBindingAdapter(policyBinding *authorizationapi.ClusterPolicyBinding) PolicyBinding

func NewLocalPolicyBindingAdapter

func NewLocalPolicyBindingAdapter(policyBinding *authorizationapi.PolicyBinding) PolicyBinding

func NewLocalPolicyBindingAdapters

func NewLocalPolicyBindingAdapters(list *authorizationapi.PolicyBindingList) []PolicyBinding

type PolicyBindingAdapter

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

func (PolicyBindingAdapter) Name

func (a PolicyBindingAdapter) Name() string

func (PolicyBindingAdapter) Namespace

func (a PolicyBindingAdapter) Namespace() string

func (PolicyBindingAdapter) PolicyRef

func (PolicyBindingAdapter) RoleBindings

func (a PolicyBindingAdapter) RoleBindings() map[string]RoleBinding

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