Versions in this module Expand all Collapse all v0 v0.1.0 Feb 4, 2021 Changes in this version + var ERROR_NOTSUPPORTED = errors.New("operation not supported") + func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error + func Logger(inner http.Handler, name string) http.Handler + func NewRouter(routers ...Router) *mux.Router + func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error) + func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error) + type AggregationResetBody struct + ResetType ResetType + TargetURIs []string + type ComputerSystem struct + Id string + Name string + PowerState PowerState + type ComputerSystemCollection struct + Id string + Name string + Systems []ComputerSystem + type DefaultApiController struct + func (c *DefaultApiController) AggregationServiceActionsAggregationServiceResetPost(w http.ResponseWriter, r *http.Request) + func (c *DefaultApiController) ComputerSystemsGet(w http.ResponseWriter, r *http.Request) + func (c *DefaultApiController) ComputerSystemsNameActionsComputerSystemResetPost(w http.ResponseWriter, r *http.Request) + func (c *DefaultApiController) ComputerSystemsNameGet(w http.ResponseWriter, r *http.Request) + func (c *DefaultApiController) Routes() Routes + type DefaultApiRouter interface + AggregationServiceActionsAggregationServiceResetPost func(http.ResponseWriter, *http.Request) + ComputerSystemsGet func(http.ResponseWriter, *http.Request) + ComputerSystemsNameActionsComputerSystemResetPost func(http.ResponseWriter, *http.Request) + ComputerSystemsNameGet func(http.ResponseWriter, *http.Request) + type DefaultApiService struct + func (s *DefaultApiService) AggregationServiceActionsAggregationServiceResetPost(ctx context.Context, aggregationResetBody AggregationResetBody) (ImplResponse, error) + func (s *DefaultApiService) ComputerSystemsGet(ctx context.Context) (ImplResponse, error) + func (s *DefaultApiService) ComputerSystemsNameActionsComputerSystemResetPost(ctx context.Context, name string, resetRequestBody ResetRequestBody) (ImplResponse, error) + func (s *DefaultApiService) ComputerSystemsNameGet(ctx context.Context, name string) (ImplResponse, error) + type DefaultApiServicer interface + AggregationServiceActionsAggregationServiceResetPost func(context.Context, AggregationResetBody) (ImplResponse, error) + ComputerSystemsGet func(context.Context) (ImplResponse, error) + ComputerSystemsNameActionsComputerSystemResetPost func(context.Context, string, ResetRequestBody) (ImplResponse, error) + ComputerSystemsNameGet func(context.Context, string) (ImplResponse, error) + func NewDefaultApiService() DefaultApiServicer + func NewPowermanApiService(server string, port int) DefaultApiServicer + type Error struct + Error ErrorError + type ErrorError struct + Code string + Message string + type ImplResponse struct + Body interface{} + Code int + func Response(code int, body interface{}) ImplResponse + type PowerState string + const POWERSTATE_OFF + const POWERSTATE_ON + type PowermanApiService struct + func (s *PowermanApiService) AggregationServiceActionsAggregationServiceResetPost(ctx context.Context, aggregationResetBody AggregationResetBody) (ImplResponse, error) + func (s *PowermanApiService) ComputerSystemsGet(ctx context.Context) (ImplResponse, error) + func (s *PowermanApiService) ComputerSystemsNameActionsComputerSystemResetPost(ctx context.Context, name string, resetRequestBody ResetRequestBody) (ImplResponse, error) + func (s *PowermanApiService) ComputerSystemsNameGet(ctx context.Context, name string) (ImplResponse, error) + type ResetRequestBody struct + ResetType ResetType + type ResetType string + const RESETTYPE_FORCE_OFF + const RESETTYPE_FORCE_ON + const RESETTYPE_FORCE_RESTART + const RESETTYPE_GRACEFUL_RESTART + const RESETTYPE_GRACEFUL_SHUTDOWN + const RESETTYPE_NMI + const RESETTYPE_ON + const RESETTYPE_POWER_CYCLE + const RESETTYPE_PUSH_POWER_BUTTON + type Route struct + HandlerFunc http.HandlerFunc + Method string + Name string + Pattern string + type Router interface + Routes func() Routes + func NewDefaultApiController(s DefaultApiServicer) Router + type Routes []Route