Documentation
¶
Index ¶
- func FakeNode() *corev3.Node
- type FakeService
- func (f *FakeService) Addr() net.Addr
- func (f *FakeService) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (f *FakeService) Host() string
- func (f *FakeService) List(ctx context.Context, request *grpc_health_v1.HealthListRequest) (*grpc_health_v1.HealthListResponse, error)
- func (f *FakeService) Port() int32
- func (f *FakeService) Stop()
- func (f *FakeService) Watch(request *grpc_health_v1.HealthCheckRequest, ...) error
- type K8SEndpoint
- type K8SService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeService ¶
func NewFakeService ¶
func NewFakeService(addr string) (*FakeService, error)
func (*FakeService) Addr ¶
func (f *FakeService) Addr() net.Addr
func (*FakeService) Check ¶
func (f *FakeService) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*FakeService) Host ¶
func (f *FakeService) Host() string
func (*FakeService) List ¶
func (f *FakeService) List(ctx context.Context, request *grpc_health_v1.HealthListRequest) (*grpc_health_v1.HealthListResponse, error)
func (*FakeService) Port ¶
func (f *FakeService) Port() int32
func (*FakeService) Stop ¶
func (f *FakeService) Stop()
func (*FakeService) Watch ¶
func (f *FakeService) Watch(request *grpc_health_v1.HealthCheckRequest, g grpc.ServerStreamingServer[grpc_health_v1.HealthCheckResponse]) error
type K8SEndpoint ¶
type K8SEndpoint struct {
Name string
Namespace string
IP []string
Ports []corev1.EndpointPort //nolint:staticcheck // We use Endpoint to simulate legacy Kube compatibility
}
func (*K8SEndpoint) AsK8S ¶
func (k *K8SEndpoint) AsK8S() *corev1.Endpoints
type K8SService ¶
type K8SService struct {
Name string
Namespace string
Ports []corev1.ServicePort
Annotations map[string]string
}
func (*K8SService) AsK8S ¶
func (k *K8SService) AsK8S() *corev1.Service
Click to show internal directories.
Click to hide internal directories.