Documentation ¶
Index ¶
- Constants
- type APIServer
- func (api *APIServer) GetDistroSigImageConfig(w http.ResponseWriter, r *http.Request)
- func (api *APIServer) GetLatestSigImageConfig(w http.ResponseWriter, r *http.Request)
- func (api *APIServer) GetNodeBootstrapData(w http.ResponseWriter, r *http.Request)
- func (api *APIServer) ListenAndServe(ctx context.Context) error
- func (api *APIServer) NewRouter() *mux.Router
- type OptionConfigurator
- type Options
- type Route
- type Routes
Constants ¶
View Source
const ( // RoutePathDistroSIGImageConfig the route path to get node bootstrapping data. RoutePathDistroSIGImageConfig string = "/getdistrosigimageconfig" )
View Source
const ( // RoutePathLatestSIGImageConfig the route path to get node bootstrapping data. RoutePathLatestSIGImageConfig string = "/getlatestsigimageconfig" )
View Source
const ( // RoutePathNodeBootstrapData the route path to get node bootstrapping data. RoutePathNodeBootstrapData string = "/getnodebootstrapdata" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
Options *Options
}
APIServer contains the connections details required to run the api.
func NewAPIServer ¶
NewAPIServer creates an APIServer object with defaults.
func (*APIServer) GetDistroSigImageConfig ¶
func (api *APIServer) GetDistroSigImageConfig(w http.ResponseWriter, r *http.Request)
GetDistroSigImageConfig endpoint for sig config for all distros in one shot.
func (*APIServer) GetLatestSigImageConfig ¶
func (api *APIServer) GetLatestSigImageConfig(w http.ResponseWriter, r *http.Request)
GetLatestSigImageConfig endpoint for getting latest sig image reference.
func (*APIServer) GetNodeBootstrapData ¶
func (api *APIServer) GetNodeBootstrapData(w http.ResponseWriter, r *http.Request)
GetNodeBootstrapConfig endpoint for getting node bootstrapping data.
func (*APIServer) ListenAndServe ¶
ListenAndServe wraps http.Server and provides context-based cancelation.
type OptionConfigurator ¶
type OptionConfigurator func(opts *Options)
OptionConfigurator is a function which can configure an Options object.
Click to show internal directories.
Click to hide internal directories.