registry

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BucketName represents the name of the bucket where this service stores data.
	BucketName = "registries"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents a service for managing baask8s data.

func NewService

func NewService(db *bolt.DB) (*Service, error)

NewService creates a new instance of a service.

func (*Service) CreateRegistry

func (service *Service) CreateRegistry(registry *baasapi.Registry) error

CreateRegistry creates a new registry.

func (*Service) DeleteRegistry

func (service *Service) DeleteRegistry(ID baasapi.RegistryID) error

DeleteRegistry deletes an registry.

func (*Service) Registries

func (service *Service) Registries() ([]baasapi.Registry, error)

Registries returns an array containing all the registries.

func (*Service) Registry

func (service *Service) Registry(ID baasapi.RegistryID) (*baasapi.Registry, error)

Registry returns an registry by ID.

func (*Service) UpdateRegistry

func (service *Service) UpdateRegistry(ID baasapi.RegistryID, registry *baasapi.Registry) error

UpdateRegistry updates an registry.

Jump to

Keyboard shortcuts

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