ccuploader

package module
v0.0.0-...-0788a77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

CC Uploader

Note: This repository should be imported as code.cloudfoundry.org/cc-uploader.

CC Bridge component to enable Diego to upload files to Cloud Controller's blobstore

Uploading Droplets & Build Artifacts

Uploading droplets & build artifacts via CC involves crafting a correctly-formed multipart request. For Droplets we also poll until the async job completes.

Testing

To specify a remote cloud controller to test against, use the following environment variables:

CC_ADDRESS the hostname for a deployed CC CC_USERNAME, CC_PASSWORD the basic auth credentials for the droplet upload endpoint CC_APPGUID a valid app guid on that deployed CC

####Learn more about Diego and its components at diego-design-notes

Generating cert fixtures

$ echo "Generating CA"
$ certstrap --depot-path . init --passphrase '' --common-name cc_uploader_ca_cn
$ echo "Generating server csr"
$ certstrap --depot-path . request-cert --passphrase '' --common-name cc_cn --ip 127.0.0.1
$ echo "Generating server cert"
$ certstrap --depot-path . sign cc_cn --CA cc_uploader_ca_cn
$ echo "Generating client csr"
$ certstrap --depot-path . request-cert --passphrase '' --common-name cc_uploader_cn --ip 127.0.0.1
$ echo "Generating client cert"
$ certstrap --depot-path . sign cc_uploader_cn --CA cc_uploader_ca_cn

Documentation

Index

Constants

View Source
const (
	UploadDropletRoute        = "UploadDroplet"
	UploadBuildArtifactsRoute = "UploadBuildArtifacts"
)

Variables

View Source
var Routes = rata.Routes{
	{Name: UploadDropletRoute, Method: "POST", Path: "/v1/droplet/:guid"},
	{Name: UploadBuildArtifactsRoute, Method: "POST", Path: "/v1/build_artifacts/:app_guid"},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
fake_ccclient
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter
cmd

Jump to

Keyboard shortcuts

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