registry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryService

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

RegistryService structure

func NewRegistryService

func NewRegistryService(registryConfig config.RegistryConfig) *RegistryService

New creates a new RegistryService

func (*RegistryService) GetRegistryPath

func (s *RegistryService) GetRegistryPath() string

GetRegistryPath returns URL for the registry

func (*RegistryService) UploadImage

func (s *RegistryService) UploadImage(originalImageName string, backupImageName string) error

UploadImage uploads image from the original source to backup registry

type Service

type Service interface {
	UploadImage(string, string) error
	GetRegistryPath() string
}

Service interface

Jump to

Keyboard shortcuts

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