Documentation ¶
Index ¶
- type AuthorizationClient
- type Client
- func (az *Client) DeleteResourceGroup(ctx context.Context, groupName string) error
- func (az *Client) EnsureNIC(ctx context.Context, groupName, location, nicName, vnetName, subnetName string) (nic *network.Interface, err error)
- func (az *Client) EnsureResourceGroup(ctx context.Context, name, location string, managedBy *string) (resourceGroup *resources.ResourceGroup, err error)
- func (az *Client) EnsureSSHPublicKey(ctx context.Context, resourceGroupName, location, keyName string) (publicKey string, err error)
- func (az *Client) EnsureVirtualMachine(ctx context.Context, groupName, location, vmName string) (vm *compute.VirtualMachine, err error)
- func (az *Client) EnsureVirtualNetworkAndSubnet(ctx context.Context, groupName, location, vnetName, subnetName string) (vnet *network.VirtualNetwork, err error)
- func (az *Client) GetAccountNumByResourceGroup(ctx context.Context, groupName string) (count int, err error)
- func (az *Client) GetAzureFilesClient() (fileshareclient.Interface, error)
- func (az *Client) GetStorageAccount(ctx context.Context, groupName, accountName string) (*storage.Account, error)
- func (az *Client) GetVirtualNetworkSubnet(ctx context.Context, groupName, vnetName, subnetName string) (*network.Subnet, error)
- type KeyVaultClient
- func (kvc *KeyVaultClient) CleanVault(ctx context.Context) error
- func (kvc *KeyVaultClient) CreateSecret(ctx context.Context, secretName, secretValue string) (*armkeyvault.Secret, error)
- func (kvc *KeyVaultClient) CreateVault(ctx context.Context) (*armkeyvault.Vault, error)
- func (kvc *KeyVaultClient) GetMSIObjectID(ctx context.Context, identityName string) (string, error)
- func (kvc *KeyVaultClient) GetMSIResourceID(ctx context.Context, identityName string) (string, error)
- func (kvc *KeyVaultClient) GetServicePrincipalObjectID(ctx context.Context, clientID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationClient ¶ added in v1.16.0
type AuthorizationClient struct {
// contains filtered or unexported fields
}
func NewAuthorizationClient ¶ added in v1.16.0
func NewAuthorizationClient() (*AuthorizationClient, error)
func (*AuthorizationClient) AssignRole ¶ added in v1.16.0
func (a *AuthorizationClient) AssignRole(ctx context.Context, resourceID, principalID, roleDefID string) (authorization.RoleAssignment, error)
func (*AuthorizationClient) GetRoleDefinition ¶ added in v1.16.0
func (a *AuthorizationClient) GetRoleDefinition(ctx context.Context, resourceID, roleName string) (authorization.RoleDefinition, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func GetAzureClient ¶ added in v1.22.9
func (*Client) DeleteResourceGroup ¶
func (*Client) EnsureResourceGroup ¶
func (*Client) EnsureSSHPublicKey ¶ added in v1.22.9
func (*Client) EnsureVirtualMachine ¶ added in v1.22.9
func (*Client) EnsureVirtualNetworkAndSubnet ¶ added in v1.22.9
func (*Client) GetAccountNumByResourceGroup ¶ added in v1.11.0
func (*Client) GetAzureFilesClient ¶ added in v1.22.9
func (az *Client) GetAzureFilesClient() (fileshareclient.Interface, error)
func (*Client) GetStorageAccount ¶ added in v1.22.9
type KeyVaultClient ¶ added in v1.16.0
type KeyVaultClient struct { Cred *credentials.Credentials // contains filtered or unexported fields }
func NewKeyVaultClient ¶ added in v1.16.0
func NewKeyVaultClient() (*KeyVaultClient, error)
func (*KeyVaultClient) CleanVault ¶ added in v1.16.0
func (kvc *KeyVaultClient) CleanVault(ctx context.Context) error
func (*KeyVaultClient) CreateSecret ¶ added in v1.16.0
func (kvc *KeyVaultClient) CreateSecret(ctx context.Context, secretName, secretValue string) (*armkeyvault.Secret, error)
func (*KeyVaultClient) CreateVault ¶ added in v1.16.0
func (kvc *KeyVaultClient) CreateVault(ctx context.Context) (*armkeyvault.Vault, error)
func (*KeyVaultClient) GetMSIObjectID ¶ added in v1.16.0
func (*KeyVaultClient) GetMSIResourceID ¶ added in v1.17.0
func (*KeyVaultClient) GetServicePrincipalObjectID ¶ added in v1.16.0
Click to show internal directories.
Click to hide internal directories.