Documentation ¶
Index ¶
- Variables
- type Config
- type Store
- func (s *Store) Add(ctx context.Context, config *Config) error
- func (s *Store) All(ctx context.Context) ([]Config, error)
- func (s *Store) LookupByID(ctx context.Context, id ksuid.KSUID) (*Config, error)
- func (s *Store) LookupByName(ctx context.Context, name string) *Config
- func (s *Store) Remove(ctx context.Context, config Config) error
- func (s *Store) Rename(ctx context.Context, id ksuid.KSUID, newName string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExists = errors.New("pool already exists") ErrNotFound = errors.New("pool not found") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ts nano.Ts `zed:"ts"` Name string `zed:"name"` ID ksuid.KSUID `zed:"id"` SortKeys order.SortKeys `zed:"layout"` SeekStride int `zed:"seek_stride"` Threshold int64 `zed:"threshold"` }
func (Config) MarshalZNG ¶ added in v1.18.0
func (*Config) UnmarshalZNG ¶ added in v1.18.0
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func CreateStore ¶
func (*Store) LookupByID ¶
Click to show internal directories.
Click to hide internal directories.