polymorphichelpers

package
v0.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(ctx context.Context, storage backend.IStep, dynamicClient dynamic.Interface, resource *types.Resource) error

Status StatusViewerFor returns a StatusViewer for the resource specified by kind. https://github.com/kubernetes/kubectl/blob/master/pkg/polymorphichelpers/rollout_status.go

Types

type Resource

type Resource interface {
	Scale(replicas int32) error
	Update() error
	Println() error
	Restart() error
}

func ResourceFor

func ResourceFor(ctx context.Context, storage backend.IStep, client *kubernetes.Clientset, resource *types.Resource) Resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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