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
Click to show internal directories.
Click to hide internal directories.