Documentation
¶
Index ¶
- func BuildNodeTypeSchema(registeredType string, node nodes.Node) schema.NodeType
- func ForeachManifestNodeOutput(i *Instance, ...) error
- func RecurseDependenciesType[T any](dependent nodes.Node) []T
- func SwaggerSpec(instance *Instance) swagger.Spec
- func WriteManifestToZip(i *Instance, zw *zip.Writer, nodeId string, node nodes.Node, ...) error
- func WriteMermaid(a *Instance, out io.Writer) error
- func WriteOutline(graph *Instance, out io.Writer) error
- func WriteSwagger(instance *Instance, out io.Writer) error
- func WriteToFolder(i *Instance, folder string) error
- func WriteToZip(i *Instance, zw *zip.Writer) error
- type BoundaryPortKind
- type Config
- type CustomGraphSerialization
- type Details
- type Instance
- func (a *Instance) AddProducer(producerName string, producer nodes.Output[manifest.Manifest])
- func (a *Instance) ApplyAppSchema(jsonPayload []byte) error
- func (a *Instance) ApplyProfile(profile variable.Profile) error
- func (i *Instance) BuildSchemaForAllNodeTypes() []schema.NodeType
- func (a *Instance) CollectBoundaryPorts(subGraphID string) ([]SubgraphBoundaryPort, error)
- func (a *Instance) ConnectNodes(nodeOutId, outPortName, nodeInId, inPortName string)
- func (a *Instance) CreateBoundaryNode(nodeType, portType string) (nodes.Node, string, error)
- func (a *Instance) CreateNode(nodeType string) (nodes.Node, string, error)
- func (a *Instance) CreateSubGraph(id, name, description string) error
- func (a *Instance) DeleteMetadata(key string)
- func (a *Instance) DeleteNode(nodeToDelete nodes.Node)
- func (a *Instance) DeleteNodeById(nodeId string)
- func (a *Instance) DeleteNodeInputConnection(nodeId, portName string)
- func (a *Instance) DeleteProfile(profileName string) error
- func (a *Instance) DeleteSubGraph(id string) error
- func (a *Instance) DeleteVariable(variablePath string)
- func (a *Instance) EncodeToAppSchema() ([]byte, error)
- func (a *Instance) ExecutionReport() schema.GraphExecutionReport
- func (a *Instance) GetAuthors() []persistence.Author
- func (a *Instance) GetDescription() string
- func (a *Instance) GetName() string
- func (a *Instance) GetVariable(variablePath string) variable.Variable
- func (a *Instance) GetVersion() string
- func (a *Instance) HasNodeWithId(nodeId string) bool
- func (a *Instance) IsPortNamed(node nodes.Node, portName string) (string, bool)
- func (a *Instance) IsRoot() bool
- func (a *Instance) IsSubGraphScope() bool
- func (a *Instance) LoadProfile(profileName string) error
- func (a *Instance) Manifest(producerName string) manifest.Manifest
- func (a *Instance) ModelVersion() uint32
- func (a *Instance) NewVariable(variablePath string, variable variable.Variable) string
- func (a *Instance) Node(nodeId string) nodes.Node
- func (a *Instance) NodeId(node nodes.Node) string
- func (a *Instance) NodeIds() []string
- func (a *Instance) NodeInstanceSchema(node nodes.Node) schema.Node
- func (a *Instance) Parameter(nodeId string) Parameter
- func (a *Instance) ParameterData(nodeId string) []byte
- func (a *Instance) Producer(producerName string) nodes.Output[manifest.Manifest]
- func (a *Instance) ProducerNames() []string
- func (a *Instance) Profiles() []string
- func (a *Instance) RegisterSubGraphNodeType(subGraphID string) (string, error)
- func (a *Instance) RenameProfile(profile, newName string) error
- func (a *Instance) Reset()
- func (a *Instance) Root() *Instance
- func (a *Instance) SaveProfile(profileName string)
- func (a *Instance) Schema() schema.Graph
- func (a *Instance) SetBoundaryNodeInfo(nodeID, portName string) error
- func (a *Instance) SetDescription(description string)
- func (a *Instance) SetDetails(details Details)
- func (a *Instance) SetMetadata(key string, value any)
- func (a *Instance) SetName(name string)
- func (a *Instance) SetNodeAsProducer(nodeId, nodePort, producerName string)
- func (a *Instance) SetSubGraphInfo(id, name, description string) error
- func (a *Instance) SetVariableDescription(variablePath, description string) error
- func (a *Instance) SetVariableInfo(variablePath, newPath, description string) error
- func (a *Instance) SetVersion(version string)
- func (a *Instance) SubGraphInstance(id string) (*Instance, error)
- func (a *Instance) SubGraphScopeID() string
- func (a *Instance) SwaggerDefinition() swagger.Definition
- func (a *Instance) UpdateParameter(nodeId string, data []byte) (bool, error)
- func (a *Instance) UpdateVariable(variablePath string, data []byte) (bool, error)
- func (a *Instance) VariableData(variablePath string) ([]byte, error)
- type Parameter
- type Scope
- type SubgraphBoundaryPort
- type SubgraphInstanceNode
- func (r *SubgraphInstanceNode) Description() string
- func (r *SubgraphInstanceNode) Inputs() map[string]nodes.InputPort
- func (r *SubgraphInstanceNode) Name() string
- func (r *SubgraphInstanceNode) Outputs() map[string]nodes.OutputPort
- func (r *SubgraphInstanceNode) Path() string
- func (r *SubgraphInstanceNode) SubGraphID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNodeTypeSchema ¶
func ForeachManifestNodeOutput ¶ added in v0.32.0
func RecurseDependenciesType ¶
func SwaggerSpec ¶ added in v0.32.0
func WriteManifestToZip ¶ added in v0.32.0
func WriteToFolder ¶ added in v0.32.0
Types ¶
type BoundaryPortKind ¶ added in v0.39.0
type BoundaryPortKind string
const ( BoundaryPortKindInput BoundaryPortKind = "input" BoundaryPortKindOutput BoundaryPortKind = "output" )
func GetBoundaryKind ¶ added in v0.39.0
func GetBoundaryKind(boundary subgraph.Boundary) BoundaryPortKind
type Details ¶ added in v0.32.0
type Details struct {
Name string
Version string
Description string
Authors []persistence.Author
}
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) AddProducer ¶
func (*Instance) ApplyAppSchema ¶
func (*Instance) ApplyProfile ¶ added in v0.32.0
func (*Instance) BuildSchemaForAllNodeTypes ¶ added in v0.32.0
func (*Instance) CollectBoundaryPorts ¶ added in v0.39.0
func (a *Instance) CollectBoundaryPorts(subGraphID string) ([]SubgraphBoundaryPort, error)
func (*Instance) ConnectNodes ¶
func (*Instance) CreateBoundaryNode ¶ added in v0.39.0
CreateBoundaryNode instantiates a subgraph boundary node with a given port type.
func (*Instance) CreateNode ¶
func (*Instance) CreateSubGraph ¶ added in v0.39.0
func (*Instance) DeleteMetadata ¶
func (*Instance) DeleteNode ¶
func (*Instance) DeleteNodeById ¶ added in v0.28.0
func (*Instance) DeleteNodeInputConnection ¶
func (*Instance) DeleteProfile ¶ added in v0.31.0
func (*Instance) DeleteSubGraph ¶ added in v0.39.0
func (*Instance) DeleteVariable ¶ added in v0.28.0
func (*Instance) EncodeToAppSchema ¶
func (*Instance) ExecutionReport ¶ added in v0.32.0
func (a *Instance) ExecutionReport() schema.GraphExecutionReport
func (*Instance) GetAuthors ¶ added in v0.32.0
func (a *Instance) GetAuthors() []persistence.Author
func (*Instance) GetDescription ¶ added in v0.32.0
func (*Instance) GetVariable ¶ added in v0.28.0
func (*Instance) GetVersion ¶ added in v0.32.0
func (*Instance) HasNodeWithId ¶ added in v0.27.0
func (*Instance) IsPortNamed ¶ added in v0.25.0
func (*Instance) IsSubGraphScope ¶ added in v0.39.0
func (*Instance) LoadProfile ¶ added in v0.31.0
func (*Instance) ModelVersion ¶
func (*Instance) NewVariable ¶ added in v0.28.0
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> VARIABLES >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
func (*Instance) NodeInstanceSchema ¶
func (*Instance) ParameterData ¶
func (*Instance) ProducerNames ¶
func (*Instance) RegisterSubGraphNodeType ¶ added in v0.39.0
func (*Instance) RenameProfile ¶ added in v0.31.0
func (*Instance) SaveProfile ¶ added in v0.31.0
func (*Instance) SetBoundaryNodeInfo ¶ added in v0.39.0
func (*Instance) SetDescription ¶ added in v0.32.0
func (*Instance) SetDetails ¶ added in v0.32.0
func (*Instance) SetMetadata ¶
func (*Instance) SetNodeAsProducer ¶
func (*Instance) SetSubGraphInfo ¶ added in v0.39.0
func (*Instance) SetVariableDescription ¶ added in v0.28.0
func (*Instance) SetVariableInfo ¶ added in v0.28.0
func (*Instance) SetVersion ¶ added in v0.32.0
func (*Instance) SubGraphInstance ¶ added in v0.39.0
func (*Instance) SubGraphScopeID ¶ added in v0.39.0
func (*Instance) SwaggerDefinition ¶ added in v0.32.0
func (a *Instance) SwaggerDefinition() swagger.Definition
func (*Instance) UpdateParameter ¶
func (*Instance) UpdateVariable ¶ added in v0.28.0
type Scope ¶ added in v0.39.0
type Scope string
const RootScope Scope = "root"
func SubGraphScope ¶ added in v0.39.0
func (Scope) ResolveInstance ¶ added in v0.39.0
func (Scope) SubGraphID ¶ added in v0.39.0
type SubgraphBoundaryPort ¶ added in v0.39.0
type SubgraphBoundaryPort struct {
Name string
Type string
Kind BoundaryPortKind
}
type SubgraphInstanceNode ¶ added in v0.39.0
type SubgraphInstanceNode struct {
// contains filtered or unexported fields
}
SubgraphInstanceNode is a placement of a sub-graph on a parent graph. Each placement owns a private clone of the definition so evaluation is isolated, while edits to the shared definition rebuild every clone.
func NewRuntimeNode ¶ added in v0.39.0
func NewRuntimeNode(owner *Instance, subGraphID string) *SubgraphInstanceNode
func (*SubgraphInstanceNode) Description ¶ added in v0.39.0
func (r *SubgraphInstanceNode) Description() string
func (*SubgraphInstanceNode) Inputs ¶ added in v0.39.0
func (r *SubgraphInstanceNode) Inputs() map[string]nodes.InputPort
func (*SubgraphInstanceNode) Name ¶ added in v0.39.0
func (r *SubgraphInstanceNode) Name() string
func (*SubgraphInstanceNode) Outputs ¶ added in v0.39.0
func (r *SubgraphInstanceNode) Outputs() map[string]nodes.OutputPort
func (*SubgraphInstanceNode) Path ¶ added in v0.39.0
func (r *SubgraphInstanceNode) Path() string
func (*SubgraphInstanceNode) SubGraphID ¶ added in v0.39.0
func (r *SubgraphInstanceNode) SubGraphID() string
Click to show internal directories.
Click to hide internal directories.