concourse

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizedSource

func SanitizedSource(source Source) map[string]string

Types

type CheckRequest

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

type CheckResponse

type CheckResponse []Version

type InParams

type InParams struct {
	Globs  []string `json:"globs"`
	Unpack bool     `json:"unpack"`
}

type InRequest

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

type InResponse

type InResponse struct {
	Version  Version    `json:"version"`
	Metadata []Metadata `json:"metadata,omitempty"`
}

type Metadata

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

type OutParams

type OutParams struct {
	FileGlob               string `json:"file_glob"`
	MetadataFile           string `json:"metadata_file"`
	SkipProductFilePolling bool   `json:"skip_product_file_polling"`
	Override               bool   `json:"override"`
}

type OutRequest

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

type OutResponse

type OutResponse struct {
	Version  Version    `json:"version"`
	Metadata []Metadata `json:"metadata,omitempty"`
}

type SortBy

type SortBy string
const (
	SortByNone        SortBy = "none"
	SortBySemver      SortBy = "semver"
	SortByLastUpdated SortBy = "last_updated"
)

type Source

type Source struct {
	APIToken          string `json:"api_token"`
	ProductSlug       string `json:"product_slug"`
	ProductVersion    string `json:"product_version"`
	Endpoint          string `json:"endpoint"`
	ReleaseType       string `json:"release_type"`
	SortBy            SortBy `json:"sort_by"`
	SkipSSLValidation bool   `json:"skip_ssl_verification"`
	CopyMetadata      bool   `json:"copy_metadata"`
	Verbose           bool   `json:"verbose"`
}

type Version

type Version struct {
	ProductVersion string `json:"product_version"`
}

Jump to

Keyboard shortcuts

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