fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	StorageServiceResult *client.StorageService
	StorageServiceError  error
}

func NewClient

func NewClient() *FakeClient

func (*FakeClient) SetReleaseVersion

func (c *FakeClient) SetReleaseVersion(v string) *FakeClient

func (*FakeClient) SetStorageServiceError

func (c *FakeClient) SetStorageServiceError(e string) *FakeClient

func (*FakeClient) StorageService

func (c *FakeClient) StorageService() (*client.StorageService, error)

type FakeNodeTool

type FakeNodeTool struct {
	StatusResult  nodetool.NodeMap
	StatusError   error
	VersionResult *version.Version
	VersionError  error
}

func New

func New() *FakeNodeTool

func (*FakeNodeTool) SetVersion

func (nt *FakeNodeTool) SetVersion(v string) *FakeNodeTool

func (*FakeNodeTool) SetVersionError

func (nt *FakeNodeTool) SetVersionError(e string) *FakeNodeTool

func (*FakeNodeTool) Status

func (nt *FakeNodeTool) Status() (nodetool.NodeMap, error)

func (*FakeNodeTool) Version

func (nt *FakeNodeTool) Version() (*version.Version, error)

Jump to

Keyboard shortcuts

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