Documentation
¶
Overview ¶
Package write provides functionality to write files with image digests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposefileWriter ¶
type ComposefileWriter struct {
DockerfileWriter *DockerfileWriter
ExcludeTags bool
Directory string
}
ComposefileWriter contains information for writing new Composefiles.
func (*ComposefileWriter) WriteFiles ¶
func (c *ComposefileWriter) WriteFiles( pathImages map[string][]*parse.ComposefileImage, done <-chan struct{}, ) <-chan *WrittenPath
WriteFiles writes new Composefiles and Dockerfiles referenced by the Composefiles given the paths of the original Composefiles and new images that should replace the exsting ones.
type DockerfileWriter ¶
DockerfileWriter contains information for writing new Dockerfiles.
func (*DockerfileWriter) WriteFiles ¶
func (d *DockerfileWriter) WriteFiles( pathImages map[string][]*parse.DockerfileImage, done <-chan struct{}, ) <-chan *WrittenPath
WriteFiles writes new Dockerfiles given the paths of the original Dockerfiles and new images that should replace the exsting ones.
type IComposefileWriter ¶
type IComposefileWriter interface {
WriteFiles(
pathImages map[string][]*parse.ComposefileImage,
done <-chan struct{},
) <-chan *WrittenPath
}
IComposefileWriter provides an interface for ComposefileWriter's exported methods.
type IDockerfileWriter ¶
type IDockerfileWriter interface {
WriteFiles(
pathImages map[string][]*parse.DockerfileImage,
done <-chan struct{},
) <-chan *WrittenPath
}
IDockerfileWriter provides an interface for DockerfileWriter's exported methods.
type WrittenPath ¶
WrittenPath contains information linking a newly written file and its original.