Documentation ¶
Overview ¶
Package inject provides an mock cloud connection service that can be used for testing.
Index ¶
- type CloudConnectionService
- func (cloudConnService *CloudConnectionService) AcquireConnection(ctx context.Context) (string, rpc.ClientConn, error)
- func (cloudConnService *CloudConnectionService) AcquireConnectionAPIKey(ctx context.Context, apiKey, apiKeyID string) (string, rpc.ClientConn, error)
- func (cloudConnService *CloudConnectionService) Close(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConnectionService ¶
type CloudConnectionService struct { resource.Named resource.AlwaysRebuild Conn rpc.ClientConn AcquireConnectionErr error }
CloudConnectionService is an implementation of the cloud.ConnectionService interface used for testing.
func (*CloudConnectionService) AcquireConnection ¶
func (cloudConnService *CloudConnectionService) AcquireConnection(ctx context.Context) (string, rpc.ClientConn, error)
AcquireConnection returns a connection to the rpc server stored in the cloud connection service object.
func (*CloudConnectionService) AcquireConnectionAPIKey ¶ added in v0.12.0
func (cloudConnService *CloudConnectionService) AcquireConnectionAPIKey(ctx context.Context, apiKey, apiKeyID string, ) (string, rpc.ClientConn, error)
AcquireConnectionAPIKey returns a connection to the rpc server stored in the cloud connection service object.
Click to show internal directories.
Click to hide internal directories.