Documentation
¶
Index ¶
- Constants
- func ValidatePackagePublication(publication source.ManagedPackagePublication) error
- type Adapter
- func (a *Adapter) BootstrapManagedSource(ctx context.Context, value source.Source) error
- func (a *Adapter) DiscardBootstrappedManagedSource(ctx context.Context, value source.Source) error
- func (*Adapter) Kind() basespec.SourceKind
- func (*Adapter) NormalizeConfig(ctx context.Context, raw json.RawMessage) (json.RawMessage, error)
- func (a *Adapter) Open(ctx context.Context, value source.Source) (source.Snapshot, error)
- func (a *Adapter) PublishPackage(ctx context.Context, value source.Source, ...) (string, error)
- func (a *Adapter) RemoveManagedRoot(ctx context.Context, rootID basespec.RootID) error
- func (a *Adapter) RemovePackage(ctx context.Context, value source.Source, directory basespec.Locator, ...) error
- func (a *Adapter) ResolveLocalPath(ctx context.Context, value source.Source, locator basespec.Locator) (string, error)
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 (*Adapter) BootstrapManagedSource ¶
func (*Adapter) DiscardBootstrappedManagedSource ¶
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) PublishPackage ¶
func (*Adapter) RemoveManagedRoot ¶ added in v0.2.15
RemoveManagedRoot removes all managed Source directories below one application-owned Root. "system.Components" authorizes this operation before it reaches the adapter.
func (*Adapter) RemovePackage ¶
Click to show internal directories.
Click to hide internal directories.