diff options
author | Mike Crute <mike@crute.us> | 2022-12-23 17:14:51 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2022-12-23 17:14:51 -0800 |
commit | d4a56ba3c37ea7141854d0c1196ffee41fbaca6d (patch) | |
tree | af092b4b879ea02608693f04f8f63c9f19f3bdd8 /secrets/noop_client.go | |
parent | 685da24d55cb12e1f8d78a079cb7911424f6ddd4 (diff) | |
download | golib-d4a56ba3c37ea7141854d0c1196ffee41fbaca6d.tar.bz2 golib-d4a56ba3c37ea7141854d0c1196ffee41fbaca6d.tar.xz golib-d4a56ba3c37ea7141854d0c1196ffee41fbaca6d.zip |
secrets: add AWS IAM supportsecrets/v0.3.0
Diffstat (limited to 'secrets/noop_client.go')
-rw-r--r-- | secrets/noop_client.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/secrets/noop_client.go b/secrets/noop_client.go index 85bd736..e727e51 100644 --- a/secrets/noop_client.go +++ b/secrets/noop_client.go | |||
@@ -3,6 +3,7 @@ package secrets | |||
3 | import ( | 3 | import ( |
4 | "context" | 4 | "context" |
5 | "sync" | 5 | "sync" |
6 | "time" | ||
6 | ) | 7 | ) |
7 | 8 | ||
8 | type NoopHandle struct{} | 9 | type NoopHandle struct{} |
@@ -33,6 +34,22 @@ func (c *NoopClient) Secret(ctx context.Context, path string, out any) (Handle, | |||
33 | return &NoopHandle{}, nil | 34 | return &NoopHandle{}, nil |
34 | } | 35 | } |
35 | 36 | ||
37 | func (c *NoopClient) RawSecret(ctx context.Context, path string, out any) (Handle, error) { | ||
38 | return &NoopHandle{}, nil | ||
39 | } | ||
40 | |||
41 | func (c *NoopClient) AWSIAMUser(ctx context.Context, name string) (*AWSCredential, Handle, error) { | ||
42 | return &AWSCredential{}, &NoopHandle{}, nil | ||
43 | } | ||
44 | |||
45 | func (c *NoopClient) AWSAssumeRoleSimple(ctx context.Context, name string) (*AWSCredential, Handle, error) { | ||
46 | return &AWSCredential{}, &NoopHandle{}, nil | ||
47 | } | ||
48 | |||
49 | func (c *NoopClient) AWSAssumeRole(ctx context.Context, name string, sessionName string, ttl time.Duration) (*AWSCredential, Handle, error) { | ||
50 | return &AWSCredential{}, &NoopHandle{}, nil | ||
51 | } | ||
52 | |||
36 | func (c *NoopClient) WriteSecret(ctx context.Context, path string, in any) error { | 53 | func (c *NoopClient) WriteSecret(ctx context.Context, path string, in any) error { |
37 | return nil | 54 | return nil |
38 | } | 55 | } |