Documentation ¶
Overview ¶
Package secrets manages the storage of credentials for ticket trackers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSecrets ¶
type AWSSecrets struct { Logger echo.Logger // contains filtered or unexported fields }
AWSSecrets represents the specific AWS secret manager.
func NewAWSSecretManager ¶
func NewAWSSecretManager(config config.AwsConfig, logger echo.Logger) (*AWSSecrets, error)
NewAWSSecretManager instantiates a manager for AWS Secret Manager.
func (*AWSSecrets) GetServerCredentials ¶
func (s *AWSSecrets) GetServerCredentials(serverID string) (Credentials, error)
GetServerCredentials return the Jira credentials inside a Credentials type from AWS secret manager for a specific server.
type Credentials ¶
type Credentials struct {
Token string `json:"token"`
}
Credentials store the credentials of a secret.
type Secrets ¶
type Secrets interface {
GetServerCredentials(serverID string) (Credentials, error)
}
Secrets manage the credentials of ticket trackers servers.
Click to show internal directories.
Click to hide internal directories.