Documentation ¶
Index ¶
- type API
- func (api *API) EnvironmentGet(ctx echo.Context) error
- func (api *API) EnvironmentUpdate(ctx echo.Context) error
- func (api *API) InstanceCreate(ctx echo.Context) error
- func (api *API) InstanceDelete(ctx echo.Context) error
- func (api *API) InstanceGet(ctx echo.Context) error
- func (api *API) InstanceList(ctx echo.Context) error
- func (api *API) InstanceUpdate(ctx echo.Context) error
- func (api *API) MetaData(ctx echo.Context) error
- func (api *API) Preview(ctx echo.Context) error
- func (api *API) Start() error
- func (api *API) Stop() error
- func (api *API) UserData(ctx echo.Context) error
- type APIListResponse
- type APIResponse
- type CustomValidator
- type ErrorResponseItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the data holder for the API
func NewAPI ¶
func NewAPI(config *conf.Configuration, db *bolt.DB) *API
NewAPI will create an api instance that is ready to start
func (*API) EnvironmentUpdate ¶ added in v0.2.0
type APIListResponse ¶
type APIResponse ¶
type APIResponse struct { Status enums.APIResponseStatus `json:"status"` Message string `json:"message"` Errors []ErrorResponseItem `json:"errors,omitempty"` }
func NewAPIResponseFromValidationError ¶ added in v0.1.3
func NewAPIResponseFromValidationError(errors validator.ValidationErrors) *APIResponse
type CustomValidator ¶ added in v0.1.3
type CustomValidator struct {
// contains filtered or unexported fields
}
func (*CustomValidator) Validate ¶ added in v0.1.3
func (cv *CustomValidator) Validate(i interface{}) error
type ErrorResponseItem ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.