alpine

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

README

Alpine Type Data Documentation

This document notes additional information (beyond that found in the Alpine schema) about the values associated with each field such as the format in which the data is stored and any necessary transformations.

Further information about pkginfo fields and the .PKGINFO file can be found on the Alpine documentation website.

The value of the publicKey content field ought to be Base64-encoded.

How do you identify an object as an Alpine object?

The "Body" field will include an "AlpineModel" field.

Documentation

Index

Constants

View Source
const (
	KIND = "alpine"
)

Variables

Functions

func New

func New() types.TypeImpl

Types

type BaseAlpineType

type BaseAlpineType struct {
	types.RekorType
}

func (*BaseAlpineType) CreateProposedEntry

func (bat *BaseAlpineType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error)

func (BaseAlpineType) DefaultVersion

func (bat BaseAlpineType) DefaultVersion() string

func (*BaseAlpineType) UnmarshalEntry

func (bat *BaseAlpineType) UnmarshalEntry(pe models.ProposedEntry) (types.EntryImpl, error)

type Package

type Package struct {
	Pkginfo   map[string]string // KVP pairs
	Signature []byte
	Datahash  []byte
	// contains filtered or unexported fields
}

func (*Package) Unmarshal

func (p *Package) Unmarshal(pkgReader io.Reader) error

func (Package) VerifySignature

func (p Package) VerifySignature(pub crypto.PublicKey) error

VerifySignature verifies the signature of the alpine package using the provided public key. It returns an error if verification fails, or nil if it is successful.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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