v1

package
v0.0.0-...-ab20bf9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppManifestMediaType   = "application/vnd.oci.image.manifest.v1+json"
	AppManifestMaxSize     = 50 * 1024
	AppBundleFileMaxSize   = 1024 * 1024 * 1024
	AppComposeMaxSize      = 100 * 1024
	AppBundleMaxSize       = AppComposeMaxSize + AppBundleFileMaxSize
	AppLayerMediaType      = "application/octet-stream"
	AppLayersMetaVersion   = "v1"
	AppServiceHashLabelKey = "io.compose-spec.config-hash"

	AnnotationKeyAppBundleIndexDigest = "org.foundries.app.bundle.index.digest"
	AnnotationKeyAppBundleIndexSize   = "org.foundries.app.bundle.index.size"
)

Variables

View Source
var (
	ErrAppIndexNotFound = errors.New("app blob index is not found")
)

Functions

func GetAppRef

func GetAppRef(ctx context.Context) *compose.AppRef

func InstallApp

func InstallApp(ctx context.Context, app compose.App, provider compose.BlobProvider, blobRoot string, composeRoot string, dockerHost string) error

func MakeAkliteHappy

func MakeAkliteHappy(ctx context.Context, store compose.AppStore, app compose.App, platformMatcher platforms.MatchComparer) error

func NewAppLoader

func NewAppLoader() compose.AppLoader

func NewAppStore

func NewAppStore(root string, platform ocispec.Platform) (compose.AppStore, error)

func ReadAppManifest

func ReadAppManifest(ctx context.Context, provider compose.BlobProvider, ref string) (*appCtx, *ocispec.Descriptor, error)

func WithAppRef

func WithAppRef(ctx context.Context, ref *compose.AppRef) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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