Documentation ¶
Index ¶
- Constants
- Variables
- func Apply(ctx context.Context, obj runtime.Object, changedBy, changeReason string, ...) (runtime.Object, error)
- func Client(ctx context.Context, gvk schema.GroupVersionKind, namespace string) (dynamic.ResourceInterface, bool, error)
- func ClientForObject(ctx context.Context, obj runtime.Object, namespace string) (dynamic.ResourceInterface, schema.GroupVersionKind, bool, error)
- func Delete(ctx context.Context, gvk schema.GroupVersionKind, namespace string, ...) error
- func DeleteObject(ctx context.Context, obj runtime.Object) error
- func Get(ctx context.Context, gvk schema.GroupVersionKind, namespace string, ...) (runtime.Object, error)
- func GetObject(ctx context.Context, obj runtime.Object) error
- func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)
- type PodReference
- type PvcResizingError
Constants ¶
View Source
const DspNamespaceEnv = "DSP_NAMESPACE"
View Source
const DspPodEnv = "DSP_POD"
Variables ¶
View Source
var JsonSerializer = createSerializer("json")
View Source
var YamlSerializer = createSerializer("yaml")
Functions ¶
func Client ¶
func Client(ctx context.Context, gvk schema.GroupVersionKind, namespace string) (dynamic.ResourceInterface, bool, error)
func ClientForObject ¶
func GroupVersionKindForObject ¶
func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)
Types ¶
type PodReference ¶
func GetCurrentPodReference ¶
func GetCurrentPodReference() (*PodReference, error)
type PvcResizingError ¶ added in v2.0.16
type PvcResizingError struct {
// contains filtered or unexported fields
}
func (PvcResizingError) Error ¶ added in v2.0.16
func (re PvcResizingError) Error() string
func (PvcResizingError) Is ¶ added in v2.0.16
func (re PvcResizingError) Is(target error) bool
func (PvcResizingError) Unwrap ¶ added in v2.0.16
func (re PvcResizingError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.