Documentation
¶
Index ¶
- type ConfigMap
- func (cm *ConfigMap) Create(configMap *apiv1.ConfigMap) error
- func (cm *ConfigMap) Delete(cmName string) error
- func (cm *ConfigMap) Get(cmName string) (*apiv1.ConfigMap, error)
- func (cm *ConfigMap) List() (*apiv1.ConfigMapList, error)
- func (cm *ConfigMap) Namespace(namespace string) *ConfigMap
- func (cm *ConfigMap) Update(configMap *apiv1.ConfigMap) error
- type CoreV1
- type Namespace
- func (n *Namespace) Create(namespace *apiv1.Namespace) error
- func (n *Namespace) Delete(namespaceName string) error
- func (n *Namespace) Get(namespaceName string) (*apiv1.Namespace, error)
- func (n *Namespace) List() (*apiv1.NamespaceList, error)
- func (n *Namespace) Update(namespace *apiv1.Namespace) error
- type Pod
- type Secret
- func (s *Secret) Create(secret *apiv1.Secret) error
- func (s *Secret) Delete(secretName string) error
- func (s *Secret) Get(secretName string) (*apiv1.Secret, error)
- func (s *Secret) List() (*apiv1.SecretList, error)
- func (s *Secret) Namespace(namespace string) *Secret
- func (s *Secret) Update(secret *apiv1.Secret) error
- type Service
- func (s *Service) Create(service *apiv1.Service) error
- func (s *Service) Delete(serviceName string) error
- func (s *Service) Get(serviceName string) (*apiv1.Service, error)
- func (s *Service) List() (*apiv1.ServiceList, error)
- func (s *Service) Namespace(namespace string) *Service
- func (s *Service) Update(service *apiv1.Service) error
- type ServiceAccount
- func (sa *ServiceAccount) Create(serviceAccount *apiv1.ServiceAccount) error
- func (sa *ServiceAccount) Delete(saName string) error
- func (sa *ServiceAccount) Get(saName string) (*apiv1.ServiceAccount, error)
- func (sa *ServiceAccount) List() (*apiv1.ServiceAccountList, error)
- func (sa *ServiceAccount) Namespace(namespace string) *ServiceAccount
- func (sa *ServiceAccount) Update(serviceAccount *apiv1.ServiceAccount) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMap ¶
type ConfigMap struct { CurrentNamespace string // contains filtered or unexported fields }
ConfigMap struct for configmap actions
func NewConfigMapAction ¶
func NewConfigMapAction(client corev1.CoreV1Interface) *ConfigMap
NewConfigMapAction get an configmap actions
func (*ConfigMap) List ¶
func (cm *ConfigMap) List() (*apiv1.ConfigMapList, error)
List List all pods in a namespace
type CoreV1 ¶
type CoreV1 struct { Namespace *Namespace ServiceAccount *ServiceAccount ConfigMap *ConfigMap Secret *Secret Pod *Pod Service *Service }
CoreV1 struct for access to batchv1 api
func NewCoreV1 ¶
func NewCoreV1(client coreInterface.CoreV1Interface) *CoreV1
NewCoreV1 return a batch v1 api
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace struct for namespace action
func NewNamespaceAction ¶
func NewNamespaceAction(client corev1.NamespaceInterface) *Namespace
NewNamespaceAction return a namespace action
type Pod ¶
type Pod struct { CurrentNamespace string // contains filtered or unexported fields }
Pod struct for actions pod
func NewPodAction ¶
func NewPodAction(client coreInterface.CoreV1Interface) *Pod
NewPodAction return an actions pod
type Secret ¶
type Secret struct { CurrentNamespace string // contains filtered or unexported fields }
Secret struct for action secret
func NewSecretAction ¶
func NewSecretAction(client coreInterface.CoreV1Interface) *Secret
NewSecretAction get an actions secret
func (*Secret) List ¶
func (s *Secret) List() (*apiv1.SecretList, error)
List List all secrets in a namespace
type Service ¶
type Service struct { CurrentNamespace string // contains filtered or unexported fields }
Service is the struct for access to the service actions
func NewServiceAction ¶
func NewServiceAction(client corev1.CoreV1Interface) *Service
NewServiceAction return a service action
func (*Service) List ¶
func (s *Service) List() (*apiv1.ServiceList, error)
List all services in a namespace
type ServiceAccount ¶
type ServiceAccount struct { CurrentNamespace string // contains filtered or unexported fields }
ServiceAccount for manager namespace actions
func NewServiceAccountAction ¶
func NewServiceAccountAction(client coreInterface.CoreV1Interface) *ServiceAccount
NewServiceAccountAction get ServiceAccount action
func (*ServiceAccount) Create ¶
func (sa *ServiceAccount) Create(serviceAccount *apiv1.ServiceAccount) error
Create Create an ServiceAccount
func (*ServiceAccount) Delete ¶
func (sa *ServiceAccount) Delete(saName string) error
Delete Delete a pod in the client
func (*ServiceAccount) Get ¶
func (sa *ServiceAccount) Get(saName string) (*apiv1.ServiceAccount, error)
Get get namespace
func (*ServiceAccount) List ¶
func (sa *ServiceAccount) List() (*apiv1.ServiceAccountList, error)
List List all pods in a namespace
func (*ServiceAccount) Namespace ¶
func (sa *ServiceAccount) Namespace(namespace string) *ServiceAccount
Namespace set namespace
func (*ServiceAccount) Update ¶
func (sa *ServiceAccount) Update(serviceAccount *apiv1.ServiceAccount) error
Update Update a pods in the client