adminactions

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureActions

type AzureActions interface {
	ResourcesList(ctx context.Context) ([]byte, error)
	VMRedeployAndWait(ctx context.Context, vmName string) error
	VMSerialConsole(ctx context.Context, w http.ResponseWriter, log *logrus.Entry, vmName string) error
}

AzureActions contains those actions which rely solely on Azure clients, not using any k8s clients

func NewAzureActions

func NewAzureActions(log *logrus.Entry, env env.Interface, oc *api.OpenShiftCluster,
	subscriptionDoc *api.SubscriptionDocument) (AzureActions, error)

NewAzureActions returns an azureActions

type KubeActions

type KubeActions interface {
	KubeGet(ctx context.Context, groupKind, namespace, name string) ([]byte, error)
	KubeList(ctx context.Context, groupKind, namespace string) ([]byte, error)
	KubeCreateOrUpdate(ctx context.Context, obj *unstructured.Unstructured) error
	KubeDelete(ctx context.Context, groupKind, namespace, name string) error
	Upgrade(ctx context.Context, upgradeY bool) error
}

KubeActions are those that involve k8s objects, and thus depend upon k8s clients being createable

func NewKubeActions

func NewKubeActions(log *logrus.Entry, env env.Interface, oc *api.OpenShiftCluster) (KubeActions, error)

NewKubeActions returns a kubeActions

Jump to

Keyboard shortcuts

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