serviceaccount

package
v2.1.1-0...-11cc7cf Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceAccountImagePullSecrets

func GetServiceAccountImagePullSecrets(client k8sClient.Interface, namespace,
	name string, dsQuery *dataselect.DataSelectQuery) (*secret.SecretList, error)

GetServiceAccountImagePullSecrets list image pull secrets of given service account.

func GetServiceAccountSecrets

func GetServiceAccountSecrets(client k8sClient.Interface, namespace,
	name string, dsQuery *dataselect.DataSelectQuery) (*secret.SecretList, error)

GetServiceAccountSecrets list secrets of given service account. Note: Secrets are referenced by ObjectReference compared to image pull secrets LocalObjectReference but still only the name field is used and most of the time other fields are empty. Because of that we are using only the name field to find referenced objects assuming that the namespace is the same. ObjectReference is being slowly replaced with more specific types.

Types

type ServiceAccount

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

ServiceAccount contains an information about single service account in the list.

type ServiceAccountCell

type ServiceAccountCell v1.ServiceAccount

func (ServiceAccountCell) GetProperty

type ServiceAccountDetail

type ServiceAccountDetail struct {
	ServiceAccount `json:",inline"`
	Errors         []error `json:"errors"`
}

ServiceAccountDetail contains detailed information about a service account.

func GetServiceAccountDetail

func GetServiceAccountDetail(client client.Interface, namespace, name string) (*ServiceAccountDetail, error)

GetServiceAccountDetail returns detailed information about a service account.

type ServiceAccountList

type ServiceAccountList struct {
	api.ListMeta `json:"listMeta"`
	Items        []ServiceAccount `json:"items"`
	Errors       []error          `json:"errors"`
}

ServiceAccountList contains a list of service accounts.

func GetServiceAccountList

func GetServiceAccountList(client client.Interface, namespace *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*ServiceAccountList, error)

GetServiceAccountList lists service accounts from given namespace using given data select query.

Jump to

Keyboard shortcuts

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