Documentation ¶
Index ¶
- Variables
- func NewResourceLoadError(resource string, err error) error
- type CoreV1
- func (corev1 *CoreV1) ConfigMapData(resource string) (map[string]string, error)
- func (corev1 *CoreV1) NamespaceList() ([]string, error)
- func (corev1 *CoreV1) Pod(resource string) *result.Result
- func (corev1 *CoreV1) PodList() ([]string, error)
- func (corev1 *CoreV1) SecretData(resource string) (map[string]string, error)
- type ResourceLoadError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingResource = errors.New("resource not found")
ErrMissingResource is returned when the resource is not found.
Functions ¶
func NewResourceLoadError ¶
NewResourceLoadError creates a `ResourceLoadError`.
Types ¶
type CoreV1 ¶
type CoreV1 struct { v1.CoreV1Interface // contains filtered or unexported fields }
CoreV1 is used to interact with features provided by the core group.
func NewCoreV1 ¶
func NewCoreV1(kubeClient kubernetes.Interface, options *options.Client) *CoreV1
NewCoreV1 creates `CoreV1`.
func (*CoreV1) ConfigMapData ¶
ConfigMapData returns a map of key/value pairs given a config map.
func (*CoreV1) NamespaceList ¶
NamespaceList returns all namespaces in a cluster.
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.
Click to show internal directories.
Click to hide internal directories.