Documentation ¶
Index ¶
- type Client
- type CmdOption
- type ExecuteOption
- type Repo
- type SSX
- func (s *SSX) AppendTagByID(id int, tags ...string) error
- func (s *SSX) DeleteEntryByID(ids ...int) error
- func (s *SSX) DeleteTagByID(id int, tags ...string) error
- func (s *SSX) GetEntry(opt *CmdOption) (*entry.Entry, error)
- func (s *SSX) ListEntries() error
- func (s *SSX) Main(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Execute ¶ added in v0.0.6
func (c *Client) Execute(ctx context.Context, opt *ExecuteOption) error
Execute a command combined stdout and stderr output, then exit
type CmdOption ¶
type ExecuteOption ¶ added in v0.0.6
type Repo ¶
type Repo interface { Init() error GetMetadata(key []byte) ([]byte, error) SetMetadata(key []byte, value []byte) error TouchEntry(e *entry.Entry) (err error) GetEntry(id uint64) (*entry.Entry, error) GetAllEntries() (map[uint64]*entry.Entry, error) DeleteEntry(id uint64) error }
Repo define a KV store interface
type SSX ¶
type SSX struct {
// contains filtered or unexported fields
}
func (*SSX) DeleteEntryByID ¶
func (*SSX) DeleteTagByID ¶ added in v0.0.2
func (*SSX) ListEntries ¶
Click to show internal directories.
Click to hide internal directories.