fake

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AkeylessMockClient

type AkeylessMockClient struct {
	// contains filtered or unexported fields
}

func New added in v0.10.4

func New() *AkeylessMockClient

func (*AkeylessMockClient) CreateSecret added in v0.10.4

func (mc *AkeylessMockClient) CreateSecret(ctx context.Context, remoteKey, data string) error

func (*AkeylessMockClient) DeleteSecret added in v0.10.4

func (mc *AkeylessMockClient) DeleteSecret(ctx context.Context, remoteKey string) error

func (*AkeylessMockClient) DescribeItem added in v0.10.4

func (mc *AkeylessMockClient) DescribeItem(ctx context.Context, itemName string) (*akeyless.Item, error)

func (*AkeylessMockClient) GetSecretByType

func (mc *AkeylessMockClient) GetSecretByType(_ context.Context, secretName string, version int32) (string, error)

func (*AkeylessMockClient) ListSecrets added in v0.7.3

func (mc *AkeylessMockClient) ListSecrets(_ context.Context, _, _ string) ([]string, error)

func (*AkeylessMockClient) SetCreateSecretFn added in v0.10.4

func (mc *AkeylessMockClient) SetCreateSecretFn(f func(ctx context.Context, remoteKey, data string) error) *AkeylessMockClient

func (*AkeylessMockClient) SetDeleteSecretFn added in v0.10.4

func (mc *AkeylessMockClient) SetDeleteSecretFn(f func(ctx context.Context, remoteKey string) error) *AkeylessMockClient

func (*AkeylessMockClient) SetDescribeItemFn added in v0.10.4

func (mc *AkeylessMockClient) SetDescribeItemFn(f func(ctx context.Context, itemName string) (*akeyless.Item, error)) *AkeylessMockClient

func (*AkeylessMockClient) SetGetSecretFn added in v0.10.4

func (mc *AkeylessMockClient) SetGetSecretFn(f func(secretName string, version int32) (string, error)) *AkeylessMockClient

func (*AkeylessMockClient) SetUpdateSecretFn added in v0.10.4

func (mc *AkeylessMockClient) SetUpdateSecretFn(f func(ctx context.Context, remoteKey, data string) error) *AkeylessMockClient

func (*AkeylessMockClient) TokenFromSecretRef

func (mc *AkeylessMockClient) TokenFromSecretRef(_ context.Context) (string, error)

func (*AkeylessMockClient) UpdateSecret added in v0.10.4

func (mc *AkeylessMockClient) UpdateSecret(ctx context.Context, remoteKey, data string) error

func (*AkeylessMockClient) WithValue

func (mc *AkeylessMockClient) WithValue(_ *Input, out *Output)

type Input

type Input struct {
	SecretName string
	Token      string
	Version    int32
}

type Output

type Output struct {
	Value string
	Err   error
}

Jump to

Keyboard shortcuts

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