models

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Metadata holds metadata from `in` and `out` command. Response from `out` command needs it to comply with Concourse specification

type Params

type Params struct {
	Interpreter  string        `json:"interpreter"`
	Script       string        `json:"script"`
	Placeholders []Placeholder `json:"placeholders"`
}

Params holds script so user can run multiple scripts on the same machine in Concourse CI pipeline

type Placeholder

type Placeholder struct {
	Name  string `json:"name"`
	Value string `json:"value"`
	File  string `json:"file"`
}

Placeholder holds Name and either Value for primitive value or File for file content

type Source

type Source struct {
	Host       string `json:"host"`
	Port       int    `json:"port"`
	User       string `json:"user"`
	Password   string `json:"password"`
	PrivateKey string `json:"private_key"`
}

Source holds information to connect remote machine via SSH

type Version

type Version struct {
	Timestamp string `json:"time"`
}

Version is breadcrumb for Concourse CI to choose whether to run the pipeline or not. Response from `out` command needs it included to comply with Concourse specification

Jump to

Keyboard shortcuts

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