Version: v4.2.0-alpha.0+incompa... Latest Latest

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

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




This section is empty.


This section is empty.


This section is empty.


type APIHandler

type APIHandler struct {
	// contains filtered or unexported fields

APIHandler is the HTTP Handler for the Machine Config Server.

func NewServerAPIHandler

func NewServerAPIHandler(s Server) *APIHandler

NewServerAPIHandler initializes a new API handler for the Machine Config Server.

func (*APIHandler) ServeHTTP

func (sh *APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles the requests for the machine config server API handler.

type APIServer

type APIServer struct {
	// contains filtered or unexported fields

APIServer provides the HTTP(s) endpoint for providing the machine configs.

func NewAPIServer

func NewAPIServer(a *APIHandler, p int, is bool, c, k string) *APIServer

NewAPIServer initializes a new API server that runs the Machine Config Server as a handler.

func (*APIServer) Serve

func (a *APIServer) Serve()

Serve launches the API Server.

type Server

type Server interface {
	GetConfig(poolRequest) (*igntypes.Config, error)

Server defines the interface that is implemented by different machine config server implementations.

func NewBootstrapServer

func NewBootstrapServer(dir, kubeconfig string) (Server, error)

NewBootstrapServer initializes a new Bootstrap server that implements the Server interface.

func NewClusterServer

func NewClusterServer(kubeConfig, apiserverURL string) (Server, error)

NewClusterServer is used to initialize the machine config server that will be used to fetch the requested MachineConfigPool objects from within the cluster. It accepts a kubeConfig, which is not required when it's run from within a cluster(useful in testing). It accepts the apiserverURL which is the location of the KubeAPIServer.

Jump to

Keyboard shortcuts

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