model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 0

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 AuthAction

type AuthAction string
const (
	READ         AuthAction = "r"
	WRITE        AuthAction = "w"
	EXECUTE      AuthAction = "x"
	ADMINISTRATE AuthAction = "a"
)

func (AuthAction) String

func (this AuthAction) String() string

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 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