...

Package rolebinding

import "k8s.io/kubernetes/pkg/registry/rbac/rolebinding"
Overview
Index
Subdirectories

Overview ▾

Package certificates provides Registry interface and its RESTStorage implementation for storing RoleBinding objects.

Variables

strategy is the default logic that applies when creating and updating RoleBinding objects.

var Strategy = strategy{legacyscheme.Scheme, names.SimpleNameGenerator}

type AuthorizerAdapter

AuthorizerAdapter adapts the registry to the authorizer interface

type AuthorizerAdapter struct {
    Registry Registry
}

func (AuthorizerAdapter) ListRoleBindings

func (a AuthorizerAdapter) ListRoleBindings(namespace string) ([]*rbacv1.RoleBinding, error)

type Registry

Registry is an interface for things that know how to store RoleBindings.

type Registry interface {
    ListRoleBindings(ctx context.Context, options *metainternalversion.ListOptions) (*rbacv1.RoleBindingList, error)
}

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Subdirectories

Name Synopsis
..
policybased Package policybased implements a standard storage for RoleBinding that prevents privilege escalation.
storage