role

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 Role

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

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

type RoleCell

type RoleCell Role

func (RoleCell) GetProperty

type RoleDetail

type RoleDetail struct {
	// Extends list item structure.
	Role `json:",inline"`

	Rules []rbac.PolicyRule `json:"rules"`

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

RoleDetail contains Role details.

func GetRoleDetail

func GetRoleDetail(client k8sClient.Interface, namespace, name string) (*RoleDetail, error)

GetRoleDetail gets Role details.

type RoleList

type RoleList struct {
	ListMeta api.ListMeta `json:"listMeta"`
	Items    []Role       `json:"items"`

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

RoleList contains a list of role in the cluster.

func GetRoleList

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

GetRoleList returns a list of all Roles in the cluster.

func GetRoleListFromChannels

func GetRoleListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*RoleList, error)

GetRoleListFromChannels returns a list of all Roles 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