isolationgroupapi

package
v1.2.14-prerelease13 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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