Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureActions ¶
type AzureActions interface { GroupResourceList(ctx context.Context) ([]mgmtfeatures.GenericResourceExpanded, error) ResourcesList(ctx context.Context, resources []mgmtfeatures.GenericResourceExpanded, writer io.WriteCloser) error WriteToStream(ctx context.Context, writer io.WriteCloser) error NICReconcileFailedState(ctx context.Context, nicName string) error VMRedeployAndWait(ctx context.Context, vmName string) error VMStartAndWait(ctx context.Context, vmName string) error VMStopAndWait(ctx context.Context, vmName string, deallocateVM bool) error VMSizeList(ctx context.Context) ([]mgmtcompute.ResourceSku, error) VMResize(ctx context.Context, vmName string, vmSize string) error ResourceGroupHasVM(ctx context.Context, vmName string) (bool, error) VMSerialConsole(ctx context.Context, w http.ResponseWriter, log *logrus.Entry, vmName string) error AppLensGetDetector(ctx context.Context, detectorId string) ([]byte, error) AppLensListDetectors(ctx context.Context) ([]byte, error) ResourceDeleteAndWait(ctx context.Context, resourceID 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, force bool, propagationPolicy *metav1.DeletionPropagation) error ResolveGVR(groupKind string, optionalVersion string) (schema.GroupVersionResource, error) CordonNode(ctx context.Context, nodeName string, unschedulable bool) error DrainNode(ctx context.Context, nodeName string) error ApproveCsr(ctx context.Context, csrName string) error ApproveAllCsrs(ctx context.Context) error KubeGetPodLogs(ctx context.Context, namespace, name, containerName string) ([]byte, error) // kubeWatch returns a watch object for the provided label selector key KubeWatch(ctx context.Context, o *unstructured.Unstructured, label string) (watch.Interface, 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.