schematic

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package schematic implements schematic factory: storing image schematics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory is the schematic factory.

func NewFactory

func NewFactory(logger *zap.Logger, storage storage.Storage, options Options) *Factory

NewFactory creates a new schematic factory.

func (*Factory) Collect

func (s *Factory) Collect(ch chan<- prometheus.Metric)

Collect implements prom.Collector interface.

func (*Factory) Describe

func (s *Factory) Describe(ch chan<- *prometheus.Desc)

Describe implements prom.Collector interface.

func (*Factory) Get

func (s *Factory) Get(ctx context.Context, id string) (*schematic.Schematic, error)

Get retrieves the stored schematic.

func (*Factory) Put

func (s *Factory) Put(ctx context.Context, cfg *schematic.Schematic) (string, error)

Put stores the schematic.

If the schematic already exists, Put does nothing.

type Options

type Options struct{}

Options for the schematic factory.

Directories

Path Synopsis
Package storage implements a storage for schematic data.
Package storage implements a storage for schematic data.
cache
Package cache implements an in-memory cache over schematic storage.
Package cache implements an in-memory cache over schematic storage.
registry
Package registry implements a schematic storage in OCI registry.
Package registry implements a schematic storage in OCI registry.

Jump to

Keyboard shortcuts

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