kii

package
v0.0.0-...-89e5b94 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ImageTypeStandard = "Standard" // Standard OCI image
	ImageTypeBuiltIn  = "BuiltIn"  // Built in image without layers
)

Variables

This section is empty.

Functions

func FormatImageID

func FormatImageID(id string) string

Types

type ImageName

type ImageName struct {
	Image string
	Repo  string
	Tag   string
}

func NewImageName

func NewImageName(image string) (*ImageName, error)

func ParseImageNameFromPath

func ParseImageNameFromPath(path string) (*ImageName, error)

type ImageType

type ImageType string

type Manifest

type Manifest struct {
	// Created is the combined date and time at which the image was created,
	// formatted as defined by RFC 3339, section 5.6.
	Created *time.Time `json:"created,omitempty"`

	// Author defines the name and/or email address of the person or entity which created
	// and is responsible for maintaining the image.
	Author string `json:"author,omitempty,omitempty"`

	// Architecture is the CPU architecture which the binaries in this image are built to run on.
	Architecture string `json:"architecture,omitempty"`

	// OS is the name of the operating system which the image is built to run on.
	OS string `json:"os,omitempty"`

	// Config defines the execution parameters which should be used as a base when
	// running a container using the image.
	Config oci.ImageConfig `json:"config,omitempty"`

	// total size of all layer
	Size int64 `json:"size"`

	// Layers is an indexed list of layers referenced by the manifest.
	// order: lowest -> highest
	Layers []string `json:"layers"`
	ID     string   `json:"id"`

	// Type defines the type of the image. Default is Standard.
	Type ImageType `json:"type"`
}

Manifest provides information about image.

type MountType

type MountType string
const (
	// Plain unpacks all layers to same directory, override files with same filename
	Plain MountType = "plain"
)

Jump to

Keyboard shortcuts

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