package metadata
import "github.com/moby/buildkit/cache/metadata"
Index ¶
- Variables
- type StorageItem
- func (s *StorageItem) ClearIndex(tx *bolt.Tx, index string) error
- func (s *StorageItem) Commit() error
- func (s *StorageItem) Get(k string) *Value
- func (s *StorageItem) GetAndSetValue(key string, fn func(*Value) (*Value, error)) error
- func (s *StorageItem) GetExternal(k string) ([]byte, error)
- func (s *StorageItem) ID() string
- func (s *StorageItem) Indexes() (out []string)
- func (s *StorageItem) Keys() []string
- func (s *StorageItem) Metadata() *StorageItem
- func (s *StorageItem) Queue(fn func(b *bolt.Bucket) error)
- func (s *StorageItem) SetExternal(k string, dt []byte) error
- func (s *StorageItem) SetValue(b *bolt.Bucket, key string, v *Value) error
- func (s *StorageItem) Storage() *Store
- func (s *StorageItem) Update(fn func(b *bolt.Bucket) error) error
- type Store
- func NewStore(dbPath string) (*Store, error)
- func (s *Store) All() ([]*StorageItem, error)
- func (s *Store) Clear(id string) error
- func (s *Store) Close() error
- func (s *Store) DB() db.Transactor
- func (s *Store) Get(id string) (*StorageItem, bool)
- func (s *Store) Probe(index string) (bool, error)
- func (s *Store) Search(ctx context.Context, index string, prefix bool) ([]*StorageItem, error)
- func (s *Store) Update(id string, fn func(b *bolt.Bucket) error) error
- func (s *Store) View(id string, fn func(b *bolt.Bucket) error) error
- type Value
Variables ¶
Types ¶
type StorageItem ¶
type StorageItem struct {
// contains filtered or unexported fields
}
func (*StorageItem) ClearIndex ¶
func (s *StorageItem) ClearIndex(tx *bolt.Tx, index string) error
func (*StorageItem) Commit ¶
func (s *StorageItem) Commit() error
func (*StorageItem) Get ¶
func (s *StorageItem) Get(k string) *Value
func (*StorageItem) GetAndSetValue ¶
func (*StorageItem) GetExternal ¶
func (s *StorageItem) GetExternal(k string) ([]byte, error)
func (*StorageItem) ID ¶
func (s *StorageItem) ID() string
func (*StorageItem) Indexes ¶
func (s *StorageItem) Indexes() (out []string)
func (*StorageItem) Keys ¶
func (s *StorageItem) Keys() []string
func (*StorageItem) Metadata ¶
func (s *StorageItem) Metadata() *StorageItem
func (*StorageItem) Queue ¶
func (s *StorageItem) Queue(fn func(b *bolt.Bucket) error)
func (*StorageItem) SetExternal ¶
func (s *StorageItem) SetExternal(k string, dt []byte) error
func (*StorageItem) SetValue ¶
func (*StorageItem) Storage ¶
func (s *StorageItem) Storage() *Store
func (*StorageItem) Update ¶
func (s *StorageItem) Update(fn func(b *bolt.Bucket) error) error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func (*Store) All ¶
func (s *Store) All() ([]*StorageItem, error)
func (*Store) Clear ¶
func (*Store) Close ¶
func (*Store) DB ¶
func (s *Store) DB() db.Transactor
func (*Store) Get ¶
func (s *Store) Get(id string) (*StorageItem, bool)
func (*Store) Probe ¶
func (*Store) Search ¶
func (*Store) Update ¶
func (*Store) View ¶
type Value ¶
type Value struct { Value json.RawMessage `json:"value,omitempty"` Index string `json:"index,omitempty"` }
func NewValue ¶
func (*Value) Unmarshal ¶
Source Files ¶
- Version
- v0.17.0-rc1
- Published
- Oct 8, 2024
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 2 seconds ago –
Tools for package owners.