Documentation ¶
Index ¶
- func Backoff(ctx context.Context, d time.Duration, max uint64, fn func() error, ...) error
- func DeleteObjects(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, ...) error
- func EnsureDevenvRunning(ctx context.Context) error
- func RunKubernetesCommand(ctx context.Context, wd, name string, args ...string) error
- func WaitForDevenv(ctx context.Context, sopt *status.Options, log logrus.FieldLogger) error
- type DeleteObjectsObjects
- type ListableType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backoff ¶
func Backoff(ctx context.Context, d time.Duration, max uint64, fn func() error, log logrus.FieldLogger) error
Backoff is a light wrapper around the backoff library
func DeleteObjects ¶
func DeleteObjects(ctx context.Context, log logrus.FieldLogger, k kubernetes.Interface, conf *rest.Config, opts DeleteObjectsObjects) error
func EnsureDevenvRunning ¶
EnsureDevenvRunning returns an error if the developer environment is not running.
func RunKubernetesCommand ¶
RunKubernetesCommand runs a command with KUBECONFIG set. This command runs in the provided working directory Deprecated: Use cmdutil.RunKubernetesCommand instead.
func WaitForDevenv ¶
WaitForDevenv waits for the developer environment to be up and handle context cancellation. This blocks until finished.
Types ¶
type DeleteObjectsObjects ¶
type DeleteObjectsObjects struct { Type runtime.Object Namespaces []string Validator func(obj *unstructured.Unstructured) (filter bool) }
type ListableType ¶
type ListableType interface {
List(context.Context, metav1.ListOptions) (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.