metadata

package
v0.0.397 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTokenFromSpec

func FetchTokenFromSpec(ctx context.Context, specData string) (string, error)

func FetchValueFromSpec

func FetchValueFromSpec(ctx context.Context, specData string, key string) (string, error)

Types

type InstanceMetadata added in v0.0.329

type InstanceMetadata struct {
	Version          string `json:"version,omitempty"`
	InstanceEndpoint string `json:"instance_endpoint,omitempty"`
	Certs            struct {
		PublicPemPath     string `json:"public_pem_path,omitempty"`
		PrivateKeyPath    string `json:"private_key_path,omitempty"`
		HostPublicPemPath string `json:"host_public_pem_path,omitempty"`
	} `json:"certs,omitempty"`
}

func InstanceMetadataFromFile added in v0.0.329

func InstanceMetadataFromFile() (InstanceMetadata, error)

type MetadataSpec

type MetadataSpec struct {
	Version     string `json:"version,omitempty"`
	MetadataURL string `json:"metadata_url,omitempty"`
	TokenURL    string `json:"token_url,omitempty"`
	InlineToken string `json:"inline_token,omitempty"`
}

Jump to

Keyboard shortcuts

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