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 (*Attestor) Attest ¶
func (a *Attestor) Attest(ctx *attestation.AttestationContext) error
func (*Attestor) RunType ¶
func (a *Attestor) RunType() attestation.RunType
type ErrNotGCPIIT ¶
type ErrNotGCPIIT struct{}
func (ErrNotGCPIIT) Error ¶
func (e ErrNotGCPIIT) Error() string
Click to show internal directories.
Click to hide internal directories.