vaultclient

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

+azure:enableclientgen:=true

Code generated by client-gen. DO NOT EDIT.

Index

Constants

View Source
const GetOperationName = "VaultsClient.Get"
View Source
const ListOperationName = "VaultsClient.List"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*armkeyvault.VaultsClient
	// contains filtered or unexported fields
}

func (*Client) CreateOrUpdate

func (client *Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, resource armkeyvault.VaultCreateOrUpdateParameters) (*armkeyvault.Vault, error)

CreateOrUpdate creates or updates a Vault.

func (*Client) Delete

func (client *Client) Delete(ctx context.Context, resourceGroupName string, resourceName string) error

Delete deletes a Vault by name.

func (*Client) Get

func (client *Client) Get(ctx context.Context, resourceGroupName string, resourceName string) (result *armkeyvault.Vault, rerr error)

Get gets the Vault

func (*Client) List

func (client *Client) List(ctx context.Context, resourceGroupName string) (result []*armkeyvault.Vault, rerr error)

List gets a list of Vault in the resource group.

func (*Client) PurgeDeleted

func (client *Client) PurgeDeleted(ctx context.Context, vaultName string, location string) error

type Interface

type Interface interface {
	utils.GetFunc[armkeyvault.Vault]
	CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, resource armkeyvault.VaultCreateOrUpdateParameters) (*armkeyvault.Vault, error)
	utils.DeleteFunc[armkeyvault.Vault]
	PurgeDeleted(ctx context.Context, vaultName string, location string) error
	utils.ListFunc[armkeyvault.Vault]
}

+azure:client:verbs=get;listbyrg,resource=Vault,packageName=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault,packageAlias=armkeyvault,clientName=VaultsClient,expand=false

func New

func New(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (Interface, error)

Directories

Path Synopsis
Package mock_vaultclient is a generated GoMock package.
Package mock_vaultclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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