Documentation ¶
Index ¶
- type Client
- type DefaultClient
- func (c *DefaultClient) CreateBasic(ns, sa string) (*core.ServiceAccount, error)
- func (c *DefaultClient) Get(ns, sa string, options ...meta.GetOptions) (_ *core.ServiceAccount, exists bool, _ error)
- func (c *DefaultClient) List(ns string, options ...meta.ListOptions) (*core.ServiceAccountList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateBasic(ns, sa string) (*core.ServiceAccount, error) Get(ns, sa string, options ...meta.GetOptions) (_ *core.ServiceAccount, exists bool, _ error) List(ns string, options ...meta.ListOptions) (*core.ServiceAccountList, error) }
Client provides an interface to service accounts.
type DefaultClient ¶
type DefaultClient struct {
core_type.ServiceAccountsGetter
}
DefaultClient implementation of Client operates on a real kubernetes API.
func NewDefaultClient ¶
func NewDefaultClient(getter core_type.ServiceAccountsGetter) *DefaultClient
NewDefaultClient returns an initialized DefaultClient.
func (*DefaultClient) CreateBasic ¶
func (c *DefaultClient) CreateBasic(ns, sa string) (*core.ServiceAccount, error)
CreateBasic adds a service account based on only its namespace and account name.
func (*DefaultClient) Get ¶
func (c *DefaultClient) Get(ns, sa string, options ...meta.GetOptions) (_ *core.ServiceAccount, exists bool, _ error)
Get returns the object if found, reports that the object does not exist, or returns an error.
A single GetOptions value can be passed as the final argument to customize the query.
func (*DefaultClient) List ¶
func (c *DefaultClient) List(ns string, options ...meta.ListOptions) (*core.ServiceAccountList, error)
List returns the matching objects.
A single ListOptions value can be passed as the final argument to customize the query.
It implements Client.
Click to show internal directories.
Click to hide internal directories.