maven

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "maven"
	Type    = "https://witness.dev/attestations/maven/v0.1"
	RunType = attestation.PreMaterialRunType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor

type Attestor struct {
	XMLName      xml.Name          `xml:"project" json:"-"`
	GroupId      string            `xml:"groupId" json:"groupid"`
	ArtifactId   string            `xml:"artifactId" json:"artifactid"`
	Version      string            `xml:"version" json:"version"`
	ProjectName  string            `xml:"name" json:"projectname"`
	Dependencies []MavenDependency `xml:"dependencies>dependency" json:"dependencies"`
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Attestor

func (*Attestor) Attest

func (a *Attestor) Attest(ctx *attestation.AttestationContext) error

func (*Attestor) Name

func (a *Attestor) Name() string

func (*Attestor) RunType

func (a *Attestor) RunType() attestation.RunType

func (*Attestor) Subjects

func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet

func (*Attestor) Type

func (a *Attestor) Type() string

type MavenDependency

type MavenDependency struct {
	GroupId    string `xml:"groupId" json:"groupid"`
	ArtifactId string `xml:"artifactId" json:"artifactid"`
	Version    string `xml:"version" json:"version"`
	Scope      string `xml:"scope" json:"scope"`
}

type Option

type Option func(*Attestor)

func WithPom

func WithPom(path string) Option

Jump to

Keyboard shortcuts

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