modelcatalog

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package modelcatalog owns the shareable models.json authored catalog.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid  = errors.New("model catalog: invalid input")
	ErrNotFound = errors.New("model catalog: model not found")
	ErrConflict = errors.New("model catalog: revision conflict")
	ErrCorrupt  = errors.New("model catalog: corrupt file")
)

Functions

This section is empty.

Types

type Service

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

func New

func New(path string) (*Service, error)

func (*Service) Create

func (service *Service) Create(ctx context.Context, model domain.Model) error

func (*Service) Delete

func (service *Service) Delete(ctx context.Context, id string, expectedRevision uint64) error

func (*Service) Get

func (service *Service) Get(ctx context.Context, id string) (domain.Model, error)

func (*Service) List

func (service *Service) List(ctx context.Context) ([]domain.Model, error)

func (*Service) Update

func (service *Service) Update(ctx context.Context, expectedRevision uint64, model domain.Model) error

Jump to

Keyboard shortcuts

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