Documentation ¶
Overview ¶
Package gateway is a generated GoMock package.
Package gateway is a generated GoMock package.
Index ¶
- Constants
- func GetServiceForBackendRef(ctx context.Context, client client.Client, route core.Route, ...) (*corev1.Service, error)
- func NewAccessLogSubscriptionModelBuilder(log gwlog.Logger, client client.Client) *accessLogSubscriptionModelBuilder
- type AccessLogSubscriptionModelBuilder
- type BackendRefTargetGroupBuilder
- type BackendRefTargetGroupModelBuilder
- type InvalidBackendRefError
- type LatticeServiceBuilder
- type LatticeServiceModelBuilder
- type LatticeTargetsBuilder
- type LatticeTargetsModelBuilder
- func (b *LatticeTargetsModelBuilder) Build(ctx context.Context, service *corev1.Service, backendRef core.BackendRef, ...) (core.Stack, error)
- func (b *LatticeTargetsModelBuilder) BuildForServiceExport(ctx context.Context, serviceExport *anv1alpha1.ServiceExport, stackTgId string) (core.Stack, error)
- type MockBackendRefTargetGroupModelBuilder
- type MockBackendRefTargetGroupModelBuilderMockRecorder
- type MockLatticeServiceBuilder
- type MockLatticeServiceBuilderMockRecorder
- type MockSvcExportTargetGroupModelBuilder
- func (m *MockSvcExportTargetGroupModelBuilder) Build(arg0 context.Context, arg1 *v1alpha1.ServiceExport) (core.Stack, error)
- func (m *MockSvcExportTargetGroupModelBuilder) BuildTargetGroup(arg0 context.Context, arg1 *v1alpha1.ServiceExport) (*lattice.TargetGroup, error)
- func (m *MockSvcExportTargetGroupModelBuilder) EXPECT() *MockSvcExportTargetGroupModelBuilderMockRecorder
- type MockSvcExportTargetGroupModelBuilderMockRecorder
- type SvcExportTargetGroupBuilder
- type SvcExportTargetGroupModelBuilder
- type TGP
Constants ¶
const ( LATTICE_NO_SUPPORT_FOR_MULTIPLE_MATCHES = "LATTICE_NO_SUPPORT_FOR_MULTIPLE_MATCHES" LATTICE_EXCEED_MAX_HEADER_MATCHES = "LATTICE_EXCEED_MAX_HEADER_MATCHES" LATTICE_UNSUPPORTED_MATCH_TYPE = "LATTICE_UNSUPPORTED_MATCH_TYPE" LATTICE_UNSUPPORTED_HEADER_MATCH_TYPE = "LATTICE_UNSUPPORTED_HEADER_MATCH_TYPE" LATTICE_UNSUPPORTED_PATH_MATCH_TYPE = "LATTICE_UNSUPPORTED_PATH_MATCH_TYPE" LATTICE_MAX_HEADER_MATCHES = 5 )
Variables ¶
This section is empty.
Functions ¶
func GetServiceForBackendRef ¶ added in v0.0.17
Types ¶
type AccessLogSubscriptionModelBuilder ¶ added in v0.0.18
type AccessLogSubscriptionModelBuilder interface {
Build(ctx context.Context, alp *anv1alpha1.AccessLogPolicy) (core.Stack, *model.AccessLogSubscription, error)
}
type BackendRefTargetGroupBuilder ¶ added in v0.0.18
type BackendRefTargetGroupBuilder struct {
// contains filtered or unexported fields
}
type BackendRefTargetGroupModelBuilder ¶ added in v0.0.18
type BackendRefTargetGroupModelBuilder interface {
Build(ctx context.Context, route core.Route, backendRef core.BackendRef, stack core.Stack) (core.Stack, *model.TargetGroup, error)
}
func NewBackendRefTargetGroupBuilder ¶ added in v0.0.18
func NewBackendRefTargetGroupBuilder(log gwlog.Logger, client client.Client) BackendRefTargetGroupModelBuilder
type InvalidBackendRefError ¶ added in v1.0.0
type InvalidBackendRefError struct { BackendRef core.BackendRef Reason string }
func (*InvalidBackendRefError) Error ¶ added in v1.0.0
func (e *InvalidBackendRefError) Error() string
type LatticeServiceBuilder ¶
type LatticeServiceModelBuilder ¶ added in v0.0.16
type LatticeServiceModelBuilder struct {
// contains filtered or unexported fields
}
func NewLatticeServiceBuilder ¶
func NewLatticeServiceBuilder( log gwlog.Logger, client client.Client, brTgBuilder BackendRefTargetGroupModelBuilder, ) *LatticeServiceModelBuilder
type LatticeTargetsBuilder ¶
type LatticeTargetsModelBuilder ¶ added in v0.0.16
type LatticeTargetsModelBuilder struct {
// contains filtered or unexported fields
}
func NewTargetsBuilder ¶
func (*LatticeTargetsModelBuilder) BuildForServiceExport ¶ added in v0.0.18
func (b *LatticeTargetsModelBuilder) BuildForServiceExport(ctx context.Context, serviceExport *anv1alpha1.ServiceExport, stackTgId string) (core.Stack, error)
type MockBackendRefTargetGroupModelBuilder ¶ added in v0.0.18
type MockBackendRefTargetGroupModelBuilder struct {
// contains filtered or unexported fields
}
MockBackendRefTargetGroupModelBuilder is a mock of BackendRefTargetGroupModelBuilder interface.
func NewMockBackendRefTargetGroupModelBuilder ¶ added in v0.0.18
func NewMockBackendRefTargetGroupModelBuilder(ctrl *gomock.Controller) *MockBackendRefTargetGroupModelBuilder
NewMockBackendRefTargetGroupModelBuilder creates a new mock instance.
func (*MockBackendRefTargetGroupModelBuilder) Build ¶ added in v0.0.18
func (m *MockBackendRefTargetGroupModelBuilder) Build(arg0 context.Context, arg1 core.Route, arg2 core.BackendRef, arg3 core.Stack) (core.Stack, *lattice.TargetGroup, error)
Build mocks base method.
func (*MockBackendRefTargetGroupModelBuilder) EXPECT ¶ added in v0.0.18
func (m *MockBackendRefTargetGroupModelBuilder) EXPECT() *MockBackendRefTargetGroupModelBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBackendRefTargetGroupModelBuilderMockRecorder ¶ added in v0.0.18
type MockBackendRefTargetGroupModelBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendRefTargetGroupModelBuilderMockRecorder is the mock recorder for MockBackendRefTargetGroupModelBuilder.
func (*MockBackendRefTargetGroupModelBuilderMockRecorder) Build ¶ added in v0.0.18
func (mr *MockBackendRefTargetGroupModelBuilderMockRecorder) Build(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Build indicates an expected call of Build.
type MockLatticeServiceBuilder ¶ added in v0.0.18
type MockLatticeServiceBuilder struct {
// contains filtered or unexported fields
}
MockLatticeServiceBuilder is a mock of LatticeServiceBuilder interface.
func NewMockLatticeServiceBuilder ¶ added in v0.0.18
func NewMockLatticeServiceBuilder(ctrl *gomock.Controller) *MockLatticeServiceBuilder
NewMockLatticeServiceBuilder creates a new mock instance.
func (*MockLatticeServiceBuilder) Build ¶ added in v0.0.18
func (m *MockLatticeServiceBuilder) Build(arg0 context.Context, arg1 core.Route) (core.Stack, error)
Build mocks base method.
func (*MockLatticeServiceBuilder) EXPECT ¶ added in v0.0.18
func (m *MockLatticeServiceBuilder) EXPECT() *MockLatticeServiceBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLatticeServiceBuilderMockRecorder ¶ added in v0.0.18
type MockLatticeServiceBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockLatticeServiceBuilderMockRecorder is the mock recorder for MockLatticeServiceBuilder.
func (*MockLatticeServiceBuilderMockRecorder) Build ¶ added in v0.0.18
func (mr *MockLatticeServiceBuilderMockRecorder) Build(arg0, arg1 interface{}) *gomock.Call
Build indicates an expected call of Build.
type MockSvcExportTargetGroupModelBuilder ¶ added in v0.0.18
type MockSvcExportTargetGroupModelBuilder struct {
// contains filtered or unexported fields
}
MockSvcExportTargetGroupModelBuilder is a mock of SvcExportTargetGroupModelBuilder interface.
func NewMockSvcExportTargetGroupModelBuilder ¶ added in v0.0.18
func NewMockSvcExportTargetGroupModelBuilder(ctrl *gomock.Controller) *MockSvcExportTargetGroupModelBuilder
NewMockSvcExportTargetGroupModelBuilder creates a new mock instance.
func (*MockSvcExportTargetGroupModelBuilder) Build ¶ added in v0.0.18
func (m *MockSvcExportTargetGroupModelBuilder) Build(arg0 context.Context, arg1 *v1alpha1.ServiceExport) (core.Stack, error)
Build mocks base method.
func (*MockSvcExportTargetGroupModelBuilder) BuildTargetGroup ¶ added in v0.0.18
func (m *MockSvcExportTargetGroupModelBuilder) BuildTargetGroup(arg0 context.Context, arg1 *v1alpha1.ServiceExport) (*lattice.TargetGroup, error)
BuildTargetGroup mocks base method.
func (*MockSvcExportTargetGroupModelBuilder) EXPECT ¶ added in v0.0.18
func (m *MockSvcExportTargetGroupModelBuilder) EXPECT() *MockSvcExportTargetGroupModelBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSvcExportTargetGroupModelBuilderMockRecorder ¶ added in v0.0.18
type MockSvcExportTargetGroupModelBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockSvcExportTargetGroupModelBuilderMockRecorder is the mock recorder for MockSvcExportTargetGroupModelBuilder.
func (*MockSvcExportTargetGroupModelBuilderMockRecorder) Build ¶ added in v0.0.18
func (mr *MockSvcExportTargetGroupModelBuilderMockRecorder) Build(arg0, arg1 interface{}) *gomock.Call
Build indicates an expected call of Build.
func (*MockSvcExportTargetGroupModelBuilderMockRecorder) BuildTargetGroup ¶ added in v0.0.18
func (mr *MockSvcExportTargetGroupModelBuilderMockRecorder) BuildTargetGroup(arg0, arg1 interface{}) *gomock.Call
BuildTargetGroup indicates an expected call of BuildTargetGroup.
type SvcExportTargetGroupBuilder ¶ added in v0.0.17
type SvcExportTargetGroupBuilder struct {
// contains filtered or unexported fields
}
func NewSvcExportTargetGroupBuilder ¶ added in v0.0.17
func NewSvcExportTargetGroupBuilder( log gwlog.Logger, client client.Client, ) *SvcExportTargetGroupBuilder
func (*SvcExportTargetGroupBuilder) Build ¶ added in v0.0.17
func (b *SvcExportTargetGroupBuilder) Build( ctx context.Context, svcExport *anv1alpha1.ServiceExport, ) (core.Stack, error)
func (*SvcExportTargetGroupBuilder) BuildTargetGroup ¶ added in v0.0.18
func (b *SvcExportTargetGroupBuilder) BuildTargetGroup(ctx context.Context, svcExport *anv1alpha1.ServiceExport) (*model.TargetGroup, error)
type SvcExportTargetGroupModelBuilder ¶ added in v0.0.17
type SvcExportTargetGroupModelBuilder interface { // used during standard model build Build(ctx context.Context, svcExport *anv1alpha1.ServiceExport) (core.Stack, error) // used for reconciliation of existing target groups against a service export object BuildTargetGroup(ctx context.Context, svcExport *anv1alpha1.ServiceExport) (*model.TargetGroup, error) }
type TGP ¶ added in v1.0.2
type TGP = anv1alpha1.TargetGroupPolicy