Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) GetRemoteSecretContentInfo(ctx context.Context, uri *coresecrets.URI, revision int, refresh, peek bool, ...) (*secrets.ContentParams, *provider.ModelBackendConfig, int, bool, error)
- func (c *Client) GetSecretAccessScope(ctx context.Context, uri *coresecrets.URI, appToken string, unitId int) (string, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Clock retry.Clock = clock.WallClock
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
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, options ...Option) *Client
NewClient creates a new client-side CrossModelSecrets facade.
func NewClientWithCache ¶
func NewClientWithCache(caller base.APICallCloser, cache *crossmodelrelations.MacaroonCache, options ...Option) *Client
NewClientWithCache creates a new client-side CrossModelSecrets facade with the specified cache.
func (*Client) GetRemoteSecretContentInfo ¶
func (c *Client) GetRemoteSecretContentInfo(ctx context.Context, 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.
Click to show internal directories.
Click to hide internal directories.