aboutsummaryrefslogtreecommitdiff
path: root/secrets/noop_client.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-12-23 17:14:51 -0800
committerMike Crute <mike@crute.us>2022-12-23 17:14:51 -0800
commitd4a56ba3c37ea7141854d0c1196ffee41fbaca6d (patch)
treeaf092b4b879ea02608693f04f8f63c9f19f3bdd8 /secrets/noop_client.go
parent685da24d55cb12e1f8d78a079cb7911424f6ddd4 (diff)
downloadgolib-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.go17
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
3import ( 3import (
4 "context" 4 "context"
5 "sync" 5 "sync"
6 "time"
6) 7)
7 8
8type NoopHandle struct{} 9type 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
37func (c *NoopClient) RawSecret(ctx context.Context, path string, out any) (Handle, error) {
38 return &NoopHandle{}, nil
39}
40
41func (c *NoopClient) AWSIAMUser(ctx context.Context, name string) (*AWSCredential, Handle, error) {
42 return &AWSCredential{}, &NoopHandle{}, nil
43}
44
45func (c *NoopClient) AWSAssumeRoleSimple(ctx context.Context, name string) (*AWSCredential, Handle, error) {
46 return &AWSCredential{}, &NoopHandle{}, nil
47}
48
49func (c *NoopClient) AWSAssumeRole(ctx context.Context, name string, sessionName string, ttl time.Duration) (*AWSCredential, Handle, error) {
50 return &AWSCredential{}, &NoopHandle{}, nil
51}
52
36func (c *NoopClient) WriteSecret(ctx context.Context, path string, in any) error { 53func (c *NoopClient) WriteSecret(ctx context.Context, path string, in any) error {
37 return nil 54 return nil
38} 55}