iid

package
v0.0.0-...-9725836 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerConfig

type HandlerConfig struct {
	SignAlg    jwa.SignatureAlgorithm
	KeyManager keymanager.KeyManager
}

func (*HandlerConfig) IIDHandler

func (c *HandlerConfig) IIDHandler() func(http.ResponseWriter, *http.Request)

type Payload

type Payload struct {
	ID         string            `json:"jti"`
	ProjectID  string            `json:"projectID"`
	InstanceID string            `json:"instanceID"`
	ImageID    string            `json:"imageID"`
	Hostname   string            `json:"hostname"`
	Metadata   map[string]string `json:"metadata"`
	IssuedAt   int64             `json:"iat"`
	ExpiresAt  int64             `json:"exp"`
}

type Response

type Response struct {
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

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