Documentation ¶
Index ¶
- func ParseHost(urs string) (string, error)
- func SetLogger(l Logger)
- type LogLevel
- type Logger
- type Repository
- func (r *Repository) Clone(urs string, path string) error
- func (r *Repository) Delete(service string, id string) (bool, error)
- func (r *Repository) Exists(service string, id string) (bool, error)
- func (r *Repository) Get(service string, id string) ([]byte, error)
- func (r *Repository) IDs(service string, opts ...keyring.IDsOption) ([]string, error)
- func (r *Repository) Name() string
- func (r *Repository) Open(path string) error
- func (r *Repository) Path() string
- func (r *Repository) Pull() error
- func (r *Repository) Push() error
- func (r *Repository) Reset(service string) error
- func (r *Repository) Set(service string, id string, data []byte) error
- func (r *Repository) SetKey(key *keys.EdX25519Key) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
Logger interface used in this package.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository ...
func (*Repository) Clone ¶
func (r *Repository) Clone(urs string, path string) error
Clone repository.
func (*Repository) Delete ¶
func (r *Repository) Delete(service string, id string) (bool, error)
Delete bytes.
func (*Repository) Exists ¶
func (r *Repository) Exists(service string, id string) (bool, error)
Exists ...
func (*Repository) Get ¶
func (r *Repository) Get(service string, id string) ([]byte, error)
Get bytes.
func (*Repository) Set ¶
func (r *Repository) Set(service string, id string, data []byte) error
Set bytes.
func (*Repository) SetKey ¶
func (r *Repository) SetKey(key *keys.EdX25519Key) error
SetKey sets the ssh key.
Click to show internal directories.
Click to hide internal directories.