fioapp

package
v0.0.0-...-c2817f9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppLayers

func GetAppLayers(ctx context.Context, services map[string]types.ServiceConfig, archList []string) (map[string][]distribution.Descriptor, error)

func GetAppLayersFromMap

func GetAppLayersFromMap(ctx context.Context, svcImages map[string]string, archList []string) (map[string][]distribution.Descriptor, error)

func GetAppLayersMeta

func GetAppLayersMeta(layersMetaFile string, appLayers map[string][]distribution.Descriptor) ([]byte, error)

func GetBlobService

func GetBlobService(ctx context.Context, regClient internal.RegistryClient, repoRef reference.Named) (distribution.BlobStore, error)

func GetLayers

func GetLayers(ctx context.Context, services map[string]interface{}, archList []string) (map[string][]distribution.Descriptor, error)

func GetManifestService

func GetManifestService(ctx context.Context, regClient internal.RegistryClient, repoRef reference.Named) (distribution.ManifestService, error)

func PostAppLayersManifests

func PostAppLayersManifests(ctx context.Context, appRef string, layers map[string][]distribution.Descriptor, dryRun bool) ([]distribution.Descriptor, error)

Types

type ArchLayersMeta

type ArchLayersMeta struct {
	FsBlockSize uint32                      `json:"fs_block_size"`
	Layers      map[digest.Digest]LayerMeta `json:"layers"`
}

type ArchManifestServices

type ArchManifestServices map[string]map[distribution.ManifestService]digest.Digest

type LayerMeta

type LayerMeta struct {
	Size        int64 `json:"size"`
	Usage       int64 `json:"usage"`
	ArchiveSize int64 `json:"archive_size,omitempty"`
}

type LayersMeta

type LayersMeta map[string]ArchLayersMeta

Jump to

Keyboard shortcuts

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