isolationgroupapi

package
v1.2.12-prerelease6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package isolationgroupapi is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapAllIsolationGroupsResponse

func MapAllIsolationGroupsResponse(in []interface{}) ([]string, error)

func MapDynamicConfigResponse

func MapDynamicConfigResponse(in []interface{}) (out types.IsolationGroupConfiguration, err error)

func MapUpdateGlobalIsolationGroupsRequest

func MapUpdateGlobalIsolationGroupsRequest(in types.IsolationGroupConfiguration) ([]*types.DynamicConfigValue, error)

Types

type Handler

type Handler interface {
	// GetGlobalState returns the current configuration of isolation-groups which apply to all domains
	GetGlobalState(ctx context.Context) (*types.GetGlobalIsolationGroupsResponse, error)
	// UpdateGlobalState updates isolation-groups which apply to all domains
	UpdateGlobalState(ctx context.Context, state types.UpdateGlobalIsolationGroupsRequest) error
	// GetDomainState is the read operation for getting the current state of a domain's isolation-groups
	GetDomainState(ctx context.Context, request types.GetDomainIsolationGroupsRequest) (*types.GetDomainIsolationGroupsResponse, error)
	// UpdateDomainState is the read operation for updating a domain's isolation-groups
	UpdateDomainState(ctx context.Context, state types.UpdateDomainIsolationGroupsRequest) error
}

func New

func New(log log.Logger, igConfigStore dynamicconfig.Client, dh domain.Handler) Handler

type MockHandler

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

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) GetDomainState

GetDomainState mocks base method.

func (*MockHandler) GetGlobalState

GetGlobalState mocks base method.

func (*MockHandler) UpdateDomainState

func (m *MockHandler) UpdateDomainState(ctx context.Context, state types.UpdateDomainIsolationGroupsRequest) error

UpdateDomainState mocks base method.

func (*MockHandler) UpdateGlobalState

func (m *MockHandler) UpdateGlobalState(ctx context.Context, state types.UpdateGlobalIsolationGroupsRequest) error

UpdateGlobalState mocks base method.

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) GetDomainState

func (mr *MockHandlerMockRecorder) GetDomainState(ctx, request interface{}) *gomock.Call

GetDomainState indicates an expected call of GetDomainState.

func (*MockHandlerMockRecorder) GetGlobalState

func (mr *MockHandlerMockRecorder) GetGlobalState(ctx interface{}) *gomock.Call

GetGlobalState indicates an expected call of GetGlobalState.

func (*MockHandlerMockRecorder) UpdateDomainState

func (mr *MockHandlerMockRecorder) UpdateDomainState(ctx, state interface{}) *gomock.Call

UpdateDomainState indicates an expected call of UpdateDomainState.

func (*MockHandlerMockRecorder) UpdateGlobalState

func (mr *MockHandlerMockRecorder) UpdateGlobalState(ctx, state interface{}) *gomock.Call

UpdateGlobalState indicates an expected call of UpdateGlobalState.

Jump to

Keyboard shortcuts

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