Documentation ¶
Index ¶
- Variables
- func GetDependencies(ctx context.Context, workspace string, a *latest.BuildpackArtifact) ([]string, error)
- func GetEnv(a *latest.Artifact, mode config.RunMode) (map[string]string, error)
- func NewLogger(out io.Writer) logging.Logger
- func SyncRules(labels map[string]string) ([]*latest.SyncRule, error)
- type ArtifactConfig
- type Builder
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "Buildpacks"
Name is the name of the Buildpack builder
View Source
var (
Validate = validate
)
For testing
Functions ¶
func GetDependencies ¶
func GetDependencies(ctx context.Context, workspace string, a *latest.BuildpackArtifact) ([]string, error)
GetDependencies returns dependencies listed for a buildpack artifact
Types ¶
type ArtifactConfig ¶ added in v1.2.0
type ArtifactConfig struct { File string `json:"path,omitempty"` Builder string `json:"builder,omitempty"` }
ArtifactConfig holds information about a Buildpack project
func (ArtifactConfig) ArtifactType ¶ added in v1.6.0
func (c ArtifactConfig) ArtifactType() latest.ArtifactType
ArtifactType returns the type of the artifact to be built.
func (ArtifactConfig) ConfiguredImage ¶ added in v1.2.0
func (c ArtifactConfig) ConfiguredImage() string
ConfiguredImage returns the target image configured by the builder, or empty string if no image is configured
func (ArtifactConfig) Describe ¶ added in v1.2.0
func (c ArtifactConfig) Describe() string
Describe returns the initBuilder's string representation, used when prompting the user to choose a builder.
func (ArtifactConfig) Name ¶ added in v1.2.0
func (c ArtifactConfig) Name() string
Name returns the name of the builder
func (ArtifactConfig) Path ¶ added in v1.2.0
func (c ArtifactConfig) Path() string
Path returns the path to the build definition
type Builder ¶ added in v1.1.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is an artifact builder that uses buildpacks
func NewArtifactBuilder ¶
func NewArtifactBuilder(localDocker docker.LocalDaemon, pushImages bool, mode config.RunMode) *Builder
NewArtifactBuilder returns a new buildpack artifact builder
Click to show internal directories.
Click to hide internal directories.