http

package
Version: v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package http provides the matchbox HTTP server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConfig

type CloudConfig struct {
	Content string
}

CloudConfig defines a cloud-init config.

type Config

type Config struct {
	Core   server.Server
	Logger *logrus.Logger
	// Path to static assets
	AssetsPath string
	// config signers (.sig and .asc)
	Signer        sign.Signer
	ArmoredSigner sign.Signer
}

Config configures a Server.

type Server

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

Server serves boot and provisioning configs to machines via HTTP.

func NewServer

func NewServer(config *Config) *Server

NewServer returns a new Server.

func (*Server) HTTPHandler

func (s *Server) HTTPHandler() http.Handler

HTTPHandler returns a HTTP handler for the server.

Jump to

Keyboard shortcuts

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