Documentation
¶
Index ¶
- Constants
- func IsValidProtocol(value string) (string, error)
- type BoxCreateRequestBody
- type BoxCreateResponseBody
- type BoxDeleteRequestBody
- type BoxDeleteResponseBody
- type BoxDescribeRequestBody
- type BoxDescribeResponseBody
- type BoxDescribeTemplateInfo
- type BoxExecSessionBody
- type BoxListItem
- type BoxListRequestBody
- type BoxListResponseBody
- type LabCreateRequestBody
- type LabCreateResponseBody
- type Message
- func Decode[T body](value string) (*Message[T], error)
- func NewBoxCreateRequest(origin string, templateName string, size string) *Message[BoxCreateRequestBody]
- func NewBoxCreateResponse(origin string, name string, size string) *Message[BoxCreateResponseBody]
- func NewBoxDeleteRequest(origin string, names []string) *Message[BoxDeleteRequestBody]
- func NewBoxDeleteResponse(origin string, names []string) *Message[BoxDeleteResponseBody]
- func NewBoxDescribeRequest(origin string, name string) *Message[BoxDescribeRequestBody]
- func NewBoxDescribeResponse(origin string, body BoxDescribeResponseBody) *Message[BoxDescribeResponseBody]
- func NewBoxExecSession(origin string, name string) *Message[BoxExecSessionBody]
- func NewBoxListRequest(origin string) *Message[BoxListRequestBody]
- func NewBoxListResponse(origin string, items []BoxListItem) *Message[BoxListResponseBody]
- func NewLabCreateRequest(origin string, templateName string, parameters map[string]string) *Message[LabCreateRequestBody]
- func NewLabCreateResponse(origin string, name string) *Message[LabCreateResponseBody]
- func NewPingMessage(origin string) *Message[PingBody]
- func NewPongMessage(origin string) *Message[PongBody]
- type MethodName
- type PingBody
- type PongBody
Constants ¶
View Source
const ( PingValue = "ping" PongValue = "pong" )
Variables ¶
This section is empty.
Functions ¶
func IsValidProtocol ¶
Types ¶
type BoxCreateRequestBody ¶
type BoxCreateResponseBody ¶
type BoxDeleteRequestBody ¶
type BoxDeleteRequestBody struct {
Names []string `json:"names"`
}
type BoxDeleteResponseBody ¶
type BoxDeleteResponseBody struct {
Names []string `json:"names"`
}
type BoxDescribeRequestBody ¶
type BoxDescribeRequestBody struct {
Name string `json:"name"`
}
type BoxDescribeResponseBody ¶
type BoxDescribeTemplateInfo ¶
type BoxExecSessionBody ¶
type BoxExecSessionBody struct {
Name string `json:"name"`
}
type BoxListItem ¶
type BoxListRequestBody ¶
type BoxListRequestBody struct{}
type BoxListResponseBody ¶
type BoxListResponseBody struct {
Items []BoxListItem `json:"items"`
}
type LabCreateRequestBody ¶ added in v0.8.1
type LabCreateResponseBody ¶ added in v0.8.1
type LabCreateResponseBody struct {
Name string `json:"name"`
}
type Message ¶
type Message[T body] struct { Kind string `json:"kind"` Origin string `json:"origin"` Method string `json:"method"` Body T `json:"body"` // TODO omitempty to remove "body":{} }
func NewBoxCreateRequest ¶
func NewBoxCreateRequest(origin string, templateName string, size string) *Message[BoxCreateRequestBody]
func NewBoxCreateResponse ¶
func NewBoxCreateResponse(origin string, name string, size string) *Message[BoxCreateResponseBody]
func NewBoxDeleteRequest ¶
func NewBoxDeleteRequest(origin string, names []string) *Message[BoxDeleteRequestBody]
func NewBoxDeleteResponse ¶
func NewBoxDeleteResponse(origin string, names []string) *Message[BoxDeleteResponseBody]
func NewBoxDescribeRequest ¶
func NewBoxDescribeRequest(origin string, name string) *Message[BoxDescribeRequestBody]
func NewBoxDescribeResponse ¶
func NewBoxDescribeResponse(origin string, body BoxDescribeResponseBody) *Message[BoxDescribeResponseBody]
func NewBoxExecSession ¶
func NewBoxExecSession(origin string, name string) *Message[BoxExecSessionBody]
func NewBoxListRequest ¶
func NewBoxListRequest(origin string) *Message[BoxListRequestBody]
func NewBoxListResponse ¶
func NewBoxListResponse(origin string, items []BoxListItem) *Message[BoxListResponseBody]
func NewLabCreateRequest ¶ added in v0.8.1
func NewLabCreateResponse ¶ added in v0.8.1
func NewLabCreateResponse(origin string, name string) *Message[LabCreateResponseBody]
func NewPingMessage ¶
func NewPongMessage ¶
type MethodName ¶
type MethodName int
const ( MethodPing MethodName = iota MethodBoxCreate MethodBoxDelete MethodBoxDescribe MethodBoxExec MethodBoxList MethodLabCreate )
func (MethodName) String ¶
func (c MethodName) String() string
Click to show internal directories.
Click to hide internal directories.