registry

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeGit    = "git"
	TypeGitHub = "github"
)
View Source
const DefaultRegistryName = "official"
View Source
const DefaultRegistryURL = "https://github.com/buildpacks/registry-index"
View Source
const GitCommitTemplate = `{{ if .Yanked }}YANK{{else}}ADD{{end}} {{.Namespace}}/{{.Name}}@{{.Version}}`
View Source
const GithubIssueBodyTemplate = `` /* 127-byte string literal not displayed */
View Source
const GithubIssueTitleTemplate = "{{ if .Yanked }}YANK{{ else }}ADD{{ end }} {{.Namespace}}/{{.Name}}@{{.Version}}"

Variables

View Source
var Types = []string{
	TypeGit,
	TypeGitHub,
}

Functions

func ParseNamespaceName added in v1.5.1

func ParseNamespaceName(id string) (ns string, name string, err error)

ParseNamespaceName parses a buildpack ID into Namespace and Name

func Validate added in v1.5.1

func Validate(b Buildpack) error

Validate that a buildpack reference contains required information

Types

type Buildpack added in v1.5.1

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

Buildpack contains information about a buildpack stored in a Registry

type Cache added in v0.15.4

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

Cache is a RegistryCache

func NewDefaultRegistryCache added in v0.15.4

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

NewDefaultRegistryCache creates a new registry cache with default options

func NewRegistryCache added in v0.15.4

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

NewRegistryCache creates a new registry cache

func (*Cache) Commit added in v0.15.4

func (r *Cache) Commit(b Buildpack, username, msg string) error

Commit a Buildpack change

func (*Cache) CreateCache added in v0.15.4

func (r *Cache) CreateCache() error

CreateCache creates the cache on the filesystem

func (*Cache) Initialize added in v0.15.4

func (r *Cache) Initialize() error

Initialize a local Registry Cache

func (*Cache) LocateBuildpack added in v0.15.4

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

LocateBuildpack stored in registry

func (*Cache) Refresh added in v0.15.4

func (r *Cache) Refresh() error

Refresh local Registry Cache

type Entry added in v0.15.4

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