Documentation
¶
Index ¶
- func Execute()
- type Config
- type DumpOptions
- type GitConfig
- type KeyConfig
- type KeySpec
- type ListArgs
- type Store
- func (s *Store) AllStores() ([]string, error)
- func (s *Store) FindStore(k string) (string, error)
- func (s *Store) FormatBytes(includeBinary bool, v []byte) string
- func (s *Store) Keys(dbName string) ([]string, error)
- func (s *Store) Print(pf string, includeBinary bool, vs ...[]byte)
- func (s *Store) PrintTo(w io.Writer, pf string, includeBinary bool, vs ...[]byte)
- func (s *Store) Transaction(args TransactionArgs) error
- type StoreConfig
- type TransactionArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DisplayAsciiArt bool `toml:"display_ascii_art"`
Key KeyConfig `toml:"key"`
Store StoreConfig `toml:"store"`
Git GitConfig `toml:"git"`
}
type DumpOptions ¶
type DumpOptions struct {
Encoding string
IncludeSecret bool
Matchers []glob.Glob
GlobPatterns []string
}
DumpOptions controls how a store is dumped to NDJSON.
type KeySpec ¶
type KeySpec struct {
Raw string // Whole, unmodified user input
RawKey string // Key segment
RawDB string // Store segment
Key string // Normalised Key
DB string // Normalised store
}
KeySpec is a parsed key reference.
func ParseKey ¶
ParseKey parses "KEY[@STORE]" into a normalized KeySpec. When defaults is true, a missing store defaults to the configured default.
type ListArgs ¶
type ListArgs struct {
// contains filtered or unexported fields
}
ListArgs tracks the resolved flag configuration for the list command.
type Store ¶
type Store struct{}
func (*Store) Keys ¶
Keys returns all keys for the provided store name (or default if empty). Keys are returned in lowercase to mirror stored key format.
func (*Store) Transaction ¶
func (s *Store) Transaction(args TransactionArgs) error
type StoreConfig ¶
type TransactionArgs ¶
type TransactionArgs struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.