virt_api

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.12.0

type File interface {
	io.Closer
	io.Writer
}

type Filesystem added in v0.12.0

type Filesystem interface {
	WriteFile(filename string, data []byte, perm os.FileMode) error
	TempDir(dir, prefix string) (name string, err error)
	OpenFile(name string, flag int, perm os.FileMode) (File, error)
}

type IOUtil added in v0.12.0

type IOUtil struct{}

func (IOUtil) OpenFile added in v0.12.0

func (IOUtil) OpenFile(name string, flag int, perm os.FileMode) (File, error)

func (IOUtil) TempDir added in v0.12.0

func (IOUtil) TempDir(dir, prefix string) (name string, err error)

func (IOUtil) WriteFile added in v0.12.0

func (IOUtil) WriteFile(filename string, data []byte, perm os.FileMode) error

type MockFile added in v0.12.0

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

Mock of File interface

func NewMockFile added in v0.12.0

func NewMockFile(ctrl *gomock.Controller) *MockFile

func (*MockFile) Close added in v0.12.0

func (_m *MockFile) Close() error

func (*MockFile) EXPECT added in v0.12.0

func (_m *MockFile) EXPECT() *_MockFileRecorder

func (*MockFile) Write added in v0.12.0

func (_m *MockFile) Write(p []byte) (int, error)

type MockFilesystem added in v0.12.0

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

Mock of Filesystem interface

func NewMockFilesystem added in v0.12.0

func NewMockFilesystem(ctrl *gomock.Controller) *MockFilesystem

func (*MockFilesystem) EXPECT added in v0.12.0

func (_m *MockFilesystem) EXPECT() *_MockFilesystemRecorder

func (*MockFilesystem) OpenFile added in v0.12.0

func (_m *MockFilesystem) OpenFile(name string, flag int, perm os.FileMode) (File, error)

func (*MockFilesystem) TempDir added in v0.12.0

func (_m *MockFilesystem) TempDir(dir string, prefix string) (string, error)

func (*MockFilesystem) WriteFile added in v0.12.0

func (_m *MockFilesystem) WriteFile(filename string, data []byte, perm os.FileMode) error

type VirtApi added in v0.4.0

type VirtApi interface {
	Compose()
	Run()
	AddFlags()
	ConfigureOpenAPIService()
	Execute()
}

func NewVirtApi added in v0.4.0

func NewVirtApi() VirtApi

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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