Documentation ¶
Overview ¶
Package configurer is a generated GoMock package.
Index ¶
- Constants
- type Configurer
- type ConfigurerType
- type MockConfigurer
- func (m *MockConfigurer) Configure(ctx context.Context, service *deployment.ServiceReference) error
- func (m *MockConfigurer) EXPECT() *MockConfigurerMockRecorder
- func (m *MockConfigurer) GetLocalBeamlitService(ctx context.Context, service *deployment.ServiceReference) (*deployment.ServiceReference, error)
- func (m *MockConfigurer) Start(ctx context.Context, gatewayService *deployment.ServiceReference) error
- func (m *MockConfigurer) Unconfigure(ctx context.Context, service *deployment.ServiceReference) error
- type MockConfigurerMockRecorder
- func (mr *MockConfigurerMockRecorder) Configure(ctx, service any) *gomock.Call
- func (mr *MockConfigurerMockRecorder) GetLocalBeamlitService(ctx, service any) *gomock.Call
- func (mr *MockConfigurerMockRecorder) Start(ctx, gatewayService any) *gomock.Call
- func (mr *MockConfigurerMockRecorder) Unconfigure(ctx, service any) *gomock.Call
Constants ¶
const (
OperatorLabel = "beamlit-operator"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Configurer interface { // Start starts the service configurer. Start(ctx context.Context, gatewayService *modelv1alpha1.ServiceReference) error // Configure configures a service to be proxied by Beamlit. Configure(ctx context.Context, service *modelv1alpha1.ServiceReference) error // Unconfigure unconfigures a service from being proxied by Beamlit. Unconfigure(ctx context.Context, service *modelv1alpha1.ServiceReference) error // GetService gets the service for a given service reference. GetLocalBeamlitService(ctx context.Context, service *modelv1alpha1.ServiceReference) (*modelv1alpha1.ServiceReference, error) }
Configurer is an interface for configuring services to be proxied by Beamlit. It replaces the EndpointsSlice in the service with a new EndpointsSlice that points to the Beamlit proxy Service. It also creates a new Service that can be used by the proxy to route traffic to the internal pod
func NewConfigurer ¶
func NewConfigurer(ctx context.Context, configurerType ConfigurerType, kubeClient kubernetes.Interface) (Configurer, error)
NewConfigurer creates a new configurer for the given type
type ConfigurerType ¶
type ConfigurerType string
const (
KubernetesConfigurerType ConfigurerType = "kubernetes"
)
type MockConfigurer ¶
type MockConfigurer struct {
// contains filtered or unexported fields
}
MockConfigurer is a mock of Configurer interface.
func NewMockConfigurer ¶
func NewMockConfigurer(ctrl *gomock.Controller) *MockConfigurer
NewMockConfigurer creates a new mock instance.
func (*MockConfigurer) Configure ¶
func (m *MockConfigurer) Configure(ctx context.Context, service *deployment.ServiceReference) error
Configure mocks base method.
func (*MockConfigurer) EXPECT ¶
func (m *MockConfigurer) EXPECT() *MockConfigurerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigurer) GetLocalBeamlitService ¶
func (m *MockConfigurer) GetLocalBeamlitService(ctx context.Context, service *deployment.ServiceReference) (*deployment.ServiceReference, error)
GetLocalBeamlitService mocks base method.
func (*MockConfigurer) Start ¶
func (m *MockConfigurer) Start(ctx context.Context, gatewayService *deployment.ServiceReference) error
Start mocks base method.
func (*MockConfigurer) Unconfigure ¶
func (m *MockConfigurer) Unconfigure(ctx context.Context, service *deployment.ServiceReference) error
Unconfigure mocks base method.
type MockConfigurerMockRecorder ¶
type MockConfigurerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigurerMockRecorder is the mock recorder for MockConfigurer.
func (*MockConfigurerMockRecorder) Configure ¶
func (mr *MockConfigurerMockRecorder) Configure(ctx, service any) *gomock.Call
Configure indicates an expected call of Configure.
func (*MockConfigurerMockRecorder) GetLocalBeamlitService ¶
func (mr *MockConfigurerMockRecorder) GetLocalBeamlitService(ctx, service any) *gomock.Call
GetLocalBeamlitService indicates an expected call of GetLocalBeamlitService.
func (*MockConfigurerMockRecorder) Start ¶
func (mr *MockConfigurerMockRecorder) Start(ctx, gatewayService any) *gomock.Call
Start indicates an expected call of Start.
func (*MockConfigurerMockRecorder) Unconfigure ¶
func (mr *MockConfigurerMockRecorder) Unconfigure(ctx, service any) *gomock.Call
Unconfigure indicates an expected call of Unconfigure.