Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
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
Click to show internal directories.
Click to hide internal directories.