vault: github.com/hashicorp/vault/physical/s3 Index | Files

package s3

import "github.com/hashicorp/vault/physical/s3"

Index

Package Files

s3.go

func NewS3Backend Uses

func NewS3Backend(conf map[string]string, logger log.Logger) (physical.Backend, error)

NewS3Backend constructs a S3 backend using a pre-existing bucket. Credentials can be provided to the backend, sourced from the environment, AWS credential files or by IAM role.

type S3Backend Uses

type S3Backend struct {
    // contains filtered or unexported fields
}

S3Backend is a physical backend that stores data within an S3 bucket.

func (*S3Backend) Delete Uses

func (s *S3Backend) Delete(ctx context.Context, key string) error

Delete is used to permanently delete an entry

func (*S3Backend) Get Uses

func (s *S3Backend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*S3Backend) List Uses

func (s *S3Backend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*S3Backend) Put Uses

func (s *S3Backend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry

Package s3 imports 23 packages (graph) and is imported by 4 packages. Updated 2019-09-15. Refresh now. Tools for package owners.