registry

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSignedURL

func GenerateSignedURL(bucket string, objectReference string, secretCli *secretmanager.Client, secret string) (string, error)

Types

type Factory

type Factory interface {
	CreateRegistry() Registry
}

func GetFactory

func GetFactory(logger *zap.SugaredLogger, configuration configs.StorageConfiguration) Factory

type GCSFactory

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

func (*GCSFactory) CreateRegistry

func (f *GCSFactory) CreateRegistry() Registry

type GCStorage

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

func NewGCStorage

func NewGCStorage(logger *zap.SugaredLogger, storageCli *storage.Client, secretCli *secretmanager.Client, configuration configs.GCSConfiguration) *GCStorage

func (GCStorage) GetAllProjectPackages

func (s GCStorage) GetAllProjectPackages() []Package

func (GCStorage) GetAllProjects

func (s GCStorage) GetAllProjects() []Project

func (GCStorage) String

func (s GCStorage) String() string

type Package

type Package struct {
	Filename string
	URI      string
}

func (Package) HexEncodedHash

func (p Package) HexEncodedHash() string

type Project

type Project string

func (Project) Normalize

func (p Project) Normalize() string

Normalize simple getter of Package.

type Registry

type Registry interface {
	// GetAllProjects return all unique projects stored in the repository.
	GetAllProjects() []Project

	// GetAllProjectPackages returns all packages saved in storage.
	GetAllProjectPackages() []Package
}

Jump to

Keyboard shortcuts

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