managed

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePackagePublication added in v0.2.14

func ValidatePackagePublication(
	publication source.ManagedPackagePublication,
) error

ValidatePackagePublication applies managed-directory-specific checks before callers persist Artifact metadata or start an external publication step.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter stores each managed Source beneath:

<base>/<root-storage-key>/<source-storage-key>

A package below that source root is addressed generically as:

<package-kind>/<name>/<version>

Artifact families own package-kind values and all package-internal file conventions. This adapter owns no artifact-family directory or filename.

func New

func New(
	base string,
	stagingBase string,
) (*Adapter, error)

func (*Adapter) BootstrapManagedSource

func (a *Adapter) BootstrapManagedSource(
	ctx context.Context,
	value source.Source,
) error

func (*Adapter) DiscardBootstrappedManagedSource

func (a *Adapter) DiscardBootstrappedManagedSource(
	ctx context.Context,
	value source.Source,
) error

func (*Adapter) Kind

func (*Adapter) Kind() basespec.SourceKind

func (*Adapter) NormalizeConfig

func (*Adapter) NormalizeConfig(
	ctx context.Context,
	raw json.RawMessage,
) (json.RawMessage, error)

func (*Adapter) Open

func (a *Adapter) Open(
	ctx context.Context,
	value source.Source,
) (source.Snapshot, error)

func (*Adapter) PublishPackage

func (a *Adapter) PublishPackage(
	ctx context.Context,
	value source.Source,
	publication source.ManagedPackagePublication,
) (string, error)

func (*Adapter) RemoveManagedRoot added in v0.2.15

func (a *Adapter) RemoveManagedRoot(
	ctx context.Context,
	rootStorageKey basespec.StorageKey,
) error

RemoveManagedRoot removes all managed Source directories below one application-owned Root. "system.Components" authorizes this operation before it reaches the adapter.

func (*Adapter) RemovePackage

func (a *Adapter) RemovePackage(
	ctx context.Context,
	value source.Source,
	address source.ManagedPackageAddress,
	expectedGeneration string,
) error

func (*Adapter) ResolveLocalPath

func (a *Adapter) ResolveLocalPath(
	ctx context.Context,
	value source.Source,
	locator basespec.Locator,
) (string, error)

Jump to

Keyboard shortcuts

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