Documentation ¶
Index ¶
- func ParseHost(urs string) (string, error)
- func SetLogger(l Logger)
- type LogLevel
- type Logger
- type Repository
- func (r *Repository) Add(name string) error
- func (r *Repository) Clone(urs string, path string) error
- func (r *Repository) Delete(id string) (bool, error)
- func (r *Repository) Exists(id string) (bool, error)
- func (r *Repository) Get(id string) ([]byte, error)
- func (r *Repository) IDs(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) Remove(name string) error
- func (r *Repository) Reset() error
- func (r *Repository) Set(id string, data []byte) error
- func (r *Repository) SetKey(key *keys.EdX25519Key) error
- func (r *Repository) SetKeyringDir(krd string)
- func (r *Repository) Sync() 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) IDs ¶
func (r *Repository) IDs(opts ...keyring.IDsOption) ([]string, error)
IDs ...
func (*Repository) SetKey ¶
func (r *Repository) SetKey(key *keys.EdX25519Key) error
SetKey sets the ssh key.
func (*Repository) SetKeyringDir ¶
func (r *Repository) SetKeyringDir(krd string)
SetKeyringDir sets the keyring subdirectory (optional).
Click to show internal directories.
Click to hide internal directories.