crossmodelsecrets

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client

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

Client provides access to the CrossModelSecrets API facade.

func NewClient

func NewClient(caller base.APICallCloser) *Client

NewClient creates a new client-side CrossModelSecrets facade.

func NewClientWithCache

func NewClientWithCache(caller base.APICallCloser, cache *crossmodelrelations.MacaroonCache) *Client

NewClientWithCache creates a new client-side CrossModelSecrets facade with the specified cache.

func (*Client) GetRemoteSecretContentInfo

func (c *Client) GetRemoteSecretContentInfo(uri *coresecrets.URI, revision int, refresh, peek bool, sourceControllerUUID, appToken string, unitId int, macs macaroon.Slice) (
	*secrets.ContentParams, *provider.ModelBackendConfig, int, bool, error,
)

GetRemoteSecretContentInfo gets secret content from a cross model controller.

func (*Client) GetSecretAccessScope

func (c *Client) GetSecretAccessScope(uri *coresecrets.URI, appToken string, unitId int) (string, error)

GetSecretAccessScope gets access details for a secret from a cross model controller.

Jump to

Keyboard shortcuts

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