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 ¶
func (self RoleCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
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.
Click to show internal directories.
Click to hide internal directories.