v1

package
v0.0.0-...-b47b284 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 30 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	AnnotationKeyAppServiceName       = "org.foundries.app.service.name"

	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 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 WithProxy

func WithProxy(proxy compose.ProxyProvider) 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
	Proxy          compose.ProxyProvider
}

type StoreType

type StoreType string

Jump to

Keyboard shortcuts

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