write

package
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

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

type DockerfileWriter struct {
	ExcludeTags bool
	Directory   string
}

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

type WrittenPath struct {
	OriginalPath string
	Path         string
	Err          error
}

WrittenPath contains information linking a newly written file and its original.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL