metadata

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe()

ListenAndServe starts the metadata server

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware is a middleware function that logs requests as they come in

func SetHostData

func SetHostData(host *protos.Host)

SetHostData stores data for a particular instance

func Shutdown

func Shutdown() error

Shutdown gracefully shuts down the metadata server

func StepToken

func StepToken(w http.ResponseWriter, r *http.Request)

Types

type HostData

type HostData struct {
	InstanceID string
	NetworkID  string
	UserData   []byte
}

Jump to

Keyboard shortcuts

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