Versions in this module Expand all Collapse all v0 v0.1.0 Feb 20, 2023 Changes in this version + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type CreateInstanceJSONBody = CreateInstanceRequestBody + type CreateInstanceJSONRequestBody = CreateInstanceJSONBody + type CreateInstanceRequestBody struct + BaseImage string + Cpu int + DiskSize int + Memory int + Networks []string + SpecialCases *[]string + UserData *string + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type Instance struct + Cpu int + Interfaces []NetworkInterface + Memory int + Node *string + ResourceId string + RootVolume string + State InstanceState + UserData *string + type InstanceState string + const CREATING + const DELETED + const DELETING + const ERROR + const PENDING + const RUNNING + const STARTING + const STOPPED + const STOPPING + type NetworkInterface struct + Addresses []string + Id string + Mac string + Network string + Trunk *bool + type ServerInterface interface + CreateInstance func(ctx echo.Context) error + DeleteInstance func(ctx echo.Context, id string) error + GetInstance func(ctx echo.Context, id string) error + ListAllInstances func(ctx echo.Context) error + StartInstance func(ctx echo.Context, id string) error + StopInstance func(ctx echo.Context, id string) error + TrunkNicAddNetwork func(ctx echo.Context, id string, nic string) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) CreateInstance(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DeleteInstance(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetInstance(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ListAllInstances(ctx echo.Context) error + func (w *ServerInterfaceWrapper) StartInstance(ctx echo.Context) error + func (w *ServerInterfaceWrapper) StopInstance(ctx echo.Context) error + func (w *ServerInterfaceWrapper) TrunkNicAddNetwork(ctx echo.Context) error + type TrunkNicAddNetworkJSONBody = string + type TrunkNicAddNetworkJSONRequestBody = TrunkNicAddNetworkJSONBody