gateway

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package gateway is a generated GoMock package.

Package gateway is a generated GoMock package.

Index

Constants

View Source
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

func GetServiceForBackendRef(ctx context.Context, client client.Client, route core.Route, backendRef core.BackendRef) (*corev1.Service, error)

func NewAccessLogSubscriptionModelBuilder added in v0.0.18

func NewAccessLogSubscriptionModelBuilder(log gwlog.Logger, client client.Client) *accessLogSubscriptionModelBuilder

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
}

func (*BackendRefTargetGroupBuilder) Build added in v0.0.18

func (b *BackendRefTargetGroupBuilder) Build(
	ctx context.Context,
	route core.Route,
	backendRef core.BackendRef,
	stack core.Stack,
) (core.Stack, *model.TargetGroup, error)

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 LatticeServiceBuilder interface {
	Build(ctx context.Context, httpRoute core.Route) (core.Stack, error)
}

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

func (*LatticeServiceModelBuilder) Build added in v0.0.16

func (b *LatticeServiceModelBuilder) Build(
	ctx context.Context,
	route core.Route,
) (core.Stack, error)

type LatticeTargetsBuilder

type LatticeTargetsBuilder interface {
	Build(ctx context.Context, service *corev1.Service, backendRef core.BackendRef, stackTgId string) (core.Stack, error)
	BuildForServiceExport(ctx context.Context, serviceExport *anv1alpha1.ServiceExport, stackTgId string) (core.Stack, error)
}

type LatticeTargetsModelBuilder added in v0.0.16

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

func NewTargetsBuilder

func NewTargetsBuilder(
	log gwlog.Logger,
	client client.Client,
	stack core.Stack,
) *LatticeTargetsModelBuilder

func (*LatticeTargetsModelBuilder) Build added in v0.0.16

func (b *LatticeTargetsModelBuilder) Build(ctx context.Context, service *corev1.Service,
	backendRef core.BackendRef, stackTgId string) (core.Stack, error)

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

Build mocks base method.

func (*MockBackendRefTargetGroupModelBuilder) EXPECT added in v0.0.18

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

Build mocks base method.

func (*MockLatticeServiceBuilder) EXPECT added in v0.0.18

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

Build mocks base method.

func (*MockSvcExportTargetGroupModelBuilder) BuildTargetGroup added in v0.0.18

BuildTargetGroup mocks base method.

func (*MockSvcExportTargetGroupModelBuilder) EXPECT added in v0.0.18

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 (*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

Jump to

Keyboard shortcuts

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