Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAPIGroup = errors.New("api group error")
ErrAPIGroup is returned when a kubernetes api call fails.
var ErrMissingResource = errors.New("resource not found")
ErrMissingResource is returned when the resource is not found.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { kubernetes.Interface Error error // contains filtered or unexported fields }
Client is used to interact with the kubernetes API.
func NewClient ¶ added in v1.1.1
func NewClient(configures ...ConfigureFunc) *Client
NewClient creates `Client` from a kubernetes client.
func (*Client) AppsV1 ¶ added in v1.2.0
AppsV1 is used to interact with features provided by the apps group.
func (*Client) BatchV1 ¶ added in v1.2.0
BatchV1 is used to interact with features provided by the batch group.
func (*Client) BatchV1Beta1 ¶ added in v1.2.0
func (client *Client) BatchV1Beta1() *batchv1beta1.BatchV1Beta1
BatchV1Beta1 is used to interact with features provided by the batch group.
type ConfigureFunc ¶ added in v1.2.0
type ConfigureFunc = func(client *Client)
ConfigureFunc is used for configuring `Client` settings.
func WithExport ¶ added in v1.2.0
func WithExport(shouldExport bool) ConfigureFunc
WithExport flags the client to include `export` statements in the output.
func WithKubeClient ¶ added in v1.2.0
func WithKubeClient(kubeClient kubernetes.Interface) ConfigureFunc
WithKubeClient sets the underlying kubernetes API client.
func WithNamespace ¶ added in v1.2.0
func WithNamespace(namespace string) ConfigureFunc
WithNamespace sets the namespace to use when interacting with the Kubernetes API.