rolebinding

package
v0.0.0-...-8a48855 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleBinding

type RoleBinding struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`
}

RoleBinding is a presentation layer view of Kubernetes roleBinding. This means it is roleBinding plus additional augmented data we can get from other sources.

type RoleBindingCell

type RoleBindingCell RoleBinding

func (RoleBindingCell) GetProperty

type RoleBindingDetail

type RoleBindingDetail struct {
	// Extends list item structure.
	RoleBinding `json:",inline"`

	Subjects []rbac.Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"`

	RoleRef rbac.RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

RoleBindingDetail contains RoleBinding details.

func GetRoleBindingDetail

func GetRoleBindingDetail(client k8sClient.Interface, namespace, name string) (*RoleBindingDetail, error)

GetRoleBindingDetail gets RoleBinding details.

type RoleBindingList

type RoleBindingList struct {
	ListMeta api.ListMeta  `json:"listMeta"`
	Items    []RoleBinding `json:"items"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

RoleBindingList contains a list of roleBindings in the cluster.

func GetRoleBindingList

func GetRoleBindingList(client kubernetes.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*RoleBindingList, error)

GetRoleBindingList returns a list of all RoleBindings in the cluster.

func GetRoleBindingListFromChannels

func GetRoleBindingListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*RoleBindingList, error)

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

Jump to

Keyboard shortcuts

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