Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
ErrorHandler for errors. Use code = -1 to bypass writing header or trying to set Content-Type. Useful when headers are already sent.
Types ¶
type ApplyRequestBody ¶
type ApplyRequestBody struct { Command string `json:"command,omitempty"` Files map[string]decoding.FileValue `json:"files,omitempty"` Flags map[string]decoding.FlagValue `json:"flags,omitempty"` }
ApplyRequestBody for the apply endpoint.
func (*ApplyRequestBody) FilesMap ¶
func (a *ApplyRequestBody) FilesMap() map[string][]byte
FilesMap gets the files on a map[string]string.
func (*ApplyRequestBody) FlagsMap ¶
func (a *ApplyRequestBody) FlagsMap() map[string]string
FlagsMap gets the flags on a map[string]string.
Click to show internal directories.
Click to hide internal directories.