gopass: github.com/justwatchcom/gopass/pkg/gopass/api Index | Files

package api

import "github.com/justwatchcom/gopass/pkg/gopass/api"

Index

Package Files

api.go

type Gopass Uses

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

Gopass is a secret store implementation

func New Uses

func New(ctx context.Context) (*Gopass, error)

New creates a new secret store WARNING: This will need to change to accommodate for runtime configuration.

func (*Gopass) Close Uses

func (g *Gopass) Close(ctx context.Context) error

Close shuts down all background processes

func (*Gopass) Get Uses

func (g *Gopass) Get(ctx context.Context, name, revision string) (gopass.Secret, error)

Get returns a single, encrypted secret. It must be unwrapped before use.

func (*Gopass) List Uses

func (g *Gopass) List(ctx context.Context) ([]string, error)

List returns a list of all secrets.

func (*Gopass) Remove Uses

func (g *Gopass) Remove(ctx context.Context, name string) error

Remove removes a single secret.

func (*Gopass) RemoveAll Uses

func (g *Gopass) RemoveAll(ctx context.Context, prefix string) error

RemoveAll removes all secrets with a given prefix.

func (*Gopass) Rename Uses

func (g *Gopass) Rename(ctx context.Context, src, dest string) error

Rename move a prefix to another.

func (*Gopass) Revisions Uses

func (g *Gopass) Revisions(ctx context.Context, name string) ([]string, error)

Revisions lists all revisions of this secret

func (*Gopass) Set Uses

func (g *Gopass) Set(ctx context.Context, name string, sec gopass.Byter) error

Set adds a new revision to an existing secret or creates a new one.

func (*Gopass) String Uses

func (g *Gopass) String() string

func (*Gopass) Sync Uses

func (g *Gopass) Sync(ctx context.Context) error

Sync synchronizes a secret with a remote

Package api imports 9 packages (graph). Updated 2020-09-23. Refresh now. Tools for package owners.