v1

package
v0.0.0-...-dd07e7f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: BSD-3-Clause Imports: 29 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppManifestMediaType   = "application/vnd.oci.image.manifest.v1+json"
	AppManifestMaxSize     = 50 * 1024
	AppComposeMaxSize      = 1024 * 1024
	AppBundleFileMaxSize   = 1024*1024*1024 - AppComposeMaxSize
	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"

	StoreTypeSkopeo     = "skopeo store"
	StoreTypeComposeCtl = "composectl store"
)
View Source
const (
	DefaultRootDir        = ".composeapps"
	DefaultStoreDir       = "store"
	DefaultComposeDir     = "projects"
	DefaultConnectTimeout = time.Duration(120) * time.Second
	DefaultReadTimeout    = time.Duration(900) * time.Second
	DefaultDBFileName     = "updates.db"
)
View Source
const (
	BlobProviderTypeAppStore compose.BlobProviderType = "blob-provider:app-store"
)

Variables

This section is empty.

Functions

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, skopeoStoreAware ...bool) (compose.AppStore, error)

func NewDefaultConfig

func NewDefaultConfig(options ...ConfigOpt) (*compose.Config, error)

func ReadAppManifest

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

Types

type ConfigOpt

type ConfigOpt func(*ConfigOpts)

func WithComposeRoot

func WithComposeRoot(composeRoot string) ConfigOpt

func WithConnectTimeout

func WithConnectTimeout(timeout time.Duration) ConfigOpt

func WithSkopeoSupport

func WithSkopeoSupport(skopeoSupport bool) ConfigOpt

func WithStoreRoot

func WithStoreRoot(storeRoot string) ConfigOpt

func WithUpdateDB

func WithUpdateDB(dbPath string) ConfigOpt

type ConfigOpts

type ConfigOpts struct {
	StoreRoot      string
	ComposeRoot    string
	ConnectTimeout time.Duration
	ReadTimeout    time.Duration
	SkopeoSupport  bool
	UpdateDBPath   string
}

type StoreType

type StoreType string

Jump to

Keyboard shortcuts

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