cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectReleaseSpecsAndProviderLinks(mStruct *manifest.Manifest, baseDir string, namespace string) (map[string]map[string]manifest.JobSpec, map[string]map[string]manifest.JobLink, error)

CollectReleaseSpecsAndProviderLinks will collect all release specs and bosh links for provider jobs

func Execute

func Execute()

Execute the root command, runs the server

func GatherData

func GatherData(mStruct *manifest.Manifest, baseDir string, namespace string, instanceGroupName string) ([]byte, error)

GatherData will collect different data Collect job spec information Collect job properties Collect bosh links Render the bpm yaml file data

func GenerateJobConsumersData

func GenerateJobConsumersData(currentJob *manifest.Job, jobReleaseSpecs map[string]map[string]manifest.JobSpec, jobProviderLinks map[string]map[string]manifest.JobLink) error

GenerateJobConsumersData will populate a job with its corresponding provider links under properties.bosh_containerization.consumes

func LookUpProperty

func LookUpProperty(job manifest.Job, propertyName string) (interface{}, bool)

LookUpProperty search for property value in the job properties

func ProcessConsumersAndRenderBPM

func ProcessConsumersAndRenderBPM(mStruct *manifest.Manifest, baseDir string, jobReleaseSpecs map[string]map[string]manifest.JobSpec, jobProviderLinks map[string]map[string]manifest.JobLink, instanceGroupName string) ([]byte, error)

ProcessConsumersAndRenderBPM will generate a proper context for links and render the required ERB files

func RenderData

func RenderData(manifestPath string, jobsDir, jobsOutputDir string, instanceGroupName string, index int) error

RenderData will render manifest instance group

func RenderJobBPM

func RenderJobBPM(currentJob manifest.Job, jobInstances []manifest.JobInstance, baseDir string, manifestName string) error

RenderJobBPM per job and add its value to the jobInstances.BPM field

func RetrieveNestedProperty

func RetrieveNestedProperty(jobSpec manifest.JobSpec, propertyName string) map[string]interface{}

RetrieveNestedProperty will generate an nested struct based on a string of the type foo.bar

func RetrievePropertyDefault

func RetrievePropertyDefault(jobSpec manifest.JobSpec, propertyName string) interface{}

RetrievePropertyDefault return the default value of the spec property

Types

This section is empty.

Jump to

Keyboard shortcuts

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