MCPcopy
hub / github.com/kubernetes-sigs/headlamp / ServiceConnection

Interface ServiceConnection

backend/pkg/serviceproxy/connection.go:13–16  ·  view source on GitHub ↗

ServiceConnection represents a connection to a service.

Source from the content-addressed store, hash-verified

11
12// ServiceConnection represents a connection to a service.
13type ServiceConnection interface {
14 // Get performs a GET request and streams the response body into w.
15 Get(ctx context.Context, requestURI string, w io.Writer) error
16}
17type Connection struct {
18 URI string
19}

Callers 6

parseInfoFromRequestFunction · 0.65
getAuthTokenFunction · 0.65
handleServiceProxyFunction · 0.65
GetServiceFunction · 0.65

Implementers 5

cacheStubbackend/pkg/auth/auth_test.go
fakeCachebackend/pkg/auth/auth_test.go
MockCachebackend/pkg/k8cache/cacheStore_test.go
mockServiceConnectionbackend/pkg/serviceproxy/handler_test.
Connectionbackend/pkg/serviceproxy/connection.go

Calls

no outgoing calls

Tested by

no test coverage detected