Documentation ¶
Index ¶
- Constants
- func CreateBrowserCmd(browserURL, os string) (*exec.Cmd, error)
- func GetIssueURL(githubURL string) (*url.URL, error)
- func GitCommit(b Buildpack, username string, registryCache Cache) error
- func IndexPath(rootDir, ns, name string) (string, error)
- func ParseNamespaceName(id string) (ns string, name string, err error)
- func Validate(b Buildpack) error
- type Buildpack
- type Cache
- type Entry
- type GithubIssue
Constants ¶
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 ¶
This section is empty.
Functions ¶
func CreateBrowserCmd ¶ added in v0.13.0
func IndexPath ¶ added in v0.14.0
IndexPath resolves the path for a specific namespace and name of buildpack
func ParseNamespaceName ¶ added in v0.13.0
ParseNamespaceName parses a buildpack ID into Namespace and Name
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,omitempty"` }
Buildpack contains information about a buildpack stored in a Registry
type Cache ¶
Cache is a RegistryCache
func NewDefaultRegistryCache ¶
NewDefaultRegistryCache creates a new registry cache with default options
func NewRegistryCache ¶
NewRegistryCache creates a new registry cache
func (*Cache) CreateCache ¶ added in v0.14.0
CreateCache creates the cache on the filesystem
func (*Cache) LocateBuildpack ¶
LocateBuildpack stored in registry
type Entry ¶
type Entry struct {
Buildpacks []Buildpack `json:"buildpacks"`
}
Entry is a list of buildpacks stored in a registry
type GithubIssue ¶ added in v0.13.0
func CreateGithubIssue ¶ added in v0.13.0
func CreateGithubIssue(b Buildpack) (GithubIssue, error)
Click to show internal directories.
Click to hide internal directories.