cloudbuild2dot

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDotFile

func BuildDotFile(cloudBuildConfig CloudBuildConfig) string

BuildDotFile builds a GraphViz .dot file from a Google Cloud Build configuration

Types

type CloudBuildConfig

type CloudBuildConfig struct {
	Steps []Step
}

CloudBuildConfig contains the parts of the Cloud Build configuration schema that are relevant for generating the steps graph

func LoadCloudBuildConfig

func LoadCloudBuildConfig(filename string) (cloudBuildConfig CloudBuildConfig, err error)

LoadCloudBuildConfig looks for the Cloud Build configuration file (currently only YAML is supported) and returns a CloudBuildConfig.

type Step

type Step struct {
	ID      string
	Name    string
	Args    []string
	WaitFor []string `yaml:"waitFor"`
}

Step contains the parts of a single build step within a Cloud Build configuration that are relevant for generating the steps graph

Jump to

Keyboard shortcuts

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