model

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AspectNode

type AspectNode struct {
	Id            string   `json:"id"`
	Name          string   `json:"name"`
	RootId        string   `json:"root_id"`
	ParentId      string   `json:"parent_id"`
	ChildIds      []string `json:"child_ids"`
	AncestorIds   []string `json:"ancestor_ids"`
	DescendentIds []string `json:"descendent_ids"`
}

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 ImportConfig struct {
	Name               string      `json:"name"`
	Description        string      `json:"description"`
	Type               Type        `json:"type"`
	DefaultValue       interface{} `json:"default_value"`
	DefaultValueString *string     `json:"-"`
}

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 ImportTypeFilterCriteria struct {
	FunctionId string   `json:"function_id"`
	AspectIds  []string `json:"aspect_ids"`
}

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
}

type Type

type Type string
const (
	String  Type = "https://schema.org/Text"
	Integer Type = "https://schema.org/Integer"
	Float   Type = "https://schema.org/Float"
	Boolean Type = "https://schema.org/Boolean"

	List      Type = "https://schema.org/ItemList"
	Structure Type = "https://schema.org/StructuredValue"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL