registry

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buildpack

type Buildpack struct {
	Namespace string `json:"ns"`
	Name      string `json:"name"`
	Version   string `json:"version"`
	Yanked    bool   `json:"yanked"`
	Address   string `json:"addr"`
}

Buildpack contains information about a buildpack stored in a Registry

func (*Buildpack) Validate

func (b *Buildpack) Validate() error

Validate that a buildpack reference contains required information

type Cache

type Cache struct {
	Root string
	// contains filtered or unexported fields
}

Cache is a RegistryCache

func NewDefaultRegistryCache

func NewDefaultRegistryCache(logger logging.Logger, home string) (Cache, error)

NewDefaultRegistryCache creates a new registry cache with default options

func NewRegistryCache

func NewRegistryCache(logger logging.Logger, home, registryURL string) (Cache, error)

NewRegistryCache creates a new registry cache

func (*Cache) Initialize

func (r *Cache) Initialize() error

Initialize a local Registry Cache

func (*Cache) LocateBuildpack

func (r *Cache) LocateBuildpack(bp string) (Buildpack, error)

LocateBuildpack stored in registry

func (*Cache) Refresh

func (r *Cache) Refresh() error

Refresh local Registry Cache

type Entry

type Entry struct {
	Buildpacks []Buildpack `json:"buildpacks"`
}

Entry is a list of buildpacks stored in a registry

Jump to

Keyboard shortcuts

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