Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
type Server ¶
Server defines the interface that is implemented by different machine config server implementations.
func NewBootstrapServer ¶
NewBootstrapServer initializes a new Bootstrap server that implements the Server interface.
func NewClusterServer ¶
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.