Documentation ¶
Index ¶
- Constants
- Variables
- func BuildKey(artifact config.Artifact) config.ResultKey
- func ConfigureDefaults()
- func ImageReferenceOf(img Image) config.Resolver
- func PublishKey(artifact config.Artifact) config.ResultKey
- type Binary
- type BinaryBuilder
- type Image
- type KoBuilder
- type KoPublisher
- type KoPublisherConfigurator
- type ListPublisher
- type Platform
Constants ¶
View Source
const ( // ResultBuilt is used to cache results of building the artifacts. ResultBuilt = "built" // ResultPublication is used to cache results of publication of artifacts. ResultPublication = "publication" // BinariesByPlatform is used to assign built binary to a platform. BinariesByPlatform = "binary.by-platform" )
View Source
const (
// ArtifactsBuilt is used to list artifacts that was built.
ArtifactsBuilt = "artifacts.built"
)
Variables ¶
View Source
var ( // ErrGoBuildFailed when go fails to build the project. ErrGoBuildFailed = errors.New("go build failed") // ErrInvalidArtifact when invalid type of artifact is given. ErrInvalidArtifact = errors.New("invalid artifact") )
View Source
var ErrKoFailed = errors.New("ko failed")
ErrKoFailed when th Google's ko fails to build.
View Source
var ErrMisconfiguration = errors.New("project configuration is faulty")
ErrMisconfiguration when the project configuration faulty.
Functions ¶
func ConfigureDefaults ¶
func ConfigureDefaults()
ConfigureDefaults will configure default builders and publishers to be used.
func ImageReferenceOf ¶
ImageReferenceOf will try to fetch an image reference from image build result.
Types ¶
type Image ¶
type Image struct { config.Metadata Labels map[string]config.Resolver Architectures []platform.Architecture }
Image is an OCI image that will be built from a binary.
type KoPublisher ¶
type KoPublisher struct {
Configurators []KoPublisherConfigurator
}
KoPublisher publishes images with Google's KO.
type KoPublisherConfigurator ¶
type KoPublisherConfigurator func(*options.PublishOptions) error
KoPublisherConfigurator is used to configure the publish options for KO.
type ListPublisher ¶
ListPublisher will output built artifacts as a "\n" delimited list in a result file.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.