metadataserver

package
v0.0.0-...-af8bf23 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataServer

type MetadataServer struct {
	// contains filtered or unexported fields
}

MetadataServer implements http.Handler, it can be passed to a real, or fake HTTP server for testing

func NewMetaDataServer

func NewMetaDataServer(ctx context.Context, backingMetadataServer, iamArn, titusTaskInstanceID, ipv4Address, region string, optimistic bool) *MetadataServer

NewMetaDataServer which can be used as an HTTP server's handler

func (*MetadataServer) ServeHTTP

func (ms *MetadataServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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