fakes

package
v29.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 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 FakeImageService

type FakeImageService struct {
	CreateFromURLCalled      bool
	CreateFromURLErr         error
	CreateFromURLID          string
	CreateFromURLSourceURL   string
	CreateFromURLSourceSha1  string
	CreateFromURLDescription string

	CreateFromTarballCalled      bool
	CreateFromTarballErr         error
	CreateFromTarballID          string
	CreateFromTarballImagePath   string
	CreateFromTarballDescription string

	DeleteCalled bool
	DeleteErr    error

	FindCalled bool
	FindFound  bool
	FindImage  image.Image
	FindErr    error
}

func (*FakeImageService) CreateFromTarball

func (i *FakeImageService) CreateFromTarball(imagePath string, description string) (string, error)

func (*FakeImageService) CreateFromURL

func (i *FakeImageService) CreateFromURL(sourceURL string, sourceSha1 string, description string) (string, error)

func (*FakeImageService) Delete

func (i *FakeImageService) Delete(id string) error

func (*FakeImageService) Find

func (i *FakeImageService) Find(id string) (image.Image, bool, error)

Jump to

Keyboard shortcuts

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