Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("vm metadata not found") ErrStaleVersion = errors.New("vm metadata version is stale") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Store ¶
type Store interface {
// Save creates or updates a VM metadata record in the store.
// On insert, Version is set to 1. On update, Version is incremented.
// ErrStaleVersion is returned when the provided version doesn't match.
Save(ctx context.Context, record *Record) error
// GetByMint returns the VM metadata record for the given mint
GetByMint(ctx context.Context, mint string) (*Record, error)
// GetAllVms returns all VM public keys
GetAllVms(ctx context.Context) ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.