mockstore

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is an mocked store

func New

func New(alias string) *MockStore

New creates a new mock store

func (*MockStore) AddRecipient

func (m *MockStore) AddRecipient(context.Context, string) error

AddRecipient does nothing

func (*MockStore) Alias

func (m *MockStore) Alias() string

Alias does nothing

func (*MockStore) Copy

func (m *MockStore) Copy(ctx context.Context, from string, to string) error

Copy does nothing

func (*MockStore) Crypto

func (m *MockStore) Crypto() backend.Crypto

Crypto does nothing

func (*MockStore) Delete

func (m *MockStore) Delete(ctx context.Context, name string) error

Delete does nothing

func (*MockStore) Equals

func (m *MockStore) Equals(other store.Store) bool

Equals does nothing

func (*MockStore) Exists

func (m *MockStore) Exists(ctx context.Context, name string) bool

Exists does nothing

func (*MockStore) ExportMissingPublicKeys

func (m *MockStore) ExportMissingPublicKeys(context.Context, []string) (bool, error)

ExportMissingPublicKeys does nothing

func (*MockStore) Fsck

func (m *MockStore) Fsck(context.Context, string) error

Fsck does nothing

func (*MockStore) Get

func (m *MockStore) Get(ctx context.Context, name string) (store.Secret, error)

Get does nothing

func (*MockStore) GetRecipients

func (m *MockStore) GetRecipients(context.Context, string) ([]string, error)

GetRecipients does nothing

func (*MockStore) GetRevision

func (m *MockStore) GetRevision(context.Context, string, string) (store.Secret, error)

GetRevision does nothing

func (*MockStore) GetTemplate

func (m *MockStore) GetTemplate(context.Context, string) ([]byte, error)

GetTemplate returns nothing

func (*MockStore) GitInit

func (m *MockStore) GitInit(context.Context, string, string) error

GitInit does nothing

func (*MockStore) HasTemplate

func (m *MockStore) HasTemplate(context.Context, string) bool

HasTemplate returns false

func (*MockStore) ImportMissingPublicKeys

func (m *MockStore) ImportMissingPublicKeys(context.Context) error

ImportMissingPublicKeys does nothing

func (*MockStore) Init

func (m *MockStore) Init(context.Context, string, ...string) error

Init does nothing

func (*MockStore) Initialized

func (m *MockStore) Initialized(context.Context) bool

Initialized does nothing

func (*MockStore) IsDir

func (m *MockStore) IsDir(ctx context.Context, name string) bool

IsDir does nothing

func (*MockStore) List

func (m *MockStore) List(context.Context, string) ([]string, error)

List does nothing

func (*MockStore) ListRevisions

func (m *MockStore) ListRevisions(context.Context, string) ([]backend.Revision, error)

ListRevisions does nothing

func (*MockStore) ListTemplates

func (m *MockStore) ListTemplates(context.Context, string) []string

ListTemplates returns nothing

func (*MockStore) LookupTemplate

func (m *MockStore) LookupTemplate(context.Context, string) ([]byte, bool)

LookupTemplate returns nothing

func (*MockStore) MountPoints

func (m *MockStore) MountPoints() []string

MountPoints does nothing

func (*MockStore) Move

func (m *MockStore) Move(ctx context.Context, from string, to string) error

Move does nothing

func (*MockStore) Path

func (m *MockStore) Path() string

Path does nothing

func (*MockStore) Prune

func (m *MockStore) Prune(context.Context, string) error

Prune does nothing

func (*MockStore) RCS

func (m *MockStore) RCS() backend.RCS

RCS does nothing

func (*MockStore) Recipients

func (m *MockStore) Recipients(context.Context) []string

Recipients does nothing

func (*MockStore) RemoveRecipient

func (m *MockStore) RemoveRecipient(context.Context, string) error

RemoveRecipient does nothing

func (*MockStore) RemoveTemplate

func (m *MockStore) RemoveTemplate(context.Context, string) error

RemoveTemplate does nothing

func (*MockStore) SaveRecipients

func (m *MockStore) SaveRecipients(context.Context) error

SaveRecipients does nothing

func (*MockStore) Set

func (m *MockStore) Set(ctx context.Context, name string, sec store.Secret) error

Set does nothing

func (*MockStore) SetTemplate

func (m *MockStore) SetTemplate(context.Context, string, []byte) error

SetTemplate does nothing

func (*MockStore) Storage

func (m *MockStore) Storage() backend.Storage

Storage does nothing

func (*MockStore) String

func (m *MockStore) String() string

String implements fmt.Stringer

func (*MockStore) TemplateTree

func (m *MockStore) TemplateTree(context.Context) (tree.Tree, error)

TemplateTree does nothing

func (*MockStore) URL

func (m *MockStore) URL() string

URL does nothing

func (*MockStore) Valid

func (m *MockStore) Valid() bool

Valid does nothing

Jump to

Keyboard shortcuts

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