-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
36 lines (31 loc) · 790 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package secretsmanager
import (
"github.com/aws/aws-sdk-go/service/secretsmanager/secretsmanageriface"
)
// AWSConfig store configuration used to initialize
// secrets manager client.
type AWSConfig struct {
Region string
}
// SecretSpec represent specs of secret to be searched
// If Key field is not set then package will return first
// secret key stored in secret name.
//
// maps to ClusterConfig
type SecretSpec struct {
Name string
Key string
}
// Client represents an AWS Secrets Manager client
//
// maps to ProviderServices
type Client struct {
config *AWSConfig
api secretsmanageriface.SecretsManagerAPI
}
// SecretString is a concret representation
// of an AWS Secrets Manager Secret String
type SecretString struct {
Name string
SecretString string
}