converter

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(d []byte, m Metadata) ([]byte, error)

Convert converts the yaml configuration file from the legacy format to the 1.0+ format.

func ConvertString

func ConvertString(s string, m Metadata) (string, error)

ConvertString converts the yaml configuration file from the legacy format to the 1.0+ format.

Types

type Metadata

type Metadata struct {
	// Filename of the configuration file, helps
	// determine the yaml configuration format.
	Filename string

	// URL of the repository used to create the repository
	// workspace directory using the fully qualified name.
	// e.g. /drone/src/github.com/octocat/hello-world
	URL string

	// Ref of the commit used to choose the correct
	// pipeline if the configuration format defines
	// multiple pipelines (like Bitbucket)
	Ref string
}

Metadata provides additional metadata used to convert the configuration file format.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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