attestation

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Location          string `json:"location,omitempty"`
	Name              string `json:"name,omitempty"`
	ResourceGroupName string `json:"resourceGroupName,omitempty"`
	SubscriptionId    string `json:"subscriptionId,omitempty"`
	VmId              string `json:"vmId,omitempty"`
	Token             string `json:"token,omitempty"`
}

func New

func New(domain, service, metaEndPoint, apiVersion, resourceUri string, identityDocument *IdentityDocument) (*Data, error)

New creates a new AttestationData with values fed to it

type IdentityDocument

type IdentityDocument struct {
	Location          string `json:"location,omitempty"`
	Name              string `json:"name,omitempty"`
	ResourceGroupName string `json:"resourceGroupName,omitempty"`
	SubscriptionId    string `json:"subscriptionId,omitempty"`
	VmId              string `json:"vmId,omitempty"`
	OsType            string `json:"osType,omitempty"`
	Tags              string `json:"tags,omitempty"`
	Document          []byte `json:"document,omitempty"`
	PrivateIp         string `json:"privateIp,omitempty"`
	PublicIp          string `json:"publicIp,omitempty"`
}

func GetIdentityDocument

func GetIdentityDocument(metaEndPoint, apiVersion string) (*IdentityDocument, error)

Jump to

Keyboard shortcuts

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