storage

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageManager

type StorageManager interface {
	// StoreApplication save all files in their corresponding path
	StoreApplication(repo string, name string, version string, files []*entities.FileInfo) error
	// GetApplication returns the application files
	GetApplication(repo string, name string, version string, compressed bool) ([]*entities.FileInfo, error)
	// RemoveApplication removes an application, returns an error if it does not exist
	RemoveApplication(repo string, name string, version string) error
	// ApplicationExists checks if an application exists
	ApplicationExists(repo string, name string, version string) (bool, error)
	// CreateRepository creates a directory to storage a repository
	CreateRepository(name string) error
	// RepositoryExists checks if a repository exists
	RepositoryExists(name string) (bool, error)
	// RemoveRepository removes the repository directory. Be careful using this function
	RemoveRepository(name string) error
}

func NewStorageManager

func NewStorageManager(basePath string) StorageManager

Jump to

Keyboard shortcuts

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