layer

package
v0.0.0-...-02142e6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	Blob      []byte
	Digest    digest.Digest
	MediaType string
	Name      string
}

Layer represents a single layer: a compressed blob and a digest of the uncompressed blob

func LayerFromDirectory

func LayerFromDirectory(directory string, opts ...LayerOption) (*Layer, error)

LayerFromDirectory builds a single tgz image layer from a directory of files returns the gzip data in a byte buffer and the digest of the uncompressed files

type LayerOption

type LayerOption func(config *Layer)

func WithMediaType

func WithMediaType(mediaType string) LayerOption

func WithName

func WithName(name string) LayerOption

type Layers

type Layers []Layer

func (Layers) Digests

func (l Layers) Digests() (digests []digest.Digest)

Jump to

Keyboard shortcuts

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