fakes

package
v2.0.40+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddInput

type AddInput struct {
	SourcePath string
}

type FakeBlobstore

type FakeBlobstore struct {
	GetInputs []GetInput
	GetErr    error

	AddInputs []AddInput
	AddBlobID string
	AddErr    error
}

func NewFakeBlobstore

func NewFakeBlobstore() *FakeBlobstore

func (*FakeBlobstore) Add

func (b *FakeBlobstore) Add(sourcePath string) (blobID string, err error)

func (*FakeBlobstore) Get

func (b *FakeBlobstore) Get(blobID string, destinationPath string) error

type FakeBlobstoreFactory

type FakeBlobstoreFactory struct {
	CreateBlobstoreURL string
	CreateBlobstore    biblobstore.Blobstore
	CreateErr          error
}

func NewFakeBlobstoreFactory

func NewFakeBlobstoreFactory() *FakeBlobstoreFactory

func (*FakeBlobstoreFactory) Create

func (f *FakeBlobstoreFactory) Create(blobstoreURL string) (biblobstore.Blobstore, error)

type GetInput

type GetInput struct {
	BlobID          string
	DestinationPath string
}

Jump to

Keyboard shortcuts

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