managed

package
v0.2.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Kind basespec.SourceKind = "managed-directory"
)

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-id>/<source-id>

The physical path remains private Source configuration derived by the adapter. It is never placed in Source.Config, portable definitions, or API projections.

func New

func New(base 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,
	rootID basespec.RootID,
) 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,
	directory basespec.Locator,
	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