fakes

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRelease

type FakeRelease struct {
	ReleaseName     string
	ReleaseVersion  string
	ReleaseJobs     []bireljob.Job
	ReleasePackages []*birelpkg.Package

	DeleteCalled bool
	DeleteErr    error
}

func New

func New(name, version string) *FakeRelease

func NewFakeRelease

func NewFakeRelease() *FakeRelease

func (*FakeRelease) Delete

func (r *FakeRelease) Delete() error

func (*FakeRelease) Exists

func (r *FakeRelease) Exists() bool

func (*FakeRelease) FindJobByName

func (r *FakeRelease) FindJobByName(jobName string) (bireljob.Job, bool)

func (*FakeRelease) Jobs

func (r *FakeRelease) Jobs() []bireljob.Job

func (*FakeRelease) Name

func (r *FakeRelease) Name() string

func (*FakeRelease) Packages

func (r *FakeRelease) Packages() []*birelpkg.Package

func (*FakeRelease) Version

func (r *FakeRelease) Version() string

type FakeValidator

type FakeValidator struct {
	ValidateError error
}

func NewFakeValidator

func NewFakeValidator() *FakeValidator

func (*FakeValidator) Validate

func (f *FakeValidator) Validate(release birel.Release) error

Jump to

Keyboard shortcuts

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