Documentation ¶
Overview ¶
Package inject provides an mock cloud connection service that can be used for testing.
Index ¶
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.
Click to show internal directories.
Click to hide internal directories.