renderer

package
v0.8.92 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ChainloopPredicateTypeV1 = "chainloop.dev/attestation/v0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationRenderer

type AttestationRenderer struct {
	// contains filtered or unexported fields
}

func NewAttestationRenderer

func NewAttestationRenderer(state *v1.CraftingState, keyPath, builderVersion, builderDigest string, logger *zerolog.Logger) (*AttestationRenderer, error)

func (*AttestationRenderer) Render

func (ab *AttestationRenderer) Render() (*dsse.Envelope, error)

Attestation (dsee envelope) -> { message: { Statement(in-toto): [subject, predicate] }, signature: "sig" }. NOTE: It currently only supports cosign key based signing.

type ChainloopMaintainer

type ChainloopMaintainer struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type ChainloopMetadata

type ChainloopMetadata struct {
	Name          string     `json:"name"`
	Project       string     `json:"project"`
	Team          string     `json:"team"`
	InitializedAt *time.Time `json:"initializedAt"`
	FinishedAt    *time.Time `json:"finishedAt"`
	WorkflowRunID string     `json:"workflowRunID"`
	WorkflowID    string     `json:"workflowID"`
}

type ChainloopProvenanceM

type ChainloopProvenanceM struct {
	SLSA      *SLSACommonProvenanceMaterial `json:"slsa,omitempty"`
	StringVal string                        `json:"stringVal,omitempty"`
}

func (*ChainloopProvenanceM) String

func (m *ChainloopProvenanceM) String() string

type ChainloopProvenanceMaterial

type ChainloopProvenanceMaterial struct {
	Name     string                `json:"name"`
	Type     string                `json:"type"`
	Material *ChainloopProvenanceM `json:"material"`
}

type ChainloopProvenancePredicateV1

type ChainloopProvenancePredicateV1 struct {
	Metadata   *ChainloopMetadata             `json:"metadata"`
	Materials  []*ChainloopProvenanceMaterial `json:"materials,omitempty"`
	Builder    *slsacommon.ProvenanceBuilder  `json:"builder"`
	BuildType  string                         `json:"buildType"`
	Env        map[string]string              `json:"env,omitempty"`
	RunnerType string                         `json:"runnerType"`
	RunnerURL  string                         `json:"runnerURL,omitempty"`
}

type ChainloopRenderer

type ChainloopRenderer struct {
	// contains filtered or unexported fields
}

func (*ChainloopRenderer) Header

func (*ChainloopRenderer) Predicate

func (r *ChainloopRenderer) Predicate() (interface{}, error)

type SLSACommonProvenanceMaterial

type SLSACommonProvenanceMaterial struct {
	*slsacommon.ProvenanceMaterial
}

func (*SLSACommonProvenanceMaterial) String

func (m *SLSACommonProvenanceMaterial) String() (res string)

Jump to

Keyboard shortcuts

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