cutlass

package
v0.0.0-...-f75f763 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cached bool = false
View Source
var DefaultDisk string = ""
View Source
var DefaultMemory string = ""
View Source
var DefaultStdoutStderr io.Writer = nil

Functions

func ApiVersion

func ApiVersion() (string, error)

func CopyCfHome

func CopyCfHome() error

func CopyFixture

func CopyFixture(srcDir string) (string, error)

func CountBuildpack

func CountBuildpack(language string) (int, error)

func CreateOrUpdateBuildpack

func CreateOrUpdateBuildpack(language, file string) error

func DeleteBuildpack

func DeleteBuildpack(language string) error

func DeleteOrphanedRoutes

func DeleteOrphanedRoutes() error

func FindRoot

func FindRoot() (string, error)

func InternetTraffic

func InternetTraffic(bp_dir, fixture_path, buildpack_path string, envs []string) ([]string, bool, error)

func NewProxy

func NewProxy() (*httptest.Server, error)

func NewTLSProxy

func NewTLSProxy() (*httptest.Server, error)

func RandStringRunes

func RandStringRunes(n int) string

func RemovePackagedBuildpack

func RemovePackagedBuildpack(buildpack VersionedBuildpackPackage) error

func SeedRandom

func SeedRandom()

func Stacks

func Stacks() ([]string, error)

func UniqueDestination

func UniqueDestination(traffic []string, destination string) error

func UpdateBuildpack

func UpdateBuildpack(language, file string) error

Types

type App

type App struct {
	Name         string
	Path         string
	Stack        string
	Buildpacks   []string
	Memory       string
	Disk         string
	StartCommand string
	Stdout       *Buffer
	// contains filtered or unexported fields
}

func New

func New(fixture string) *App

func (*App) AppGUID

func (a *App) AppGUID() (string, error)

func (*App) ConfirmBuildpack

func (a *App) ConfirmBuildpack(version string) error

func (*App) Destroy

func (a *App) Destroy() error

func (*App) DownloadDroplet

func (a *App) DownloadDroplet(path string) error

func (*App) Files

func (a *App) Files(path string) ([]string, error)

func (*App) Get

func (a *App) Get(path string, headers map[string]string) (string, map[string][]string, error)

func (*App) GetBody

func (a *App) GetBody(path string) (string, error)

func (*App) GetUrl

func (a *App) GetUrl(path string) (string, error)

func (*App) InstanceStates

func (a *App) InstanceStates() ([]string, error)

func (*App) Push

func (a *App) Push() error

func (*App) PushNoStart

func (a *App) PushNoStart() error

func (*App) Restart

func (a *App) Restart() error

func (*App) RunTask

func (a *App) RunTask(command string) ([]byte, error)

func (*App) SetEnv

func (a *App) SetEnv(key, value string)

func (*App) SpaceGUID

func (a *App) SpaceGUID() (string, error)

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (n int, err error)

func (*Buffer) Reset

func (b *Buffer) Reset()

func (*Buffer) String

func (b *Buffer) String() string

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

type VersionedBuildpackPackage

type VersionedBuildpackPackage struct {
	Version string
	File    string
}

func PackageUniquelyVersionedBuildpack

func PackageUniquelyVersionedBuildpack(stack string) (VersionedBuildpackPackage, error)

func PackageUniquelyVersionedBuildpackExtra

func PackageUniquelyVersionedBuildpackExtra(name, version, stack string, cached bool) (VersionedBuildpackPackage, error)

Jump to

Keyboard shortcuts

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