prov

package
v3.0.0-M6+incompatible Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegateExecutor

type DelegateExecutor interface {
	ExecDelegate(ctx context.Context, conf config.Configuration, taskID, deploymentID, nodeName, delegateOperation string) error
}

DelegateExecutor is the interface that wraps the ExecDelegate method

ExecDelegate executes the given delegateOperation for given nodeName on the given deploymentID. The taskID identifies the task that requested to execute this delegate operation. The given ctx may be used to check for cancellation, conf is the server Configuration.

type InfraUsageCollector

type InfraUsageCollector interface {
	GetUsageInfo(ctx context.Context, cfg config.Configuration, taskID, infraName string) (map[string]interface{}, error)
}

InfraUsageCollector is the interface for collecting information about infrastructure usage

GetUsageInfo returns data about infrastructure usage for defined infrastructure

type Operation

type Operation struct {
	// The operation name
	Name string
	// Name of the type implementing this operation
	ImplementedInType string
	// Artifact type of the operation implementation
	ImplementationArtifact string
	// Additional information for relationship operation
	RelOp RelationshipOperation
	// Node on which operation should be executed
	OperationHost string
	// Requirement name in case of relationship
	TargetRelationship string
}

Operation represent a provisioning operation

func (Operation) String

func (o Operation) String() string

String implements the fmt.Stringer interface

type OperationExecutor

type OperationExecutor interface {
	ExecOperation(ctx context.Context, conf config.Configuration, taskID, deploymentID, nodeName string, operation Operation) error
}

OperationExecutor is the interface that wraps the ExecOperation method

ExecOperation executes the given TOSCA operation for given nodeName on the given deploymentID. The taskID identifies the task that requested to execute this operation. The given ctx may be used to check for cancellation, conf is the server Configuration.

type RelationshipOperation

type RelationshipOperation struct {
	// If this is set to true then other struct fields could be considered.
	IsRelationshipOperation bool
	// Requirement index of the relationship in the source node
	RequirementIndex string
	// Name of the target node of the relationship
	TargetNodeName string
}

RelationshipOperation provides additional information for relationship operation

func (RelationshipOperation) String

func (ro RelationshipOperation) String() string

String implements the fmt.Stringer interface

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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