Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrManifestNotFound = errors.New("manifest not found")
)
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.