gcpiit

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

	TokenUrl              = "" /* 150-byte string literal not displayed */
	InstanceMetadataUrl   = "http://metadata.google.internal/computeMetadata/v1/instance/"
	InstanceAttributesUrl = "http://metadata.google.internal/computeMetadata/v1/instance/attributes/"
	ProjectMetadataUrl    = "http://metadata.google.internal/computeMetadata/v1/project/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor

type Attestor struct {
	JWT                       *jwt.Attestor `json:"jwt"`
	ProjectID                 string        `json:"project_id"`
	ProjectNumber             string        `json:"project_number"`
	InstanceZone              string        `json:"zone"`
	InstanceID                string        `json:"instance_id"`
	InstanceHostname          string        `json:"instance_hostname"`
	InstanceCreationTimestamp string        `json:"instance_creation_timestamp"`
	InstanceConfidentiality   string        `json:"instance_confidentiality"`
	LicenceID                 []string      `json:"licence_id"`
	ClusterName               string        `json:"cluster_name"`
	ClusterUID                string        `json:"cluster_uid"`
	ClusterLocation           string        `json:"cluster_location"`
	// contains filtered or unexported fields
}

func New

func New() *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) Schema added in v0.4.0

func (a *Attestor) Schema() *jsonschema.Schema

func (*Attestor) Subjects

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

func (*Attestor) Type

func (a *Attestor) Type() string

type ErrNotGCPIIT

type ErrNotGCPIIT struct{}

func (ErrNotGCPIIT) Error

func (e ErrNotGCPIIT) Error() string

Jump to

Keyboard shortcuts

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