kii

package
v0.0.0-...-26d813d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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
const (
	ImageTypeStandard ImageType = "Standard" // Standard OCI image
	ImageTypeBuiltIn  ImageType = "BuiltIn"  // Built in image without layers
)

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.

Jump to

Keyboard shortcuts

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