mocks

package
v0.0.0-...-cf01e4d Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockControllerConfigAPI

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

MockControllerConfigAPI is a mock of ControllerConfigAPI interface.

func NewMockControllerConfigAPI

func NewMockControllerConfigAPI(ctrl *gomock.Controller) *MockControllerConfigAPI

NewMockControllerConfigAPI creates a new mock instance.

func (*MockControllerConfigAPI) ControllerAPIInfoForModels

func (m *MockControllerConfigAPI) ControllerAPIInfoForModels(arg0 params.Entities) (params.ControllerAPIInfoResults, error)

ControllerAPIInfoForModels mocks base method.

func (*MockControllerConfigAPI) ControllerConfig

ControllerConfig mocks base method.

func (*MockControllerConfigAPI) EXPECT

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

type MockControllerConfigAPIMockRecorder

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

MockControllerConfigAPIMockRecorder is the mock recorder for MockControllerConfigAPI.

func (*MockControllerConfigAPIMockRecorder) ControllerAPIInfoForModels

func (mr *MockControllerConfigAPIMockRecorder) ControllerAPIInfoForModels(arg0 any) *gomock.Call

ControllerAPIInfoForModels indicates an expected call of ControllerAPIInfoForModels.

func (*MockControllerConfigAPIMockRecorder) ControllerConfig

func (mr *MockControllerConfigAPIMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

type MockNotifyWatcher

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

MockNotifyWatcher is a mock of NotifyWatcher interface.

func NewMockNotifyWatcher

func NewMockNotifyWatcher(ctrl *gomock.Controller) *MockNotifyWatcher

NewMockNotifyWatcher creates a new mock instance.

func (*MockNotifyWatcher) Changes

func (m *MockNotifyWatcher) Changes() <-chan struct{}

Changes mocks base method.

func (*MockNotifyWatcher) EXPECT

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

func (*MockNotifyWatcher) Err

func (m *MockNotifyWatcher) Err() error

Err mocks base method.

func (*MockNotifyWatcher) Kill

func (m *MockNotifyWatcher) Kill()

Kill mocks base method.

func (*MockNotifyWatcher) Stop

func (m *MockNotifyWatcher) Stop() error

Stop mocks base method.

func (*MockNotifyWatcher) Wait

func (m *MockNotifyWatcher) Wait() error

Wait mocks base method.

type MockNotifyWatcherMockRecorder

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

MockNotifyWatcherMockRecorder is the mock recorder for MockNotifyWatcher.

func (*MockNotifyWatcherMockRecorder) Changes

func (mr *MockNotifyWatcherMockRecorder) Changes() *gomock.Call

Changes indicates an expected call of Changes.

func (*MockNotifyWatcherMockRecorder) Err

Err indicates an expected call of Err.

func (*MockNotifyWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockNotifyWatcherMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockNotifyWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockState

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

MockState is a mock of State interface.

func NewMockState

func NewMockState(ctrl *gomock.Controller) *MockState

NewMockState creates a new mock instance.

func (*MockState) AllEndpointBindings

func (m *MockState) AllEndpointBindings() (map[string]map[string]string, error)

AllEndpointBindings mocks base method.

func (*MockState) Application

func (m *MockState) Application(arg0 string) (firewall.Application, error)

Application mocks base method.

func (*MockState) ControllerConfig

func (m *MockState) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method.

func (*MockState) EXPECT

func (m *MockState) EXPECT() *MockStateMockRecorder

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

func (*MockState) FindEntity

func (m *MockState) FindEntity(arg0 names.Tag) (state.Entity, error)

FindEntity mocks base method.

func (*MockState) GetMacaroon

func (m *MockState) GetMacaroon(arg0 names.Tag) (*macaroon.Macaroon, error)

GetMacaroon mocks base method.

func (*MockState) IsController

func (m *MockState) IsController() bool

IsController mocks base method.

func (*MockState) KeyRelation

func (m *MockState) KeyRelation(arg0 string) (firewall.Relation, error)

KeyRelation mocks base method.

func (*MockState) Machine

func (m *MockState) Machine(arg0 string) (firewall.Machine, error)

Machine mocks base method.

func (*MockState) ModelConfig

func (m *MockState) ModelConfig() (*config.Config, error)

ModelConfig mocks base method.

func (*MockState) ModelUUID

func (m *MockState) ModelUUID() string

ModelUUID mocks base method.

func (*MockState) SpaceInfos

func (m *MockState) SpaceInfos() (network.SpaceInfos, error)

SpaceInfos mocks base method.

func (*MockState) Unit

func (m *MockState) Unit(arg0 string) (firewall.Unit, error)

Unit mocks base method.

func (*MockState) WatchForModelConfigChanges

func (m *MockState) WatchForModelConfigChanges() state.NotifyWatcher

WatchForModelConfigChanges mocks base method.

func (*MockState) WatchModelMachineStartTimes

func (m *MockState) WatchModelMachineStartTimes(arg0 time.Duration) state.StringsWatcher

WatchModelMachineStartTimes mocks base method.

func (*MockState) WatchModelMachines

func (m *MockState) WatchModelMachines() state.StringsWatcher

WatchModelMachines mocks base method.

func (*MockState) WatchOpenedPorts

func (m *MockState) WatchOpenedPorts() state.StringsWatcher

WatchOpenedPorts mocks base method.

func (*MockState) WatchSubnets

func (m *MockState) WatchSubnets(arg0 func(any) bool) state.StringsWatcher

WatchSubnets mocks base method.

type MockStateMockRecorder

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

MockStateMockRecorder is the mock recorder for MockState.

func (*MockStateMockRecorder) AllEndpointBindings

func (mr *MockStateMockRecorder) AllEndpointBindings() *gomock.Call

AllEndpointBindings indicates an expected call of AllEndpointBindings.

func (*MockStateMockRecorder) Application

func (mr *MockStateMockRecorder) Application(arg0 any) *gomock.Call

Application indicates an expected call of Application.

func (*MockStateMockRecorder) ControllerConfig

func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockStateMockRecorder) FindEntity

func (mr *MockStateMockRecorder) FindEntity(arg0 any) *gomock.Call

FindEntity indicates an expected call of FindEntity.

func (*MockStateMockRecorder) GetMacaroon

func (mr *MockStateMockRecorder) GetMacaroon(arg0 any) *gomock.Call

GetMacaroon indicates an expected call of GetMacaroon.

func (*MockStateMockRecorder) IsController

func (mr *MockStateMockRecorder) IsController() *gomock.Call

IsController indicates an expected call of IsController.

func (*MockStateMockRecorder) KeyRelation

func (mr *MockStateMockRecorder) KeyRelation(arg0 any) *gomock.Call

KeyRelation indicates an expected call of KeyRelation.

func (*MockStateMockRecorder) Machine

func (mr *MockStateMockRecorder) Machine(arg0 any) *gomock.Call

Machine indicates an expected call of Machine.

func (*MockStateMockRecorder) ModelConfig

func (mr *MockStateMockRecorder) ModelConfig() *gomock.Call

ModelConfig indicates an expected call of ModelConfig.

func (*MockStateMockRecorder) ModelUUID

func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call

ModelUUID indicates an expected call of ModelUUID.

func (*MockStateMockRecorder) SpaceInfos

func (mr *MockStateMockRecorder) SpaceInfos() *gomock.Call

SpaceInfos indicates an expected call of SpaceInfos.

func (*MockStateMockRecorder) Unit

func (mr *MockStateMockRecorder) Unit(arg0 any) *gomock.Call

Unit indicates an expected call of Unit.

func (*MockStateMockRecorder) WatchForModelConfigChanges

func (mr *MockStateMockRecorder) WatchForModelConfigChanges() *gomock.Call

WatchForModelConfigChanges indicates an expected call of WatchForModelConfigChanges.

func (*MockStateMockRecorder) WatchModelMachineStartTimes

func (mr *MockStateMockRecorder) WatchModelMachineStartTimes(arg0 any) *gomock.Call

WatchModelMachineStartTimes indicates an expected call of WatchModelMachineStartTimes.

func (*MockStateMockRecorder) WatchModelMachines

func (mr *MockStateMockRecorder) WatchModelMachines() *gomock.Call

WatchModelMachines indicates an expected call of WatchModelMachines.

func (*MockStateMockRecorder) WatchOpenedPorts

func (mr *MockStateMockRecorder) WatchOpenedPorts() *gomock.Call

WatchOpenedPorts indicates an expected call of WatchOpenedPorts.

func (*MockStateMockRecorder) WatchSubnets

func (mr *MockStateMockRecorder) WatchSubnets(arg0 any) *gomock.Call

WatchSubnets indicates an expected call of WatchSubnets.

Jump to

Keyboard shortcuts

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