Documentation
¶
Index ¶
- func NewResourceLoadError(resource string, err error) error
- type AppsV1
- func (appsv1 *AppsV1) DaemonSet(resource string) *result.Result
- func (appsv1 *AppsV1) DaemonSetList() ([]string, error)
- func (appsv1 *AppsV1) Deployment(resource string) *result.Result
- func (appsv1 *AppsV1) DeploymentList() ([]string, error)
- func (appsv1 *AppsV1) ReplicaSet(resource string) *result.Result
- func (appsv1 *AppsV1) ReplicaSetList() ([]string, error)
- func (appsv1 *AppsV1) StatefulSet(resource string) *result.Result
- func (appsv1 *AppsV1) StatefulSetList() ([]string, error)
- type ResourceLoadError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceLoadError ¶
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) DaemonSetList ¶
DaemonSetList returns a list of daemonsets.
func (*AppsV1) Deployment ¶
Deployment returns a single resource with the given name.
func (*AppsV1) DeploymentList ¶
DeploymentList returns a list of depployments.
func (*AppsV1) ReplicaSet ¶
ReplicaSet returns a single resource with the given name.
func (*AppsV1) ReplicaSetList ¶
ReplicaSetList returns a list of replicasets.
func (*AppsV1) StatefulSet ¶
StatefulSet returns a single resource with the given name.
func (*AppsV1) StatefulSetList ¶
StatefulSetList returns a list of daemonsets.
type ResourceLoadError ¶
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.