store

package
v0.0.0-...-1298597 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrManifestNotFound = errors.New("manifest not found")
)

Functions

func Lock

func Lock(filename string) error

func UnLock

func UnLock(filename string) error

Types

type LocalManifestStore

type LocalManifestStore struct {
	StorePath string
}

func (*LocalManifestStore) Get

func (s *LocalManifestStore) Get(clusterName string) (*topologyyaml.Topology, error)

func (*LocalManifestStore) List

func (s *LocalManifestStore) List() ([]string, error)

func (*LocalManifestStore) Remove

func (s *LocalManifestStore) Remove(clusterName string) error

func (*LocalManifestStore) Save

func (s *LocalManifestStore) Save(clusterName string, topo topologyyaml.Topology) error

type ManifestStore

type ManifestStore interface {
	Save(clusterName string, topo topologyyaml.Topology) error
	Get(clusterName string) (*topologyyaml.Topology, error)
	Remove(clusterName string) error
	// List returns a list of cluster names
	List() ([]string, error)
}

ManifestStore saves cluster metadata, such as topology.yaml

func NewLocalManifestStore

func NewLocalManifestStore(storePath string) ManifestStore

type PackageStore

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

PackageStore saves downloaded packages locally

func NewPackageStore

func NewPackageStore(storePath string) *PackageStore

func (*PackageStore) Download

func (s *PackageStore) Download(_ context.Context, srcURL string, digest digest.Digest) error

func (*PackageStore) GetLocalCachePath

func (s *PackageStore) GetLocalCachePath(digest digest.Digest) (string, error)

Jump to

Keyboard shortcuts

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