v1

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceLoadError

func NewResourceLoadError(resource string, err error) error

NewResourceLoadError creates a `ResourceLoadError`.

Types

type AppsV1

type AppsV1 struct {
	v1.AppsV1Interface
	// contains filtered or unexported fields
}

AppsV1 is used to interact with features provided by the apps group.

func NewAppsV1

func NewAppsV1(client kubernetes.Interface, options *options.Client) *AppsV1

NewAppsV1 creates `AppsV1`.

func (*AppsV1) DaemonSet

func (appsv1 *AppsV1) DaemonSet(resource string) *result.Result

DaemonSet returns a single resource with the given name.

func (*AppsV1) DaemonSetList

func (appsv1 *AppsV1) DaemonSetList() ([]string, error)

DaemonSetList returns a list of daemonsets.

func (*AppsV1) Deployment

func (appsv1 *AppsV1) Deployment(resource string) *result.Result

Deployment returns a single resource with the given name.

func (*AppsV1) DeploymentList

func (appsv1 *AppsV1) DeploymentList() ([]string, error)

DeploymentList returns a list of depployments.

func (*AppsV1) ReplicaSet

func (appsv1 *AppsV1) ReplicaSet(resource string) *result.Result

ReplicaSet returns a single resource with the given name.

func (*AppsV1) ReplicaSetList

func (appsv1 *AppsV1) ReplicaSetList() ([]string, error)

ReplicaSetList returns a list of replicasets.

func (*AppsV1) StatefulSet

func (appsv1 *AppsV1) StatefulSet(resource string) *result.Result

StatefulSet returns a single resource with the given name.

func (*AppsV1) StatefulSetList

func (appsv1 *AppsV1) StatefulSetList() ([]string, error)

StatefulSetList returns a list of daemonsets.

type ResourceLoadError

type ResourceLoadError struct {
	Err      error
	Resource string
}

ResourceLoadError wraps API errors when a resource is not found.

func (*ResourceLoadError) Error

func (e *ResourceLoadError) Error() string

Error returns the message on the internal error (if there is one).

func (*ResourceLoadError) Unwrap

func (e *ResourceLoadError) Unwrap() error

Unwrap returns the internal error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL