registry

package
v0.0.0-...-8f2995f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AvailableTimeoutDuration = time.Second * 1
)

Variables

This section is empty.

Functions

func ReloadStorage

func ReloadStorage(storageType int) error

Types

type DummyError

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

func (*DummyError) Error

func (dummyError *DummyError) Error() string

type PrivateRegistry

type PrivateRegistry struct {
	Name string
	Host string
	Port int
}

func GetPrivateRegistryFromPathAndTestAvailable

func GetPrivateRegistryFromPathAndTestAvailable(path string) (*PrivateRegistry, error)

func (*PrivateRegistry) DeleteAllImageInRepository

func (privateRegistry *PrivateRegistry) DeleteAllImageInRepository(repositoryName string) error

func (*PrivateRegistry) DeleteImageInRepository

func (privateRegistry *PrivateRegistry) DeleteImageInRepository(repositoryName string, tag string) error

func (*PrivateRegistry) GetAllImageTag

func (privateRegistry *PrivateRegistry) GetAllImageTag(repositoryName string) ([]string, error)

func (*PrivateRegistry) GetAllRepository

func (privateRegistry *PrivateRegistry) GetAllRepository() ([]string, error)

func (*PrivateRegistry) GetRepositoryPath

func (privateRegistry *PrivateRegistry) GetRepositoryPath(repositoryName string) string

func (*PrivateRegistry) IsAvailable

func (privateRegistry *PrivateRegistry) IsAvailable() error

func (*PrivateRegistry) IsImageTagAvailable

func (privateRegistry *PrivateRegistry) IsImageTagAvailable(repositoryName string, targetTag string) bool

type Storage

type Storage interface {
	DeletePrivateRegistry(name string) error
	SavePrivateRegistry(privateRegistry *PrivateRegistry) error
	LoadPrivateRegistry(name string) (*PrivateRegistry, error)
	LoadAllPrivateRegistry() ([]PrivateRegistry, error)
	// contains filtered or unexported methods
}

func GetStorage

func GetStorage() Storage

type StorageDummy

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

func (*StorageDummy) DeletePrivateRegistry

func (storageDummy *StorageDummy) DeletePrivateRegistry(name string) error

func (*StorageDummy) LoadAllPrivateRegistry

func (storageDummy *StorageDummy) LoadAllPrivateRegistry() ([]PrivateRegistry, error)

func (*StorageDummy) LoadPrivateRegistry

func (storageDummy *StorageDummy) LoadPrivateRegistry(name string) (*PrivateRegistry, error)

func (*StorageDummy) SavePrivateRegistry

func (storageDummy *StorageDummy) SavePrivateRegistry(privateRegistry *PrivateRegistry) error

func (*StorageDummy) ShouldCheck

func (storageDummy *StorageDummy) ShouldCheck() bool

type StorageEtcd

type StorageEtcd struct {
}

func (*StorageEtcd) DeletePrivateRegistry

func (storageEtcd *StorageEtcd) DeletePrivateRegistry(name string) error

func (*StorageEtcd) LoadAllPrivateRegistry

func (storageEtcd *StorageEtcd) LoadAllPrivateRegistry() ([]PrivateRegistry, error)

func (*StorageEtcd) LoadPrivateRegistry

func (storageEtcd *StorageEtcd) LoadPrivateRegistry(name string) (*PrivateRegistry, error)

func (*StorageEtcd) SavePrivateRegistry

func (storageEtcd *StorageEtcd) SavePrivateRegistry(privateRegistry *PrivateRegistry) error

Jump to

Keyboard shortcuts

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