Documentation
¶
Index ¶
- 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, rootStorageKey basespec.StorageKey) error
- func (a *Adapter) RemovePackage(ctx context.Context, value source.Source, address source.ManagedPackageAddress, ...) error
- func (a *Adapter) ResolveLocalPath(ctx context.Context, value source.Source, locator basespec.Locator) (string, error)
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 (*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
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 ¶
Click to show internal directories.
Click to hide internal directories.