Documentation ¶
Index ¶
- Constants
- func ReloadStorage(storageType int) error
- type DummyError
- type PrivateRegistry
- func (privateRegistry *PrivateRegistry) DeleteAllImageInRepository(repositoryName string) error
- func (privateRegistry *PrivateRegistry) DeleteImageInRepository(repositoryName string, tag string) error
- func (privateRegistry *PrivateRegistry) GetAllImageTag(repositoryName string) ([]string, error)
- func (privateRegistry *PrivateRegistry) GetAllRepository() ([]string, error)
- func (privateRegistry *PrivateRegistry) GetRepositoryPath(repositoryName string) string
- func (privateRegistry *PrivateRegistry) IsAvailable() error
- func (privateRegistry *PrivateRegistry) IsImageTagAvailable(repositoryName string, targetTag string) bool
- type Storage
- type StorageDummy
- func (storageDummy *StorageDummy) DeletePrivateRegistry(name string) error
- func (storageDummy *StorageDummy) LoadAllPrivateRegistry() ([]PrivateRegistry, error)
- func (storageDummy *StorageDummy) LoadPrivateRegistry(name string) (*PrivateRegistry, error)
- func (storageDummy *StorageDummy) SavePrivateRegistry(privateRegistry *PrivateRegistry) error
- func (storageDummy *StorageDummy) ShouldCheck() bool
- type StorageEtcd
- func (storageEtcd *StorageEtcd) DeletePrivateRegistry(name string) error
- func (storageEtcd *StorageEtcd) LoadAllPrivateRegistry() ([]PrivateRegistry, error)
- func (storageEtcd *StorageEtcd) LoadPrivateRegistry(name string) (*PrivateRegistry, error)
- func (storageEtcd *StorageEtcd) SavePrivateRegistry(privateRegistry *PrivateRegistry) error
Constants ¶
View Source
const (
AvailableTimeoutDuration = time.Second * 1
)
Variables ¶
This section is empty.
Functions ¶
func ReloadStorage ¶
Types ¶
type DummyError ¶
type DummyError struct {
// contains filtered or unexported fields
}
func (*DummyError) Error ¶
func (dummyError *DummyError) Error() string
type PrivateRegistry ¶
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
Click to show internal directories.
Click to hide internal directories.