manifests

package
v0.0.0-...-5ce31cb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigDescriptor

type ConfigDescriptor struct {
	Descriptor
}

func (ConfigDescriptor) Dump

func (cd ConfigDescriptor) Dump(prefix string)

type ContainerConfig

type ContainerConfig struct {
	User         string
	Memory       int64
	MemorySwap   int64
	CpuShares    int64
	ExposedPorts map[string]struct{}
	Env          []string
	Entrypoint   []string
	Cmd          []string
	Healthcheck  HealthConfig
	Volumes      map[string]struct{}
	WorkingDir   string
	Labels       map[string]string
	StopSignal   string
}

func (ContainerConfig) Dump

func (cc ContainerConfig) Dump(prefix string)

type Descriptor

type Descriptor struct {
	MediaType string        `json:"mediaType"`
	Size      int64         `json:"size"`
	Digest    digest.Digest `json:"digest"`
}

func (Descriptor) String

func (d Descriptor) String() string

type FSLayer

type FSLayer struct {
	BlobSum string `json:"blobSum"`
}

func (FSLayer) Dump

func (fsl FSLayer) Dump(prefix string)

type HealthConfig

type HealthConfig struct {
	Test     []string
	Interval int
	Timeout  int
	Retries  int
}

func (HealthConfig) Dump

func (hc HealthConfig) Dump(prefix string)

type History

type History struct {
	Created    time.Time `json:"created"`
	Author     string    `json:"author"`
	CreatedBy  string    `json:"created_by"`
	Comment    string    `json:"comment"`
	EmptyLayer bool      `json:"empty_layer"`
}

func (History) Dump

func (h History) Dump(prefix string, secondPrefix string)

type ImageConfig

type ImageConfig struct {
	Created      time.Time       `json:"created"`
	Author       string          `json:"author"`
	Architecture string          `json:"architecture"`
	OS           string          `json:"os"`
	Config       ContainerConfig `json:"config"`
	RootFS       RootFS          `json:"rootfs"`
	History      []History       `json:"history"`
}

func (ImageConfig) Dump

func (ic ImageConfig) Dump(prefix string)

type LayerDescriptor

type LayerDescriptor struct {
	Descriptor
	URLs []string `json:"urls"`
}

func (LayerDescriptor) Dump

func (ld LayerDescriptor) Dump(prefix string, secondPrefix string)

type ManifestDescriptor

type ManifestDescriptor struct {
	Descriptor
	Platform PlatformSpec `json:"platform"`
}

func (ManifestDescriptor) Dump

func (md ManifestDescriptor) Dump(prefix string)

type ManifestList

type ManifestList struct {
	SchemaVersion int                  `json:"schemaVersion"`
	MediaType     string               `json:"mediaType"`
	Manifests     []ManifestDescriptor `json:"manifests"`
}

func (ManifestList) Dump

func (ml ManifestList) Dump(prefix string, repoName string)

type PlatformSpec

type PlatformSpec struct {
	Architecture string   `json:"architecture"`
	OS           string   `json:"os"`
	OSVersion    string   `json:"os.version"`
	OSFeatures   []string `json:"os.features"`
	Variant      string   `json:"variant"`
	Features     []string `json:"features"`
}

func (PlatformSpec) Dump

func (ps PlatformSpec) Dump(prefix string)

type RootFS

type RootFS struct {
	Type    string   `json:"type"`
	DiffIDs []string `json:"diff_ids"`
}

func (RootFS) Dump

func (rfs RootFS) Dump(prefix string)

type Schema1

type Schema1 struct {
	Name         string           `json:"name"`
	Tag          string           `json:"tag"`
	Architecture string           `json:"architecture"`
	FSLayers     []FSLayer        `json:"fsLayers"`
	History      []Schema1History `json:"history"`
}

func (Schema1) Dump

func (s Schema1) Dump(prefix string)

type Schema1History

type Schema1History struct {
	V1Compatibility string `json:"v1Compatibility"`
}

func (Schema1History) Dump

func (h Schema1History) Dump(prefix string)

type Schema2

type Schema2 struct {
	SchemaVersion int               `json:"schemaVersion"`
	MediaType     string            `json:"mediaType"`
	Config        ConfigDescriptor  `json:"config"`
	Layers        []LayerDescriptor `json:"layers"`
}

func (Schema2) Dump

func (s Schema2) Dump(prefix string, config ImageConfig)

Jump to

Keyboard shortcuts

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