hostfile

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package hostfile is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v1.0.0

func NewClient() (*hostfile, error)

NewClient returns a new Hostfile manager client

Types

type Hostfile added in v1.0.0

type Hostfile interface {
	AddHost(ip, hostname string) error
	RemoveHost(hostname string) error
}

type MockHostfile added in v1.0.14

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

MockHostfile is a mock of Hostfile interface.

func NewMockHostfile added in v1.0.14

func NewMockHostfile(ctrl *gomock.Controller) *MockHostfile

NewMockHostfile creates a new mock instance.

func (*MockHostfile) AddHost added in v1.0.14

func (m *MockHostfile) AddHost(ip, hostname string) error

AddHost mocks base method.

func (*MockHostfile) EXPECT added in v1.0.14

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHostfile) RemoveHost added in v1.0.14

func (m *MockHostfile) RemoveHost(hostname string) error

RemoveHost mocks base method.

type MockHostfileMockRecorder added in v1.0.14

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

MockHostfileMockRecorder is the mock recorder for MockHostfile.

func (*MockHostfileMockRecorder) AddHost added in v1.0.14

func (mr *MockHostfileMockRecorder) AddHost(ip, hostname interface{}) *gomock.Call

AddHost indicates an expected call of AddHost.

func (*MockHostfileMockRecorder) RemoveHost added in v1.0.14

func (mr *MockHostfileMockRecorder) RemoveHost(hostname interface{}) *gomock.Call

RemoveHost indicates an expected call of RemoveHost.

Jump to

Keyboard shortcuts

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