rbacrolebindings

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 RbacRoleBinding

type RbacRoleBinding struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`
	Subjects   []rbac.Subject `json:"subjects"`
	RoleRef    rbac.RoleRef   `json:"roleRef"`
	Name       string         `json:"name"`
	Namespace  string         `json:"namespace"`
}

RbacRoleBinding provides the simplified, combined presentation layer view of Kubernetes' RBAC RoleBindings and ClusterRoleBindings. ClusterRoleBindings will be referred to as RoleBindings for the namespace "all namespaces".

type RbacRoleBindingList

type RbacRoleBindingList struct {
	ListMeta api.ListMeta `json:"listMeta"`

	// Unordered list of RbacRoleBindings
	Items []RbacRoleBinding `json:"items"`
}

RbacRoleBindingList contains a list of Roles and ClusterRoles in the cluster.

func GetRbacRoleBindingList

func GetRbacRoleBindingList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*RbacRoleBindingList, error)

GetRbacRoleBindingList returns a list of all RBAC Role Bindings in the cluster.

func GetRbacRoleBindingListFromChannels

func GetRbacRoleBindingListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (
	*RbacRoleBindingList, error)

GetRbacRoleBindingListFromChannels returns a list of all RoleBindings in the cluster reading required resource list once from the channels.

func SimplifyRbacRoleBindingLists

func SimplifyRbacRoleBindingLists(roleBindings []rbac.RoleBinding, clusterRoleBindings []rbac.ClusterRoleBinding, dsQuery *dataselect.DataSelectQuery) *RbacRoleBindingList

SimplifyRbacRoleBindingLists merges a list of RoleBindings with a list of ClusterRoleBindings to create a simpler, unified list

type RoleBindingCell

type RoleBindingCell RbacRoleBinding

func (RoleBindingCell) GetProperty

Jump to

Keyboard shortcuts

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