registry

package
v1.9.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package registry provides a simple container registry service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiPathFS

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

MultiPathFS is a fs.FS that reads from multiple paths sequentially until it finds the file.

func NewMultiPathFS

func NewMultiPathFS(it iter.Seq[string]) *MultiPathFS

NewMultiPathFS creates a new MultiPathFS. It takes an iterator of FSs which can be used multiple times asynchrously.

func (*MultiPathFS) Open

func (m *MultiPathFS) Open(name string) (fs.File, error)

Open opens the named file.

func (*MultiPathFS) Stat

func (m *MultiPathFS) Stat(name string) (fs.FileInfo, error)

Stat returns a fs.FileInfo describing the named file.

type Service

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

Service is a container registry service.

func NewService

func NewService(root fs.StatFS, logger *zap.Logger) *Service

NewService creates a new instance of the registry service.

func (*Service) Run

func (svc *Service) Run(ctx context.Context) error

Run is an entrypoint to the API service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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