isolationgroup

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 5 Imported by: 1 module, 0 packages

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 isolationgroup is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) AvailableIsolationGroupsByDomainID

func (m *MockState) AvailableIsolationGroupsByDomainID(ctx context.Context, domainID string, availableIsolationGroups []string) (types.IsolationGroupConfiguration, error)

AvailableIsolationGroupsByDomainID 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) IsDrained

func (m *MockState) IsDrained(ctx context.Context, Domain, IsolationGroup string) (bool, error)

IsDrained mocks base method.

func (*MockState) IsDrainedByDomainID

func (m *MockState) IsDrainedByDomainID(ctx context.Context, DomainID, IsolationGroup string) (bool, error)

IsDrainedByDomainID mocks base method.

func (*MockState) Start

func (m *MockState) Start()

Start mocks base method.

func (*MockState) Stop

func (m *MockState) Stop()

Stop mocks base method.

type MockStateMockRecorder

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

MockStateMockRecorder is the mock recorder for MockState.

func (*MockStateMockRecorder) AvailableIsolationGroupsByDomainID

func (mr *MockStateMockRecorder) AvailableIsolationGroupsByDomainID(ctx, domainID, availableIsolationGroups interface{}) *gomock.Call

AvailableIsolationGroupsByDomainID indicates an expected call of AvailableIsolationGroupsByDomainID.

func (*MockStateMockRecorder) IsDrained

func (mr *MockStateMockRecorder) IsDrained(ctx, Domain, IsolationGroup interface{}) *gomock.Call

IsDrained indicates an expected call of IsDrained.

func (*MockStateMockRecorder) IsDrainedByDomainID

func (mr *MockStateMockRecorder) IsDrainedByDomainID(ctx, DomainID, IsolationGroup interface{}) *gomock.Call

IsDrainedByDomainID indicates an expected call of IsDrainedByDomainID.

func (*MockStateMockRecorder) Start

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

Start indicates an expected call of Start.

func (*MockStateMockRecorder) Stop

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

Stop indicates an expected call of Stop.

type State

type State interface {
	common.Daemon
	// IsDrained answers the question - "is this particular isolationGroup drained?". Used by startWorkflow calls
	// and similar sync frontend calls to make routing decisions
	IsDrained(ctx context.Context, Domain string, IsolationGroup string) (bool, error)
	IsDrainedByDomainID(ctx context.Context, DomainID string, IsolationGroup string) (bool, error)

	// AvailableIsolationGroupsByDomainID returns the available isolation zones for a domain.
	// Takes into account global and domain zones
	AvailableIsolationGroupsByDomainID(ctx context.Context, domainID string, availableIsolationGroups []string) (types.IsolationGroupConfiguration, error)
}

State is a heavily cached in-memory library for returning the state of what zones are healthy or drained presently. It may return an inclusive (allow-list based) or an exclusive (deny-list based) set of IsolationGroups depending on the implementation.

Directories

Path Synopsis
Package isolationgroupapi is a generated GoMock package.
Package isolationgroupapi is a generated GoMock package.

Jump to

Keyboard shortcuts

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