concourse

package
v2.13.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 16

Documentation

Index

Constants

View Source
const MissingTarget = "MISSING-TARGET-SHORTCIRCUIT.example.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRequest

type CheckRequest struct {
	Source  Source  `json:"source"`
	Version Version `json:"version"`
}

func NewCheckRequest

func NewCheckRequest(request []byte) (CheckRequest, error)

type CompiledRelease

type CompiledRelease struct {
	Name string   `json:"name"`
	Jobs []string `json:"jobs"`
}

type DeleteParams

type DeleteParams struct {
	Enabled bool `json:"enabled,omitempty"`
	Force   bool `json:"force,omitempty"`
}

type InParams

type InParams struct {
	CompiledReleases []CompiledRelease `json:"compiled_releases,omitempty"`
}

type InRequest

type InRequest struct {
	Source  Source   `json:"source"`
	Version Version  `json:"version"`
	Params  InParams `json:"params"`
}

func NewInRequest

func NewInRequest(request []byte) (InRequest, error)

type Metadata

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

type OutParams

type OutParams struct {
	Manifest    string                 `json:"manifest"`
	NoRedact    bool                   `json:"no_redact,omitempty"`
	DryRun      bool                   `json:"dry_run,omitempty"`
	MaxInFlight int                    `json:"max_in_flight,omitempty"`
	Recreate    bool                   `json:"recreate,omitempty"`
	SkipDrain   []string               `json:"skip_drain,omitempty"`
	Cleanup     bool                   `json:"cleanup,omitempty"`
	Releases    []string               `json:"releases,omitempty"`
	Stemcells   []string               `json:"stemcells,omitempty"`
	Vars        map[string]interface{} `json:"vars,omitempty"`
	VarsFiles   []string               `json:"vars_files,omitempty"`
	VarFiles    map[string]string      `json:"var_files,omitempty"`
	OpsFiles    []string               `json:"ops_files,omitempty"`
	Delete      DeleteParams           `json:"delete,omitempty"`
}

type OutRequest

type OutRequest struct {
	Params OutParams `json:"params"`
	Source Source    `json:"source"`
}

func NewOutRequest

func NewOutRequest(request []byte, sourcesDir string) (OutRequest, error)

type Source

type Source struct {
	Deployment      string    `json:"deployment,omitempty" yaml:"deployment"`
	Client          string    `json:"client,omitempty" yaml:"client"`
	ClientSecret    string    `json:"client_secret,omitempty" yaml:"client_secret"`
	Target          string    `json:"target,omitempty" yaml:"target"`
	CACert          string    `json:"ca_cert,omitempty" yaml:"ca_cert"`
	JumpboxSSHKey   string    `json:"jumpbox_ssh_key,omitempty" yaml:"jumpbox_ssh_key"`
	JumpboxURL      string    `json:"jumpbox_url,omitempty" yaml:"jumpbox_url"`
	JumpboxUsername string    `json:"jumpbox_username,omitempty" yaml:"jumpbox_username"`
	VarsStore       VarsStore `json:"vars_store,omitempty" yaml:"vars_store"`
	SkipCheck       bool      `json:"skip_check,omitempty" yaml:"skip_check"`
}

func NewDynamicSource

func NewDynamicSource(config []byte, sourcesDir string) (Source, error)

type VarsStore

type VarsStore struct {
	Provider string                 `json:"provider,omitempty" yaml:"provider"`
	Config   map[string]interface{} `json:"config,omitempty" yaml:"config"`
}

type Version

type Version struct {
	ManifestSha1 string `json:"manifest_sha1"`
	Target       string `json:"target"`
}

func NewVersion

func NewVersion(bytesToSha1 []byte, target string) Version

Jump to

Keyboard shortcuts

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