aws

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDefaultProvider

func LoadDefaultProvider(ctx context.Context) (mackerel.APIKeyProvider, error)

LoadDefaultProvider returns default provider.

Types

type KMS

type KMS struct {
	mackerel.APIKeyProvider
	Config aws.Config
}

KMS decrypts the api key with AWS Key Management Service.

func (*KMS) MackerelAPIKey

func (p *KMS) MackerelAPIKey(ctx context.Context) (string, error)

MackerelAPIKey implements mackerel.APIKeyProvider

type SSM

type SSM struct {
	mackerel.APIKeyProvider
	Config         aws.Config
	WithDecryption bool
}

SSM gets the api key from AWS Systems Manager Parameter Store.

func (*SSM) MackerelAPIKey

func (p *SSM) MackerelAPIKey(ctx context.Context) (string, error)

MackerelAPIKey implements mackerel.APIKeyProvider

Jump to

Keyboard shortcuts

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