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

package swift

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

Index

Package Files

swift.go

func NewSwiftBackend Uses

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

NewSwiftBackend constructs a Swift backend using a pre-existing container. Credentials can be provided to the backend, sourced from the environment.

type SwiftBackend Uses

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

SwiftBackend is a physical backend that stores data within an OpenStack Swift container.

func (*SwiftBackend) Delete Uses

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

Delete is used to permanently delete an entry

func (*SwiftBackend) Get Uses

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

Get is used to fetch an entry

func (*SwiftBackend) List Uses

func (s *SwiftBackend) 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 (*SwiftBackend) Put Uses

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

Put is used to insert or update an entry

Package swift imports 14 packages (graph) and is imported by 4 packages. Updated 2019-05-06. Refresh now. Tools for package owners.