Documentation ¶
Overview ¶
Package registry implements a schematic storage in OCI registry.
Index ¶
- Constants
- type Storage
- func (s *Storage) Collect(chan<- prometheus.Metric)
- func (s *Storage) Describe(ch chan<- *prometheus.Desc)
- func (s *Storage) Get(ctx context.Context, id string) ([]byte, error)
- func (s *Storage) Head(ctx context.Context, id string) error
- func (s *Storage) Put(ctx context.Context, id string, data []byte) error
Constants ¶
View Source
const SchematicMediaType types.MediaType = "application/vnd.sidero.dev-image.schematic"
SchematicMediaType is a media type for the schematic stored in the OCI registry.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a schematic storage in a OCI Registry.
Schematic ID is a sha256 of the contents, so it matches registry content-addressable storage.
func NewStorage ¶
NewStorage creates a new storage.
func (*Storage) Collect ¶
func (s *Storage) Collect(chan<- prometheus.Metric)
Collect implements prom.Collector interface.
func (*Storage) Describe ¶
func (s *Storage) Describe(ch chan<- *prometheus.Desc)
Describe implements prom.Collector interface.
Click to show internal directories.
Click to hide internal directories.