fakes

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCompiledPackageRepo

type FakeCompiledPackageRepo struct {
	SaveInputs []SaveInput
	FindInputs []FindInput
	// contains filtered or unexported fields
}

func NewFakeCompiledPackageRepo

func NewFakeCompiledPackageRepo() *FakeCompiledPackageRepo

func (*FakeCompiledPackageRepo) Find

func (*FakeCompiledPackageRepo) Save

func (*FakeCompiledPackageRepo) SetFindBehavior

func (cpr *FakeCompiledPackageRepo) SetFindBehavior(pkg bmrel.Package, record bmpkgs.CompiledPackageRecord, found bool, err error) error

func (*FakeCompiledPackageRepo) SetSaveBehavior

func (cpr *FakeCompiledPackageRepo) SetSaveBehavior(pkg bmrel.Package, record bmpkgs.CompiledPackageRecord, err error) error

type FakePackageCompiler

type FakePackageCompiler struct {
	CompileError    error
	CompilePackages []*bmrel.Package
}

func NewFakePackageCompiler

func NewFakePackageCompiler() *FakePackageCompiler

func (*FakePackageCompiler) Compile

func (c *FakePackageCompiler) Compile(pkg *bmrel.Package) error

type FakePackageInstaller

type FakePackageInstaller struct {
	InstallInputs []InstallInput
	// contains filtered or unexported fields
}

func NewFakePackageInstaller

func NewFakePackageInstaller() *FakePackageInstaller

func (*FakePackageInstaller) Install

func (f *FakePackageInstaller) Install(pkg *bmrel.Package, targetDir string) error

func (*FakePackageInstaller) SetInstallBehavior

func (f *FakePackageInstaller) SetInstallBehavior(pkg *bmrel.Package, targetDir string, err error)

type FakeReleaseCompiler

type FakeReleaseCompiler struct {
	CompileInputs []compileInput
	// contains filtered or unexported fields
}

func NewFakeReleaseCompiler

func NewFakeReleaseCompiler() *FakeReleaseCompiler

func (*FakeReleaseCompiler) Compile

func (f *FakeReleaseCompiler) Compile(release bmrel.Release, deployment bminstallmanifest.Manifest) error

func (*FakeReleaseCompiler) SetCompileBehavior

func (f *FakeReleaseCompiler) SetCompileBehavior(release bmrel.Release, deployment bminstallmanifest.Manifest, err error) error

type FakeReleasePackagesCompiler

type FakeReleasePackagesCompiler struct {
	CompileError   error
	CompileRelease bmrel.Release
}

func NewFakeReleasePackagesCompiler

func NewFakeReleasePackagesCompiler() *FakeReleasePackagesCompiler

func (*FakeReleasePackagesCompiler) Compile

func (c *FakeReleasePackagesCompiler) Compile(release bmrel.Release) error

type FindInput

type FindInput struct {
	Package bmrel.Package
}

type InstallInput

type InstallInput struct {
	Package *bmrel.Package
	Target  string
}

type SaveInput

type SaveInput struct {
	Package bmrel.Package
	Record  bmpkgs.CompiledPackageRecord
}

Jump to

Keyboard shortcuts

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