metadataserver

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 45 Imported by: 1

Documentation

Index

Constants

View Source
const FakeARNRole = "arn:aws:iam::0:role/RealRole"

A sentinel role used under test

Variables

This section is empty.

Functions

func GenerateSessionName

func GenerateSessionName(containerID string) string

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, config types.MetadataServerConfiguration) (*MetadataServer, error)

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

func (*MetadataServer) ServeHTTP

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

func (*MetadataServer) SetSigner

func (ms *MetadataServer) SetSigner(newSigner *identity.Signer) error

SetSigner updates the identity server's signer

Directories

Path Synopsis
Package identity contains helper functions for signing data and verifying signatures
Package identity contains helper functions for signing data and verifying signatures

Jump to

Keyboard shortcuts

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