registry

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadOnlyService

type ReadOnlyService interface {
	GlobalRegistryFind(string) (*model.Registry, error)
	GlobalRegistryList(*model.ListOptions) ([]*model.Registry, error)
}

ReadOnlyService defines a service for managing registries.

func NewFilesystem

func NewFilesystem(path string) ReadOnlyService

type Service

type Service interface {
	RegistryListPipeline(*model.Repo, *model.Pipeline) ([]*model.Registry, error)
	// Repository registries
	RegistryFind(*model.Repo, string) (*model.Registry, error)
	RegistryList(*model.Repo, *model.ListOptions) ([]*model.Registry, error)
	RegistryCreate(*model.Repo, *model.Registry) error
	RegistryUpdate(*model.Repo, *model.Registry) error
	RegistryDelete(*model.Repo, string) error
	// Organization registries
	OrgRegistryFind(int64, string) (*model.Registry, error)
	OrgRegistryList(int64, *model.ListOptions) ([]*model.Registry, error)
	OrgRegistryCreate(int64, *model.Registry) error
	OrgRegistryUpdate(int64, *model.Registry) error
	OrgRegistryDelete(int64, string) error
	// Global registries
	GlobalRegistryFind(string) (*model.Registry, error)
	GlobalRegistryList(*model.ListOptions) ([]*model.Registry, error)
	GlobalRegistryCreate(*model.Registry) error
	GlobalRegistryUpdate(*model.Registry) error
	GlobalRegistryDelete(string) error
}

Service defines a service for managing registries.

func NewCombined

func NewCombined(dbRegistry Service, registries ...ReadOnlyService) Service

func NewDB

func NewDB(store store.Store) Service

New returns a new local registry service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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