Documentation ¶
Index ¶
- Constants
- type PMInterface
- type ParameterStore
- func (pm *ParameterStore) Close(_ context.Context) error
- func (pm *ParameterStore) DeleteSecret(ctx context.Context, remoteRef esv1beta1.PushSecretRemoteRef) error
- func (pm *ParameterStore) GetAllSecrets(ctx context.Context, ref esv1beta1.ExternalSecretFind) (map[string][]byte, error)
- func (pm *ParameterStore) GetSecret(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (pm *ParameterStore) GetSecretMap(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (pm *ParameterStore) PushSecret(ctx context.Context, secret *corev1.Secret, data esv1beta1.PushSecretData) error
- func (pm *ParameterStore) SecretExists(_ context.Context, _ esv1beta1.PushSecretRemoteRef) (bool, error)
- func (pm *ParameterStore) Validate() (esv1beta1.ValidationResult, error)
Constants ¶
View Source
const ( PushSecretType = "parameterStoreType" StoreTypeString = "String" StoreKeyID = "parameterStoreKeyID" PushSecretKeyID = "keyID" )
Declares metadata information for pushing secrets to AWS Parameter Store.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PMInterface ¶
type PMInterface interface { GetParameterWithContext(aws.Context, *ssm.GetParameterInput, ...request.Option) (*ssm.GetParameterOutput, error) GetParametersByPathWithContext(aws.Context, *ssm.GetParametersByPathInput, ...request.Option) (*ssm.GetParametersByPathOutput, error) PutParameterWithContext(aws.Context, *ssm.PutParameterInput, ...request.Option) (*ssm.PutParameterOutput, error) DescribeParametersWithContext(aws.Context, *ssm.DescribeParametersInput, ...request.Option) (*ssm.DescribeParametersOutput, error) ListTagsForResourceWithContext(aws.Context, *ssm.ListTagsForResourceInput, ...request.Option) (*ssm.ListTagsForResourceOutput, error) DeleteParameterWithContext(ctx aws.Context, input *ssm.DeleteParameterInput, opts ...request.Option) (*ssm.DeleteParameterOutput, error) }
PMInterface is a subset of the parameterstore api. see: https://docs.aws.amazon.com/sdk-for-go/api/service/ssm/ssmiface/
type ParameterStore ¶
type ParameterStore struct {
// contains filtered or unexported fields
}
ParameterStore is a provider for AWS ParameterStore.
func New ¶
func New(sess *session.Session, cfg *aws.Config, prefix string, referentAuth bool) (*ParameterStore, error)
New constructs a ParameterStore Provider that is specific to a store.
func (*ParameterStore) Close ¶ added in v0.2.1
func (pm *ParameterStore) Close(_ context.Context) error
func (*ParameterStore) DeleteSecret ¶ added in v0.7.0
func (pm *ParameterStore) DeleteSecret(ctx context.Context, remoteRef esv1beta1.PushSecretRemoteRef) error
func (*ParameterStore) GetAllSecrets ¶ added in v0.5.0
func (pm *ParameterStore) GetAllSecrets(ctx context.Context, ref esv1beta1.ExternalSecretFind) (map[string][]byte, error)
GetAllSecrets fetches information from multiple secrets into a single kubernetes secret.
func (*ParameterStore) GetSecret ¶
func (pm *ParameterStore) GetSecret(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
GetSecret returns a single secret from the provider.
func (*ParameterStore) GetSecretMap ¶
func (pm *ParameterStore) GetSecretMap(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
GetSecretMap returns multiple k/v pairs from the provider.
func (*ParameterStore) PushSecret ¶ added in v0.7.0
func (pm *ParameterStore) PushSecret(ctx context.Context, secret *corev1.Secret, data esv1beta1.PushSecretData) error
func (*ParameterStore) SecretExists ¶ added in v0.9.14
func (pm *ParameterStore) SecretExists(_ context.Context, _ esv1beta1.PushSecretRemoteRef) (bool, error)
func (*ParameterStore) Validate ¶ added in v0.4.2
func (pm *ParameterStore) Validate() (esv1beta1.ValidationResult, error)
Click to show internal directories.
Click to hide internal directories.