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
- func NewDefaultServiceNetworkManager(cloud lattice_aws.Cloud) *defaultServiceNetworkManager
- func NewListenerManager(cloud lattice_aws.Cloud, latticeDataStore *latticestore.LatticeDataStore) *defaultListenerManager
- func NewListenerSynthesizer(ListenerManager ListenerManager, stack core.Stack, ...) *listenerSynthesizer
- func NewRuleManager(cloud lattice_aws.Cloud, store *latticestore.LatticeDataStore) *defaultRuleManager
- func NewRuleSynthesizer(ruleManager RuleManager, stack core.Stack, ...) *ruleSynthesizer
- func NewServiceManager(cloud lattice_aws.Cloud, latticeDataStore *latticestore.LatticeDataStore) *defaultServiceManager
- func NewServiceNetworkSynthesizer(client client.Client, serviceNetworkManager ServiceNetworkManager, ...) *serviceNetworkSynthesizer
- func NewServiceSynthesizer(serviceManager ServiceManager, stack core.Stack, ...) *serviceSynthesizer
- func NewTargetGroupManager(cloud lattice_aws.Cloud) *defaultTargetGroupManager
- func NewTargetGroupSynthesizer(cloud lattice_aws.Cloud, client client.Client, tgManager TargetGroupManager, ...) *targetGroupSynthesizer
- func NewTargetsManager(cloud lattice_aws.Cloud, datastore *latticestore.LatticeDataStore) *defaultTargetsManager
- func NewTargetsSynthesizer(cloud lattice_aws.Cloud, tgManager TargetsManager, stack core.Stack, ...) *targetsSynthesizer
- type ListenerManager
- type MockListenerManager
- func (m *MockListenerManager) Create(ctx context.Context, service *lattice.Listener) (lattice.ListenerStatus, error)
- func (m *MockListenerManager) Delete(ctx context.Context, listenerID, serviceID string) error
- func (m *MockListenerManager) EXPECT() *MockListenerManagerMockRecorder
- func (m *MockListenerManager) List(ctx context.Context, serviceID string) ([]*vpclattice.ListenerSummary, error)
- type MockListenerManagerMockRecorder
- type MockRuleManager
- func (m *MockRuleManager) Create(ctx context.Context, rule *lattice.Rule) (lattice.RuleStatus, error)
- func (m *MockRuleManager) Delete(ctx context.Context, ruleID, listenerID, serviceID string) error
- func (m *MockRuleManager) EXPECT() *MockRuleManagerMockRecorder
- func (m *MockRuleManager) Get(ctx context.Context, serviceID, listernID, ruleID string) (*vpclattice.GetRuleOutput, error)
- func (m *MockRuleManager) List(ctx context.Context, serviceID, listenerID string) ([]*lattice.RuleStatus, error)
- func (m *MockRuleManager) Update(ctx context.Context, rules []*lattice.Rule) error
- type MockRuleManagerMockRecorder
- func (mr *MockRuleManagerMockRecorder) Create(ctx, rule interface{}) *gomock.Call
- func (mr *MockRuleManagerMockRecorder) Delete(ctx, ruleID, listenerID, serviceID interface{}) *gomock.Call
- func (mr *MockRuleManagerMockRecorder) Get(ctx, serviceID, listernID, ruleID interface{}) *gomock.Call
- func (mr *MockRuleManagerMockRecorder) List(ctx, serviceID, listenerID interface{}) *gomock.Call
- func (mr *MockRuleManagerMockRecorder) Update(ctx, rules interface{}) *gomock.Call
- type MockServiceManager
- type MockServiceManagerMockRecorder
- type MockServiceNetworkManager
- func (m *MockServiceNetworkManager) Create(ctx context.Context, service_network *lattice.ServiceNetwork) (lattice.ServiceNetworkStatus, error)
- func (m *MockServiceNetworkManager) Delete(ctx context.Context, service_network string) error
- func (m *MockServiceNetworkManager) EXPECT() *MockServiceNetworkManagerMockRecorder
- func (m *MockServiceNetworkManager) List(ctx context.Context) ([]string, error)
- type MockServiceNetworkManagerMockRecorder
- type MockTargetGroupManager
- func (m *MockTargetGroupManager) Create(ctx context.Context, targetGroup *lattice.TargetGroup) (lattice.TargetGroupStatus, error)
- func (m *MockTargetGroupManager) Delete(ctx context.Context, targetGroup *lattice.TargetGroup) error
- func (m *MockTargetGroupManager) EXPECT() *MockTargetGroupManagerMockRecorder
- func (m *MockTargetGroupManager) Get(tx context.Context, targetGroup *lattice.TargetGroup) (lattice.TargetGroupStatus, error)
- func (m *MockTargetGroupManager) List(ctx context.Context) ([]targetGroupOutput, error)
- type MockTargetGroupManagerMockRecorder
- func (mr *MockTargetGroupManagerMockRecorder) Create(ctx, targetGroup interface{}) *gomock.Call
- func (mr *MockTargetGroupManagerMockRecorder) Delete(ctx, targetGroup interface{}) *gomock.Call
- func (mr *MockTargetGroupManagerMockRecorder) Get(tx, targetGroup interface{}) *gomock.Call
- func (mr *MockTargetGroupManagerMockRecorder) List(ctx interface{}) *gomock.Call
- type MockTargetsManager
- type MockTargetsManagerMockRecorder
- type RuleManager
- type ServiceManager
- type ServiceNetworkManager
- type TargetGroupManager
- type TargetsManager
Constants ¶
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 ¶
func (m *MockListenerManager) Create(ctx context.Context, service *lattice.Listener) (lattice.ListenerStatus, error)
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 ¶
func (m *MockListenerManager) EXPECT() *MockListenerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockListenerManager) List ¶
func (m *MockListenerManager) List(ctx context.Context, serviceID string) ([]*vpclattice.ListenerSummary, error)
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 ¶
func (m *MockRuleManager) Create(ctx context.Context, rule *lattice.Rule) (lattice.RuleStatus, error)
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 ¶
func (m *MockRuleManager) EXPECT() *MockRuleManagerMockRecorder
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.
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 ¶
func (m *MockServiceManager) Create(ctx context.Context, service *lattice.Service) (lattice.ServiceStatus, error)
Create mocks base method.
func (*MockServiceManager) EXPECT ¶
func (m *MockServiceManager) EXPECT() *MockServiceManagerMockRecorder
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 ¶
func (m *MockServiceNetworkManager) Create(ctx context.Context, service_network *lattice.ServiceNetwork) (lattice.ServiceNetworkStatus, error)
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 ¶
func (m *MockServiceNetworkManager) EXPECT() *MockServiceNetworkManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockTargetGroupManager) Create(ctx context.Context, targetGroup *lattice.TargetGroup) (lattice.TargetGroupStatus, error)
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 ¶
func (m *MockTargetGroupManager) EXPECT() *MockTargetGroupManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTargetGroupManager) Get ¶
func (m *MockTargetGroupManager) Get(tx context.Context, targetGroup *lattice.TargetGroup) (lattice.TargetGroupStatus, error)
Get 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) EXPECT ¶
func (m *MockTargetsManager) EXPECT() *MockTargetsManagerMockRecorder
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
}
Source Files ¶
- error_code.go
- listener_manager.go
- listener_manager_mock.go
- listener_synthesizer.go
- rule_manager.go
- rule_manager_mock.go
- rule_synthesizer.go
- service_manager.go
- service_manager_mock.go
- service_network_manager.go
- service_network_manager_mock.go
- service_network_synthesizer.go
- service_synthesizer.go
- target_group_manager.go
- target_group_manager_mock.go
- target_group_synthesizer.go
- targets_manager.go
- targets_manager_mock.go
- targets_synthesizer.go