types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRequest

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

type CheckResponse

type CheckResponse []Version

type ConfigProviderEnum

type ConfigProviderEnum string
const (
	ConfigProviderUnspecified ConfigProviderEnum = ""
	ConfigProviderGit         ConfigProviderEnum = "git"
)

type FileProviderEnum

type FileProviderEnum string
const (
	FileProviderUnspecified FileProviderEnum = ""
	FileProviderPivnet      FileProviderEnum = "pivnet"
	FileProviderS3          FileProviderEnum = "s3"
	FileProviderHTTP        FileProviderEnum = "http"
)

type InParams

type InParams struct {
	Product  string `json:"product"`
	Stemcell bool   `json:"stemcell"`
	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"`
}

type Metadata

type Metadata []MetadataField

type MetadataField

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

type OutRequest

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

type OutResponse

type OutResponse struct {
	Version  Version  `json:"version"`
	Metadata Metadata `json:"metadata"`
}

type Source

type Source struct {
	ConfigProvider       ConfigProviderEnum `json:"config_provider"`
	FileProvider         FileProviderEnum   `json:"file_provider"`
	VersionRoot          string             `json:"version_root"`
	URI                  string             `json:"uri"`
	Branch               string             `json:"branch"`
	PrivateKey           string             `json:"private_key"`
	Username             string             `json:"username"`
	Password             string             `json:"password"`
	Path                 string             `json:"path"`
	PivnetToken          string             `json:"pivnet_token"`
	Bucket               string             `json:"bucket"`
	AccessKeyID          string             `json:"access_key_id"`
	SecretAccessKey      string             `json:"secret_access_key"`
	RegionName           string             `json:"region_name"`
	Endpoint             string             `json:"endpoint"`
	DisableSSL           bool               `json:"disable_ssl"`
	SkipSSLVerification  bool               `json:"skip_ssl_verification"`
	ServerSideEncryption string             `json:"server_side_encryption"`
	UseV2Signing         bool               `json:"use_v2_signing"`
	BaseHTTPURI          string             `json:"base_http_uri"`
}

type Version

type Version struct {
	Ref string `json:"ref"`
}

type VersionInfo

type VersionInfo struct {
	Version             string `yaml:"version"`
	PivotalProduct      string `yaml:"product"`
	FilePattern         string `yaml:"file_pattern"`
	StemcellVersion     string `yaml:"stemcell_version"`
	StemcellFilePattern string `yaml:"stemcell_file_pattern"`
	StemcellProduct     string `yaml:"stemcell_product"`
}

func (*VersionInfo) StemcellProductPath added in v0.0.2

func (v *VersionInfo) StemcellProductPath() string

Jump to

Keyboard shortcuts

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