attestation

package
v1.9.24 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 5 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, sysLogger io.Writer) (*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, sysLogger io.Writer) (*IdentityDocument, error)

Jump to

Keyboard shortcuts

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