backend

package
v0.0.0-...-535f55b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ssmvars.ReadWriter
	// contains filtered or unexported fields
}

Backend is an S3 implementation of the secretservice backend.

func New

func New(ssm ssmvars.ReadWriter, s3 s3iface.S3API, bucketName string) *Backend

New returns an implementation of Secret Service backend.

func (*Backend) ArchiveRelease

func (b *Backend) ArchiveRelease(ctx context.Context, scopeName, releaseID string) error

ArchiveRelease archives a release.

func (*Backend) CreateRelease

func (b *Backend) CreateRelease(ctx context.Context, scopeName string, variables []*ssmvars.Variable) (*secretservice.Release, error)

CreateRelease creates a release with a given set of variables.

func (*Backend) GetRelease

func (b *Backend) GetRelease(ctx context.Context, scopeName, releaseID string) (*secretservice.Release, error)

GetRelease retrieves a release given its ID.

func (*Backend) ListReleases

func (b *Backend) ListReleases(ctx context.Context, scopeName string, before *string) ([]string, error)

ListReleases return a list of release IDs. If `before` argument is not nil, it is used for pagination.

func (*Backend) Scope

func (b *Backend) Scope(ctx context.Context, scopeName string) (*secretservice.Scope, error)

Scope returns scope by its name.

Jump to

Keyboard shortcuts

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