metadata

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists = errors.New("vm metadata already exists")
	ErrNotFound      = errors.New("vm metadata not found")
)

Functions

This section is empty.

Types

type Record

type Record struct {
	Id uint64

	Mint        string
	Authority   string
	Vm          string
	VmBump      uint8
	Omnibus     string
	OmnibusBump uint8
	DaysLocked  uint8

	CreatedAt time.Time
}

func (*Record) Clone

func (r *Record) Clone() Record

func (*Record) CopyTo

func (r *Record) CopyTo(dst *Record)

func (*Record) Validate

func (r *Record) Validate() error

type Store

type Store interface {
	// Put inserts or updates a VM metadata record
	Put(ctx context.Context, record *Record) error

	// GetByMint returns the VM metadata record for the given mint
	GetByMint(ctx context.Context, mint string) (*Record, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL