Documentation ¶
Index ¶
- type Secret
- func (s *Secret) Body() string
- func (s *Secret) Bytes() ([]byte, error)
- func (s *Secret) Data() map[string]interface{}
- func (s *Secret) DeleteKey(key string) error
- func (s *Secret) Equal(other store.Secret) bool
- func (s *Secret) Password() string
- func (s *Secret) SetBody(string) error
- func (s *Secret) SetPassword(pw string)
- func (s *Secret) SetValue(key string, value string) error
- func (s *Secret) String() string
- func (s *Secret) Value(key string) (string, error)
- type Store
- func (s *Store) AddRecipient(context.Context, string) error
- func (s *Store) Alias() string
- func (s *Store) Copy(ctx context.Context, from string, to string) error
- func (s *Store) Crypto() backend.Crypto
- func (s *Store) Delete(ctx context.Context, path string) error
- func (s *Store) Equals(other store.Store) bool
- func (s *Store) Exists(ctx context.Context, name string) bool
- func (s *Store) ExportMissingPublicKeys(context.Context, []string) (bool, error)
- func (s *Store) Fsck(ctx context.Context, prefix string) error
- func (s *Store) Get(ctx context.Context, name string) (store.Secret, error)
- func (s *Store) GetRecipients(context.Context, string) ([]string, error)
- func (s *Store) GetRevision(context.Context, string, string) (store.Secret, error)
- func (s *Store) GetTemplate(context.Context, string) ([]byte, error)
- func (s *Store) GitInit(context.Context, string, string) error
- func (s *Store) HasTemplate(context.Context, string) bool
- func (s *Store) ImportMissingPublicKeys(context.Context) error
- func (s *Store) Init(context.Context, string, ...string) error
- func (s *Store) Initialized(ctx context.Context) bool
- func (s *Store) IsDir(ctx context.Context, name string) bool
- func (s *Store) List(ctx context.Context, prefix string) ([]string, error)
- func (s *Store) ListRevisions(context.Context, string) ([]backend.Revision, error)
- func (s *Store) ListTemplates(context.Context, string) []string
- func (s *Store) LookupTemplate(context.Context, string) ([]byte, bool)
- func (s *Store) Move(ctx context.Context, from string, to string) error
- func (s *Store) Path() string
- func (s *Store) Prune(ctx context.Context, name string) error
- func (s *Store) RCS() backend.RCS
- func (s *Store) Recipients(context.Context) []string
- func (s *Store) RemoveRecipient(context.Context, string) error
- func (s *Store) RemoveTemplate(context.Context, string) error
- func (s *Store) SaveRecipients(context.Context) error
- func (s *Store) Set(ctx context.Context, name string, sec store.Secret) error
- func (s *Store) SetTemplate(context.Context, string, []byte) error
- func (s *Store) Storage() backend.Storage
- func (s *Store) String() string
- func (s *Store) TemplateTree(context.Context) (tree.Tree, error)
- func (s *Store) URL() string
- func (s *Store) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
Secret is a vault secret
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a vault backed store
func New ¶
func New(ctx context.Context, alias string, url *backend.URL, cfgdir string, agent *client.Client) (*Store, error)
New creates a new store
func (*Store) AddRecipient ¶
AddRecipient is unsupported
func (*Store) ExportMissingPublicKeys ¶
ExportMissingPublicKeys is unsupported
func (*Store) GetRecipients ¶
GetRecipients is unsupported
func (*Store) GetRevision ¶
GetRevision is unsupported
func (*Store) GetTemplate ¶
GetTemplate is unsupported
func (*Store) HasTemplate ¶
HasTemplate is unsupported
func (*Store) ImportMissingPublicKeys ¶
ImportMissingPublicKeys is unsupported
func (*Store) Initialized ¶
Initialized returns true if the backend can communicate with Vault
func (*Store) ListRevisions ¶
ListRevisions is unsupported
func (*Store) ListTemplates ¶
ListTemplates is unsupported
func (*Store) LookupTemplate ¶
LookupTemplate is unsupported
func (*Store) Recipients ¶
Recipients is unsupported
func (*Store) RemoveRecipient ¶
RemoveRecipient is unsupported
func (*Store) RemoveTemplate ¶
RemoveTemplate is unsupported
func (*Store) SaveRecipients ¶
SaveRecipients is unsupported
func (*Store) SetTemplate ¶
SetTemplate is unsupported
func (*Store) TemplateTree ¶
TemplateTree is unsupported
Click to show internal directories.
Click to hide internal directories.