Documentation ¶
Index ¶
- func DependenciesForArtifact(ctx context.Context, a *latest.Artifact, insecureRegistries map[string]bool) ([]string, error)
- func TagWithDigest(tag, digest string) string
- func TagWithImageID(ctx context.Context, tag string, imageID string, ...) (string, error)
- type Artifact
- type ArtifactBuilder
- type Builder
- type ErrSyncMapNotSupported
- type Muted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DependenciesForArtifact ¶ added in v0.7.0
func DependenciesForArtifact(ctx context.Context, a *latest.Artifact, insecureRegistries map[string]bool) ([]string, error)
DependenciesForArtifact returns the dependencies for a given artifact.
func TagWithDigest ¶ added in v1.1.0
func TagWithImageID ¶ added in v1.1.0
Types ¶
type Artifact ¶ added in v0.8.0
Artifact is the result corresponding to each successful build.
func InParallel ¶ added in v0.11.0
func InParallel(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact, buildArtifact ArtifactBuilder, concurrency int) ([]Artifact, error)
InParallel builds a list of artifacts in parallel but prints the logs in sequential order.
func InSequence ¶ added in v0.11.0
func InSequence(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact, buildArtifact ArtifactBuilder) ([]Artifact, error)
InSequence builds a list of artifacts in sequence.
func MergeWithPreviousBuilds ¶ added in v0.27.0
MergeWithPreviousBuilds merges previous or prebuilt build artifacts with builds. If an artifact is already present in builds, the same artifact from previous will be replaced at the same position.
type ArtifactBuilder ¶ added in v1.7.1
type ArtifactBuilder func(ctx context.Context, out io.Writer, artifact *latest.Artifact, tag string) (string, error)
func WithLogFile ¶ added in v1.7.1
func WithLogFile(builder ArtifactBuilder, muted Muted) ArtifactBuilder
WithLogFile wraps an `artifactBuilder` so that it optionally outputs its logs to a file.
type Builder ¶
type Builder interface { Build(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact) ([]Artifact, error) // Prune removes images built with Skaffold Prune(context.Context, io.Writer) error }
Builder is an interface to the Build API of Skaffold. It must build and make the resulting image accessible to the cluster. This could include pushing to a authorized repository or loading the nodes with the image. If artifacts is supplied, the builder should only rebuild those artifacts.
type ErrSyncMapNotSupported ¶ added in v0.32.0
type ErrSyncMapNotSupported struct{}
func (ErrSyncMapNotSupported) Error ¶ added in v0.32.0
func (ErrSyncMapNotSupported) Error() string