storage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

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

func (FileSystem) Exists

func (s FileSystem) Exists() (bool, error)

func (FileSystem) Get

func (s FileSystem) Get() (metalink.Metalink, error)

func (FileSystem) Put

func (s FileSystem) Put(receipt metalink.Metalink) error

func (FileSystem) String

func (s FileSystem) String() string

type Storage

type Storage interface {
	String() string

	Exists() (bool, error)
	Get() (metalink.Metalink, error)
	Put(metalink.Metalink) error
}

func CreateFileSystem

func CreateFileSystem(fs boshsys.FileSystem, path string) (Storage, error)

type StorageFactory

type StorageFactory interface {
	New(string) (Storage, error)
}

func NewDefaultFactory

func NewDefaultFactory(fs boshsys.FileSystem) StorageFactory

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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