...

Package utils

import "github.com/chaos-mesh/chaos-mesh/controllers/chaosimpl/azurechaos/utils"
Overview
Index

Overview ▾

func GetAuthorizer

func GetAuthorizer(ctx context.Context, cli client.Client, azurechaos *v1alpha1.AzureChaos) (autorest.Authorizer, error)

GetAuthorizer is used to get the azure authorizer

func GetDiskClient

func GetDiskClient(ctx context.Context, cli client.Client, azurechaos *v1alpha1.AzureChaos) (*compute.DisksClient, error)

GetDiskClient is used to get the azure disk Client

func GetVMClient

func GetVMClient(ctx context.Context, cli client.Client, azurechaos *v1alpha1.AzureChaos) (*compute.VirtualMachinesClient, error)

GetVMClient is used to get the azure VM Client