lattice

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Package lattice is a generated GoMock package.

Package lattice is a generated GoMock package.

Package lattice is a generated GoMock package.

Package lattice is a generated GoMock package.

Package lattice is a generated GoMock package.

Package lattice is a generated GoMock package.

Index

Constants

View Source
const (
	LATTICE_CREATE_IN_PROGRESS = "LATTICE_CREATE_IN_PROGRESS"
	LATTICE_DELETE_IN_PROGRESS = "LATTICE_DELETE_IN_PROGRESS"
	LATTICE_NOT_FOUND          = "LATTICE_NOT_FOUND"
	LATTICE_ALREADY_EXIST      = "LATTICE_ALREADY_EXIST"
	LATTICE_RETRY              = "LATTICE_RETRY"
)

Variables

This section is empty.

Functions

func NewDefaultServiceNetworkManager

func NewDefaultServiceNetworkManager(cloud lattice_aws.Cloud) *defaultServiceNetworkManager

func NewListenerManager

func NewListenerManager(cloud lattice_aws.Cloud, latticeDataStore *latticestore.LatticeDataStore) *defaultListenerManager

func NewListenerSynthesizer

func NewListenerSynthesizer(ListenerManager ListenerManager, stack core.Stack, store *latticestore.LatticeDataStore) *listenerSynthesizer

func NewRuleManager

func NewRuleManager(cloud lattice_aws.Cloud, store *latticestore.LatticeDataStore) *defaultRuleManager

func NewRuleSynthesizer

func NewRuleSynthesizer(ruleManager RuleManager, stack core.Stack, store *latticestore.LatticeDataStore) *ruleSynthesizer

func NewServiceManager

func NewServiceManager(cloud lattice_aws.Cloud, latticeDataStore *latticestore.LatticeDataStore) *defaultServiceManager

func NewServiceNetworkSynthesizer

func NewServiceNetworkSynthesizer(client client.Client, serviceNetworkManager ServiceNetworkManager, stack core.Stack, latticeDataStore *latticestore.LatticeDataStore) *serviceNetworkSynthesizer

func NewServiceSynthesizer

func NewServiceSynthesizer(serviceManager ServiceManager, stack core.Stack, latticeDataStore *latticestore.LatticeDataStore) *serviceSynthesizer

func NewTargetGroupManager

func NewTargetGroupManager(cloud lattice_aws.Cloud) *defaultTargetGroupManager

func NewTargetGroupSynthesizer

func NewTargetGroupSynthesizer(cloud lattice_aws.Cloud, client client.Client, tgManager TargetGroupManager, stack core.Stack, latticeDataStore *latticestore.LatticeDataStore) *targetGroupSynthesizer

func NewTargetsManager

func NewTargetsManager(cloud lattice_aws.Cloud, datastore *latticestore.LatticeDataStore) *defaultTargetsManager

func NewTargetsSynthesizer

func NewTargetsSynthesizer(cloud lattice_aws.Cloud, tgManager TargetsManager, stack core.Stack, latticeDataStore *latticestore.LatticeDataStore) *targetsSynthesizer

Types

type ListenerManager

type ListenerManager interface {
	Create(ctx context.Context, service *latticemodel.Listener) (latticemodel.ListenerStatus, error)
	Delete(ctx context.Context, listenerID string, serviceID string) error
	List(ctx context.Context, serviceID string) ([]*vpclattice.ListenerSummary, error)
}

type MockListenerManager

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

MockListenerManager is a mock of ListenerManager interface.

func NewMockListenerManager

func NewMockListenerManager(ctrl *gomock.Controller) *MockListenerManager

NewMockListenerManager creates a new mock instance.

func (*MockListenerManager) Create

Create mocks base method.

func (*MockListenerManager) Delete

func (m *MockListenerManager) Delete(ctx context.Context, listenerID, serviceID string) error

Delete mocks base method.

func (*MockListenerManager) EXPECT

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

func (*MockListenerManager) List

List mocks base method.

type MockListenerManagerMockRecorder

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

MockListenerManagerMockRecorder is the mock recorder for MockListenerManager.

func (*MockListenerManagerMockRecorder) Create

func (mr *MockListenerManagerMockRecorder) Create(ctx, service interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockListenerManagerMockRecorder) Delete

func (mr *MockListenerManagerMockRecorder) Delete(ctx, listenerID, serviceID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockListenerManagerMockRecorder) List

func (mr *MockListenerManagerMockRecorder) List(ctx, serviceID interface{}) *gomock.Call

List indicates an expected call of List.

type MockRuleManager

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

MockRuleManager is a mock of RuleManager interface.

func NewMockRuleManager

func NewMockRuleManager(ctrl *gomock.Controller) *MockRuleManager

NewMockRuleManager creates a new mock instance.

func (*MockRuleManager) Create

Create mocks base method.

func (*MockRuleManager) Delete

func (m *MockRuleManager) Delete(ctx context.Context, ruleID, listenerID, serviceID string) error

Delete mocks base method.

func (*MockRuleManager) EXPECT

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

func (*MockRuleManager) Get

func (m *MockRuleManager) Get(ctx context.Context, serviceID, listernID, ruleID string) (*vpclattice.GetRuleOutput, error)

Get mocks base method.

func (*MockRuleManager) List

func (m *MockRuleManager) List(ctx context.Context, serviceID, listenerID string) ([]*lattice.RuleStatus, error)

List mocks base method.

func (*MockRuleManager) Update

func (m *MockRuleManager) Update(ctx context.Context, rules []*lattice.Rule) error

Update mocks base method.

type MockRuleManagerMockRecorder

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

MockRuleManagerMockRecorder is the mock recorder for MockRuleManager.

func (*MockRuleManagerMockRecorder) Create

func (mr *MockRuleManagerMockRecorder) Create(ctx, rule interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRuleManagerMockRecorder) Delete

func (mr *MockRuleManagerMockRecorder) Delete(ctx, ruleID, listenerID, serviceID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRuleManagerMockRecorder) Get

func (mr *MockRuleManagerMockRecorder) Get(ctx, serviceID, listernID, ruleID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRuleManagerMockRecorder) List

func (mr *MockRuleManagerMockRecorder) List(ctx, serviceID, listenerID interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockRuleManagerMockRecorder) Update

func (mr *MockRuleManagerMockRecorder) Update(ctx, rules interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockServiceManager

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

MockServiceManager is a mock of ServiceManager interface.

func NewMockServiceManager

func NewMockServiceManager(ctrl *gomock.Controller) *MockServiceManager

NewMockServiceManager creates a new mock instance.

func (*MockServiceManager) Create

Create mocks base method.

func (*MockServiceManager) Delete

func (m *MockServiceManager) Delete(ctx context.Context, service *lattice.Service) error

Delete mocks base method.

func (*MockServiceManager) EXPECT

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

type MockServiceManagerMockRecorder

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

MockServiceManagerMockRecorder is the mock recorder for MockServiceManager.

func (*MockServiceManagerMockRecorder) Create

func (mr *MockServiceManagerMockRecorder) Create(ctx, service interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceManagerMockRecorder) Delete

func (mr *MockServiceManagerMockRecorder) Delete(ctx, service interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockServiceNetworkManager

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

MockServiceNetworkManager is a mock of ServiceNetworkManager interface.

func NewMockServiceNetworkManager

func NewMockServiceNetworkManager(ctrl *gomock.Controller) *MockServiceNetworkManager

NewMockServiceNetworkManager creates a new mock instance.

func (*MockServiceNetworkManager) Create

Create mocks base method.

func (*MockServiceNetworkManager) Delete

func (m *MockServiceNetworkManager) Delete(ctx context.Context, service_network string) error

Delete mocks base method.

func (*MockServiceNetworkManager) EXPECT

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

func (*MockServiceNetworkManager) List

List mocks base method.

type MockServiceNetworkManagerMockRecorder

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

MockServiceNetworkManagerMockRecorder is the mock recorder for MockServiceNetworkManager.

func (*MockServiceNetworkManagerMockRecorder) Create

func (mr *MockServiceNetworkManagerMockRecorder) Create(ctx, service_network interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceNetworkManagerMockRecorder) Delete

func (mr *MockServiceNetworkManagerMockRecorder) Delete(ctx, service_network interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockServiceNetworkManagerMockRecorder) List

func (mr *MockServiceNetworkManagerMockRecorder) List(ctx interface{}) *gomock.Call

List indicates an expected call of List.

type MockTargetGroupManager

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

MockTargetGroupManager is a mock of TargetGroupManager interface.

func NewMockTargetGroupManager

func NewMockTargetGroupManager(ctrl *gomock.Controller) *MockTargetGroupManager

NewMockTargetGroupManager creates a new mock instance.

func (*MockTargetGroupManager) Create

Create mocks base method.

func (*MockTargetGroupManager) Delete

func (m *MockTargetGroupManager) Delete(ctx context.Context, targetGroup *lattice.TargetGroup) error

Delete mocks base method.

func (*MockTargetGroupManager) EXPECT

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

func (*MockTargetGroupManager) Get

Get mocks base method.

func (*MockTargetGroupManager) List

func (m *MockTargetGroupManager) List(ctx context.Context) ([]targetGroupOutput, error)

List mocks base method.

type MockTargetGroupManagerMockRecorder

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

MockTargetGroupManagerMockRecorder is the mock recorder for MockTargetGroupManager.

func (*MockTargetGroupManagerMockRecorder) Create

func (mr *MockTargetGroupManagerMockRecorder) Create(ctx, targetGroup interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockTargetGroupManagerMockRecorder) Delete

func (mr *MockTargetGroupManagerMockRecorder) Delete(ctx, targetGroup interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTargetGroupManagerMockRecorder) Get

func (mr *MockTargetGroupManagerMockRecorder) Get(tx, targetGroup interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTargetGroupManagerMockRecorder) List

func (mr *MockTargetGroupManagerMockRecorder) List(ctx interface{}) *gomock.Call

List indicates an expected call of List.

type MockTargetsManager

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

MockTargetsManager is a mock of TargetsManager interface.

func NewMockTargetsManager

func NewMockTargetsManager(ctrl *gomock.Controller) *MockTargetsManager

NewMockTargetsManager creates a new mock instance.

func (*MockTargetsManager) Create

func (m *MockTargetsManager) Create(ctx context.Context, targets *lattice.Targets) error

Create mocks base method.

func (*MockTargetsManager) EXPECT

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

type MockTargetsManagerMockRecorder

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

MockTargetsManagerMockRecorder is the mock recorder for MockTargetsManager.

func (*MockTargetsManagerMockRecorder) Create

func (mr *MockTargetsManagerMockRecorder) Create(ctx, targets interface{}) *gomock.Call

Create indicates an expected call of Create.

type RuleManager

type RuleManager interface {
	Create(ctx context.Context, rule *latticemodel.Rule) (latticemodel.RuleStatus, error)
	Delete(ctx context.Context, ruleID string, listenerID string, serviceID string) error
	Update(ctx context.Context, rules []*latticemodel.Rule) error
	List(ctx context.Context, serviceID string, listenerID string) ([]*latticemodel.RuleStatus, error)
	Get(ctx context.Context, serviceID string, listernID string, ruleID string) (*vpclattice.GetRuleOutput, error)
}

type ServiceManager

type ServiceManager interface {
	Create(ctx context.Context, service *latticemodel.Service) (latticemodel.ServiceStatus, error)
	Delete(ctx context.Context, service *latticemodel.Service) error
}

type ServiceNetworkManager

type ServiceNetworkManager interface {
	Create(ctx context.Context, service_network *latticemodel.ServiceNetwork) (latticemodel.ServiceNetworkStatus, error)
	List(ctx context.Context) ([]string, error)
	Delete(ctx context.Context, service_network string) error
}

type TargetGroupManager

type TargetGroupManager interface {
	Create(ctx context.Context, targetGroup *latticemodel.TargetGroup) (latticemodel.TargetGroupStatus, error)
	Delete(ctx context.Context, targetGroup *latticemodel.TargetGroup) error
	List(ctx context.Context) ([]targetGroupOutput, error)
	Get(tx context.Context, targetGroup *latticemodel.TargetGroup) (latticemodel.TargetGroupStatus, error)
}

type TargetsManager

type TargetsManager interface {
	Create(ctx context.Context, targets *latticemodel.Targets) error
}

Jump to

Keyboard shortcuts

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