Documentation
¶
Overview ¶
Package catalog verifies the signed metadata and content digests used for independently released plugin executables.
Index ¶
Constants ¶
const (
MaxArtifactBytes = 128 << 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Version int `json:"version"`
Channel string `json:"channel"`
Sequence uint64 `json:"sequence"`
GeneratedAt time.Time `json:"generated_at"`
Plugins []Entry `json:"plugins"`
}
type ConfigSchemaDeclaration ¶
type ConfigSchemaDeclaration = configschema.Declaration
type Entry ¶
type Entry struct {
ID string `json:"id"`
Version string `json:"version"`
OS string `json:"os"`
Arch string `json:"arch"`
URL string `json:"url"`
SHA256 string `json:"sha256"`
CompressedSize int64 `json:"compressed_size"`
ArchiveFormat string `json:"archive_format"`
Executable string `json:"executable"`
Manifest string `json:"manifest"`
}
type PackageManifest ¶
type PackageManifest struct {
ID string `json:"id"`
Version string `json:"version"`
ProtocolVersion string `json:"protocol_version"`
Executable string `json:"executable"`
ExecutableSHA256 string `json:"executable_sha256"`
ExecutableSize int64 `json:"executable_size"`
ExecutionModes []protocol.ExecutionMode `json:"execution_modes"`
Channels []protocol.Channel `json:"channels"`
Operations []protocol.OperationDescriptor `json:"operations,omitempty"`
ConfigSchema *configschema.Declaration `json:"config_schema,omitempty"`
Assets []assets.Declaration `json:"assets"`
}
PackageManifest is transitively authenticated by the signed catalog's artifact digest and supplies runtime plugin and asset declarations.
func VerifyPackageManifest ¶
func VerifyPackageManifest(data []byte, entry Entry, root string) (PackageManifest, error)
VerifyPackageManifest strictly binds extracted declarations to the catalog entry.