Documentation
¶
Index ¶
- Constants
- func InstallApp(ctx context.Context, app compose.App, provider compose.BlobProvider, ...) error
- func MakeAkliteHappy(ctx context.Context, store compose.AppStore, app compose.App, ...) error
- func NewAppLoader() compose.AppLoader
- func NewAppStore(root string, platform ocispec.Platform, skopeoStoreAware ...bool) (compose.AppStore, error)
- func NewDefaultConfig(options ...ConfigOpt) (*compose.Config, error)
- func ReadAppManifest(ctx context.Context, provider compose.BlobProvider, ref string) (*appCtx, *ocispec.Descriptor, error)
- type ConfigOpt
- type ConfigOpts
- type StoreType
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 MakeAkliteHappy ¶
func NewAppLoader ¶
func NewAppStore ¶
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 WithConnectTimeout ¶
func WithSkopeoSupport ¶
func WithStoreRoot ¶
func WithUpdateDB ¶
type ConfigOpts ¶
Click to show internal directories.
Click to hide internal directories.