Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrForbidden = fmt.Errorf("forbidden")
View Source
var ErrInternalServerError = errors.New("internal server error")
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
func GetStatusCode ¶ added in v0.0.13
Types ¶
type AspectNode ¶
type ContentVariable ¶
type ContentVariable struct {
Name string `json:"name"`
Type Type `json:"type"`
CharacteristicId string `json:"characteristic_id"`
SubContentVariables []ContentVariable `json:"sub_content_variables"`
UseAsTag bool `json:"use_as_tag"`
FunctionId string `json:"function_id,omitempty"`
AspectId string `json:"aspect_id,omitempty"`
}
type ImportConfig ¶
type ImportType ¶
type ImportType struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
DefaultRestart bool `json:"default_restart"`
Configs []ImportConfig `json:"configs"`
Output ContentVariable `json:"output"`
Owner string `json:"owner"`
Cost uint64 `json:"cost"`
}
func ShrinkImportType ¶
func ShrinkImportType(importType ImportTypeExtended) ImportType
type ImportTypeExtended ¶
type ImportTypeExtended struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Image string `json:"image"`
DefaultRestart bool `json:"default_restart"`
Configs []ImportConfig `json:"configs"`
ContentAspectIds []string `json:"content_aspect_ids"`
ContentFunctionIds []string `json:"content_function_ids"`
Output ContentVariable `json:"output"`
AspectFunctions []string `json:"aspect_functions"`
Owner string `json:"owner"`
Cost uint64 `json:"cost"`
}
func ExtendImportType ¶
func ExtendImportType(importType ImportType) ImportTypeExtended
type ImportTypeFilterCriteria ¶ added in v0.0.5
type ImportTypeListOptions ¶ added in v0.0.5
type ImportTypeListOptions struct {
Ids []string //filter; ignores limit/offset if Ids != nil; ignored if Ids == nil; Ids == []string{} will return an empty list;
Search string
Limit int64 //default 100, will be ignored if 'ids' is set (Ids != nil)
Offset int64 //default 0, will be ignored if 'ids' is set (Ids != nil)
SortBy string //default name.asc
Criteria []ImportTypeFilterCriteria //filter; ignored if nil
}
Click to show internal directories.
Click to hide internal directories.