secretbackends

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package secretbackends provides the api client for the secretbackends facade.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client is the api client for the SecretBackends facade.

func NewClient

func NewClient(caller base.APICallCloser) *Client

NewClient creates a secret backends api client.

func (*Client) AddSecretBackend

func (api *Client) AddSecretBackend(backend CreateSecretBackend) error

AddSecretBackend adds the specified secret backend.

func (*Client) ListSecretBackends

func (api *Client) ListSecretBackends(names []string, reveal bool) ([]SecretBackend, error)

ListSecretBackends lists the specified secret backends, or all available if no names are provided.

func (*Client) RemoveSecretBackend

func (api *Client) RemoveSecretBackend(name string, force bool) error

RemoveSecretBackend removes the specified secret backend.

func (*Client) UpdateSecretBackend

func (api *Client) UpdateSecretBackend(arg UpdateSecretBackend, force bool) error

UpdateSecretBackend updates the specified secret backend.

type CreateSecretBackend

type CreateSecretBackend struct {
	ID                  string
	Name                string
	BackendType         string
	TokenRotateInterval *time.Duration
	Config              map[string]interface{}
}

CreateSecretBackend holds details for creating a secret backend.

type SecretBackend

type SecretBackend struct {
	Name                string
	BackendType         string
	TokenRotateInterval *time.Duration
	Config              map[string]interface{}
	NumSecrets          int
	Status              status.Status
	Message             string
	ID                  string
	Error               error
}

SecretBackend holds details for a secret backend.

type UpdateSecretBackend

type UpdateSecretBackend struct {
	Name                string
	NameChange          *string
	TokenRotateInterval *time.Duration
	Config              map[string]interface{}
	Reset               []string
}

UpdateSecretBackend holds details for updating a secret backend.

Jump to

Keyboard shortcuts

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