Documentation ¶
Overview ¶
Package serviceaccount manipulates the k8s api of serviceaccount object
Index ¶
- type Option
- type ServiceAccount
- func (s *ServiceAccount) Create(sa *apiv1.ServiceAccount) error
- func (s *ServiceAccount) Delete(namespace, name string) error
- func (s *ServiceAccount) Exists(namespace, name string) error
- func (s *ServiceAccount) Get(namespace, name string) (*apiv1.ServiceAccount, error)
- func (s *ServiceAccount) Patch(sa *apiv1.ServiceAccount) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*ServiceAccount)
Option configures an ServiceAccount
func WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
type ServiceAccount ¶
type ServiceAccount struct {
// contains filtered or unexported fields
}
ServiceAccount is the object to encapsulate secrets
func (*ServiceAccount) Create ¶
func (s *ServiceAccount) Create(sa *apiv1.ServiceAccount) error
Create create a k8s serviceaccount
func (*ServiceAccount) Delete ¶
func (s *ServiceAccount) Delete(namespace, name string) error
Delete deletes a k8s serviceaccount object
func (*ServiceAccount) Exists ¶
func (s *ServiceAccount) Exists(namespace, name string) error
Exists decides whether a serviceaccount exists
func (*ServiceAccount) Get ¶
func (s *ServiceAccount) Get(namespace, name string) (*apiv1.ServiceAccount, error)
Get gets a k8s serviceaccount
func (*ServiceAccount) Patch ¶
func (s *ServiceAccount) Patch(sa *apiv1.ServiceAccount) error
Patch patches a k8s serviceaccount object
Click to show internal directories.
Click to hide internal directories.