helper

package
v1.86.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataFiles

func MetadataFiles(sourceDirectory string) ([]string, error)

MetadataFiles provides a list of all step metadata files

func ProcessMetaFiles

func ProcessMetaFiles(metadataFiles []string, targetDir string, stepHelperData StepHelperData) error

ProcessMetaFiles generates step coding based on step configuration provided in yaml files

Types

type ContextDefaultData added in v1.1.0

type ContextDefaultData struct {
	Metadata   ContextDefaultMetadata     `json:"metadata"`
	Parameters []ContextDefaultParameters `json:"params"`
}

ContextDefaultData holds the meta data and the default data for the context default parameter descriptions

type ContextDefaultMetadata added in v1.1.0

type ContextDefaultMetadata struct {
	Name            string `json:"name"`
	Description     string `json:"description"`
	LongDescription string `json:"longDescription,omitempty"`
}

ContextDefaultMetadata holds meta data for the context default parameter descripten (name, description, long description)

type ContextDefaultParameters added in v1.1.0

type ContextDefaultParameters struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Scope       []string `json:"scope"`
}

ContextDefaultParameters holds the description for the context default parameters

type InfluxMeasurement added in v1.9.0

type InfluxMeasurement struct {
	Name   string
	Fields []InfluxMetric
	Tags   []InfluxMetric
}

InfluxMeasurement defines a measurement for Influx reporting which is defined via a step resource

type InfluxMetric added in v1.9.0

type InfluxMetric struct {
	Name string
}

InfluxMetric defines a metric (column) in an influx measurement

type InfluxMetricContent added in v1.9.0

type InfluxMetricContent struct {
	Measurement string
	ValType     string
	Name        string
	Value       *string
}

InfluxMetricContent defines the content of an Inflx metric

type InfluxResource added in v1.9.0

type InfluxResource struct {
	Name         string
	StepName     string
	Measurements []InfluxMeasurement
}

InfluxResource defines an Influx resouece that holds measurement information for a pipeline run

func (*InfluxResource) StructName added in v1.9.0

func (i *InfluxResource) StructName() string

StructName returns the name of the influx resource struct

func (*InfluxResource) StructString added in v1.9.0

func (i *InfluxResource) StructString() (string, error)

StructString returns the golang coding for the struct definition of the InfluxResource

type PiperEnvironmentParameter added in v1.9.0

type PiperEnvironmentParameter struct {
	Category string
	Name     string
}

PiperEnvironmentParameter defines a parameter within the Piper environment

type PiperEnvironmentResource added in v1.9.0

type PiperEnvironmentResource struct {
	Name       string
	StepName   string
	Parameters []PiperEnvironmentParameter
	Categories []string
}

PiperEnvironmentResource defines a piper environement resource which stores data across multiple pipeline steps

func (*PiperEnvironmentResource) StructName added in v1.9.0

func (p *PiperEnvironmentResource) StructName() string

StructName returns the name of the influx resource struct

func (*PiperEnvironmentResource) StructString added in v1.9.0

func (p *PiperEnvironmentResource) StructString() (string, error)

StructString returns the golang coding for the struct definition of the InfluxResource

type StepHelperData added in v1.1.0

type StepHelperData struct {
	OpenFile     func(s string) (io.ReadCloser, error)
	WriteFile    func(filename string, data []byte, perm os.FileMode) error
	ExportPrefix string
}

StepHelperData is used to transport the needed parameters and functions from the step generator to the step generation.

Jump to

Keyboard shortcuts

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