alpine

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

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