Documentation ¶
Index ¶
- func GetServiceAccountImagePullSecrets(client k8sClient.Interface, namespace, name string, ...) (*secret.SecretList, error)
- func GetServiceAccountSecrets(client k8sClient.Interface, namespace, name string, ...) (*secret.SecretList, error)
- type ServiceAccount
- type ServiceAccountCell
- type ServiceAccountDetail
- type ServiceAccountList
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 ¶
func (self ServiceAccountCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
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.