parser

package
v0.0.0-...-07553be Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutputs

func GetOutputs(clout *cloutpkg.Clout) (map[string]string, bool)

Types

type CloutAttributeValue

type CloutAttributeValue struct {
	CapabilityName string `json:"capability"`
	AttributeName  string `json:"attribute"`
	Value          any    `json:"value"`
}

type CloutAttributeValueList

type CloutAttributeValueList []*CloutAttributeValue

type CloutAttributeValues

type CloutAttributeValues map[string]CloutAttributeValueList

func NewCloutAttributeValues

func NewCloutAttributeValues() CloutAttributeValues

func (CloutAttributeValues) JSON

func (self CloutAttributeValues) JSON() map[string]string

func (CloutAttributeValues) Set

func (self CloutAttributeValues) Set(vertexId string, capabilityName string, attributeName string, value any)

type KubernetesArtifact

type KubernetesArtifact struct {
	Name       string `yaml:"name"`
	Registry   string `yaml:"registry"`
	SourcePath string `yaml:"sourcePath"`
}

type KubernetesArtifacts

type KubernetesArtifacts []*KubernetesArtifact

func DecodeKubernetesArtifacts

func DecodeKubernetesArtifacts(code string) (KubernetesArtifacts, bool)

type KubernetesResourceMapping

type KubernetesResourceMapping struct {
	Capability        string            `yaml:"capability" json:"capability"`
	APIVersion        string            `yaml:"apiVersion" json:"apiVersion"`
	Kind              string            `yaml:"kind" json:"kind"`
	Name              string            `yaml:"name" json:"name"`
	Namespace         string            `yaml:"namespace" json:"namespace"`
	AttributeMappings map[string]string `yaml:"attributes,omitempty" json:"attributes,omitempty"`
}

func (*KubernetesResourceMapping) GVK

type KubernetesResourceMappingList

type KubernetesResourceMappingList []*KubernetesResourceMapping

type KubernetesResourceMappings

type KubernetesResourceMappings map[string]KubernetesResourceMappingList

func DecodeKubernetesResourceMappings

func DecodeKubernetesResourceMappings(code string) (KubernetesResourceMappings, bool)

func NewKubernetesResourceMappings

func NewKubernetesResourceMappings() KubernetesResourceMappings

func (KubernetesResourceMappings) Add

func (self KubernetesResourceMappings) Add(vertexId string, capability string, apiVersion string, kind string, name string, namespace string, attributeMappings map[string]string)

func (KubernetesResourceMappings) JSON

func (self KubernetesResourceMappings) JSON() map[string]string

type OrchestrationArtifact

type OrchestrationArtifact struct {
	SourceURL   string
	TargetPath  string
	Permissions *int64
}

func ParseOrchestrationArtifact

func ParseOrchestrationArtifact(value ard.Value) (*OrchestrationArtifact, bool)

type OrchestrationArtifacts

type OrchestrationArtifacts []*OrchestrationArtifact

func ParseOrchestrationArtifacts

func ParseOrchestrationArtifacts(value ard.List) (OrchestrationArtifacts, bool)

type OrchestrationCloutExecution

type OrchestrationCloutExecution struct {
	Mode          string
	ScriptletName string
	Arguments     map[string]string
}

func ParseOrchestrationCloutExecution

func ParseOrchestrationCloutExecution(value ard.Value) (*OrchestrationCloutExecution, bool)

func (*OrchestrationCloutExecution) GetMode

func (self *OrchestrationCloutExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationContainerExecution

type OrchestrationContainerExecution struct {
	Mode             string
	Command          []string // len > 0
	Namespace        string   // can be emtpy
	MatchLabels      map[string]string
	MatchExpressions any
	ContainerName    string // can be emtpy
	Artifacts        OrchestrationArtifacts
}

func ParseOrchestrationContainerExecution

func ParseOrchestrationContainerExecution(value ard.Value) (*OrchestrationContainerExecution, bool)

func (*OrchestrationContainerExecution) GetMode

func (self *OrchestrationContainerExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationExecution

type OrchestrationExecution interface {
	GetMode() string
}

type OrchestrationExecutions

type OrchestrationExecutions map[string][]OrchestrationExecution

func DecodeOrchestrationExecutions

func DecodeOrchestrationExecutions(code string) (OrchestrationExecutions, bool)

type OrchestrationNodeState

type OrchestrationNodeState struct {
	Mode    string `yaml:"mode"`
	State   string `yaml:"state"`
	Message string `yaml:"message"`
}

type OrchestrationNodeStates

type OrchestrationNodeStates map[string]*OrchestrationNodeState

type OrchestrationPolicies

type OrchestrationPolicies map[string][]any

func DecodeOrchestrationPolicies

func DecodeOrchestrationPolicies(code string) (OrchestrationPolicies, bool)

type OrchestrationProvisioningPolicy

type OrchestrationProvisioningPolicy struct {
	Sites              []string
	Profile            bool
	Substitutable      bool
	Instantiable       bool
	Virtualizable      bool
	SubstitutionInputs map[string]any
}

func ParseOrchestrationProvisioningPolicy

func ParseOrchestrationProvisioningPolicy(value ard.Value) (*OrchestrationProvisioningPolicy, bool)

type OrchestrationSSHExecution

type OrchestrationSSHExecution struct {
	Mode      string
	Command   []string // len > 0
	Host      string
	Username  string
	Key       string
	Artifacts OrchestrationArtifacts
}

func ParseOrchestrationSSHExecution

func ParseOrchestrationSSHExecution(value ard.Value) (*OrchestrationSSHExecution, bool)

func (*OrchestrationSSHExecution) GetMode

func (self *OrchestrationSSHExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationStates

type OrchestrationStates map[string]OrchestrationNodeStates

func DecodeOrchestrationStates

func DecodeOrchestrationStates(code string) (OrchestrationStates, bool)

Jump to

Keyboard shortcuts

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