mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConjurClient

type ConjurClient struct {
	CanExecute bool
	// TODO: CanExecute is really just used to assert on the presence of errors
	// 	and should probably just be an optional error.
	Database map[string]string
}

func NewConjurClient

func NewConjurClient() *ConjurClient

func (*ConjurClient) AddSecrets

func (c *ConjurClient) AddSecrets(
	secrets map[string]string,
)

func (*ConjurClient) RetrieveSecrets

func (c *ConjurClient) RetrieveSecrets(secretIds []string) (map[string][]byte, error)

type MockAccessToken

type MockAccessToken struct{}

Mocks a Conjur access token.

func (MockAccessToken) Delete

func (accessToken MockAccessToken) Delete() error

This method implementation is only so MockAccessToken will implement the MockAccessToken interface

func (MockAccessToken) Read

func (accessToken MockAccessToken) Read() ([]byte, error)

Returns an arbitrary byte array as an access token data as we don't really need it

func (MockAccessToken) Write

func (accessToken MockAccessToken) Write(Data []byte) error

This method implementation is only so MockAccessToken will implement the MockAccessToken interface

Jump to

Keyboard shortcuts

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