parser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 7 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 added in v0.3.0

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

type CloutAttributeValueList added in v0.3.0

type CloutAttributeValueList []*CloutAttributeValue

type CloutAttributeValues added in v0.3.0

type CloutAttributeValues map[string]CloutAttributeValueList

func NewCloutAttributeValues added in v0.3.0

func NewCloutAttributeValues() CloutAttributeValues

func (CloutAttributeValues) Set added in v0.3.0

func (self CloutAttributeValues) Set(vertexId string, capabilityName string, attributeName string, value interface{})

func (CloutAttributeValues) StringMap added in v0.3.0

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

type KubernetesArtifact

type KubernetesArtifact struct {
	Name       string
	SourcePath string
}

func ParseKubernetesArtifact added in v0.3.0

func ParseKubernetesArtifact(value ard.Value) (*KubernetesArtifact, bool)

type KubernetesArtifacts

type KubernetesArtifacts []*KubernetesArtifact

func ParseKubernetesArtifacts added in v0.3.0

func ParseKubernetesArtifacts(value ard.Value) (KubernetesArtifacts, bool)

type KubernetesResourceMapping added in v0.3.0

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

func (*KubernetesResourceMapping) GVK added in v0.3.0

type KubernetesResourceMappingList added in v0.3.0

type KubernetesResourceMappingList []*KubernetesResourceMapping

func ParseKubernetesResourceMappingList added in v0.3.0

func ParseKubernetesResourceMappingList(value ard.Value) (KubernetesResourceMappingList, bool)

type KubernetesResourceMappings added in v0.3.0

type KubernetesResourceMappings map[string]KubernetesResourceMappingList

func NewKubernetesResourceMappings added in v0.3.0

func NewKubernetesResourceMappings() KubernetesResourceMappings

func ParseKubernetesResourceMappings added in v0.3.0

func ParseKubernetesResourceMappings(value ard.Value) (KubernetesResourceMappings, bool)

func (KubernetesResourceMappings) Add added in v0.3.0

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

func (KubernetesResourceMappings) StringMap added in v0.3.0

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

type OrchestrationArtifact added in v0.3.0

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

func ParseOrchestrationArtifact added in v0.3.0

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

type OrchestrationArtifacts added in v0.3.0

type OrchestrationArtifacts []*OrchestrationArtifact

func ParseOrchestrationArtifacts added in v0.3.0

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

type OrchestrationCloutExecution added in v0.3.0

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

func ParseOrchestrationCloutExecution added in v0.3.0

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

func (*OrchestrationCloutExecution) GetMode added in v0.3.0

func (self *OrchestrationCloutExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationContainerExecution added in v0.3.0

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

func ParseOrchestrationContainerExecution added in v0.3.0

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

func (*OrchestrationContainerExecution) GetMode added in v0.3.0

func (self *OrchestrationContainerExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationExecution added in v0.3.0

type OrchestrationExecution interface {
	GetMode() string
}

type OrchestrationExecutions added in v0.3.0

type OrchestrationExecutions map[string][]OrchestrationExecution

func ParseOrchestrationExecutions added in v0.3.0

func ParseOrchestrationExecutions(value ard.Value) (OrchestrationExecutions, bool)

type OrchestrationNodeState added in v0.3.0

type OrchestrationNodeState struct {
	Mode    string
	State   string
	Message string
}

func ParseOrchestrationNodeState added in v0.3.0

func ParseOrchestrationNodeState(value ard.Value) (*OrchestrationNodeState, bool)

type OrchestrationNodeStates added in v0.3.0

type OrchestrationNodeStates map[string]*OrchestrationNodeState

func ParseOrchestrationNodeStates added in v0.3.0

func ParseOrchestrationNodeStates(value ard.Value) (OrchestrationNodeStates, bool)

type OrchestrationPolicies

type OrchestrationPolicies map[string][]interface{}

func ParseOrchestrationPolicies added in v0.3.0

func ParseOrchestrationPolicies(value ard.Value) (OrchestrationPolicies, bool)

type OrchestrationProvisioningPolicy

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

func ParseOrchestrationProvisioningPolicy added in v0.3.0

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

type OrchestrationSSHExecution added in v0.3.0

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

func ParseOrchestrationSSHExecution added in v0.3.0

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

func (*OrchestrationSSHExecution) GetMode added in v0.3.0

func (self *OrchestrationSSHExecution) GetMode() string

OrchestrationExecution interface

type OrchestrationStates added in v0.3.0

type OrchestrationStates map[string]OrchestrationNodeStates

func ParseOrchestrationStates added in v0.3.0

func ParseOrchestrationStates(value ard.Value) (OrchestrationStates, bool)

Jump to

Keyboard shortcuts

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