Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V1Exporter ¶
type V1Exporter struct {
AllPlatforms bool
}
V1Exporter implements OCI Image Spec v1. It is up to caller to put "org.opencontainers.image.ref.name" annotation to desc.
TODO(AkihiroSuda): add V1Exporter{TranslateMediaTypes: true} that transforms media types,
e.g. application/vnd.docker.image.rootfs.diff.tar.gzip -> application/vnd.oci.image.layer.v1.tar+gzip
func DefaultV1Exporter ¶
func DefaultV1Exporter() *V1Exporter
DefaultV1Exporter return a default V1Exporter pointer
func ResolveV1ExportOpt ¶
func ResolveV1ExportOpt(opts ...V1ExporterOpt) (*V1Exporter, error)
ResolveV1ExportOpt return a new V1Exporter with V1ExporterOpt
type V1ExporterOpt ¶
type V1ExporterOpt func(c *V1Exporter) error
V1ExporterOpt allows the caller to set additional options to a new V1Exporter
func WithAllPlatforms ¶
func WithAllPlatforms(allPlatforms bool) V1ExporterOpt
WithAllPlatforms set V1Exporter`s AllPlatforms option
Click to show internal directories.
Click to hide internal directories.