secret

package
v0.10.19-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretClient

type SecretClient struct {
	security.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewSecretClient

func NewSecretClient(cloudFQDN string, authorizer auth.Authorizer) (*SecretClient, error)

NewClient method returns new client

func (*SecretClient) CreateOrUpdate

func (c *SecretClient) CreateOrUpdate(ctx context.Context, group, name string, sec *keyvault.Secret) (*keyvault.Secret, error)

CreateOrUpdate methods invokes create or update on the client

func (*SecretClient) Delete

func (c *SecretClient) Delete(ctx context.Context, group, name, vaultName string) error

Delete methods invokes delete of the keyvault resource

func (*SecretClient) Get

func (c *SecretClient) Get(ctx context.Context, group, name, vaultName string) (*[]keyvault.Secret, error)

Get methods invokes the client Get method

type Service

type Service interface {
	Get(context.Context, string, string, string) (*[]keyvault.Secret, error)
	CreateOrUpdate(context.Context, string, string, *keyvault.Secret) (*keyvault.Secret, error)
	Delete(context.Context, string, string, string) error
}

Service interface

Jump to

Keyboard shortcuts

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