Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buildpack ¶
type Buildpack struct {
ID string `json:"id"`
Version string `json:"version"`
Latest bool `json:"latest"`
}
Buildpack has the information from a Buildpack Builder.
type Client ¶
type Client interface {
doctor.Diagnosable
// List lists the buildpacks available on the given builder image.
List(builderImage string) ([]Buildpack, error)
// Stacks lists the stacks available on the given builder image.
Stacks(builderImage string) ([]string, error)
}
Client is the main interface for interacting with Buildpacks.
func NewClient ¶
func NewClient( imageFetcher RemoteImageFetcher, ) Client
NewClient creates a new Client.
type RemoteImageFetcher ¶
type RemoteImageFetcher func(ref name.Reference, options ...remote.ImageOption) (gcrv1.Image, error)
RemoteImageFetcher is implemented by github.com/google/go-containerregistry/pkg/v1/remote.Image
Click to show internal directories.
Click to hide internal directories.