v2_2

package
v0.0.0-...-1858810 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MediaType string
	Digest    string
	Size      int
	Platform  Platform
}

type Layer

type Layer struct {
	MediaType string   `json:"mediaType"`
	Size      int      `json:"size"`
	Digest    string   `json:"digest"`
	Urls      []string `json:"urls,omitempty"` /*Кейс с urls - очень редкий. TODO: Добавить возможность скачивать с других адресов
	  С возможностью указаний где хранится другой кусок и сколько байтов в этом куске*/
}

type List

type List struct {
	SchemaVersion string
	MediaType     string
	Manifests     []Config
}

type Manifest

type Manifest struct {
	SchemaVersion int            `json:"schemaVersion"`
	MediaType     string         `json:"mediaType"`
	Config        ManifestConfig `json:"config"`
	Layers        []Layer        `json:"layers"`
}

func (*Manifest) GetLength

func (m *Manifest) GetLength() int

type ManifestConfig

type ManifestConfig struct {
	MediaType string `json:"mediaType"`
	Digest    string `json:"digest"`
	Size      int    `json:"size,omitempty"`
}

type Platform

type Platform struct {
	Architecture string
	OS           string
	OSVersion    string
	OSFeatures   []string
	Variant      string
	Features     string
}

Jump to

Keyboard shortcuts

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