Documentation
¶
Index ¶
- type AuthMode
- type ClientAuth
- type ClientInfo
- type ClientPool
- func (cp *ClientPool) Close()
- func (cp *ClientPool) DialAndUpsertClient(clientOpts sdkclient.Options, clientPoolKey ClientPoolKey, ...) (sdkclient.Client, error)
- func (cp *ClientPool) GetSDKClient(key ClientPoolKey) (sdkclient.Client, bool)
- func (cp *ClientPool) ParseClientSecret(ctx context.Context, secretName string, authMode AuthMode, ...) (*sdkclient.Options, *ClientPoolKey, *ClientAuth, error)
- func (cp *ClientPool) SetClientForTesting(key ClientPoolKey, c sdkclient.Client)
- type ClientPoolKey
- type MTLSAuth
- type NewClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuth ¶ added in v1.1.0
type ClientAuth struct {
// contains filtered or unexported fields
}
type ClientInfo ¶
type ClientInfo struct {
// contains filtered or unexported fields
}
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(l log.Logger, c runtimeclient.Client) *ClientPool
func (*ClientPool) Close ¶
func (cp *ClientPool) Close()
func (*ClientPool) DialAndUpsertClient ¶ added in v1.3.0
func (cp *ClientPool) DialAndUpsertClient(clientOpts sdkclient.Options, clientPoolKey ClientPoolKey, clientAuth ClientAuth) (sdkclient.Client, error)
func (*ClientPool) GetSDKClient ¶
func (cp *ClientPool) GetSDKClient(key ClientPoolKey) (sdkclient.Client, bool)
func (*ClientPool) ParseClientSecret ¶ added in v1.3.0
func (cp *ClientPool) ParseClientSecret( ctx context.Context, secretName string, authMode AuthMode, opts NewClientOptions, ) (*sdkclient.Options, *ClientPoolKey, *ClientAuth, error)
func (*ClientPool) SetClientForTesting ¶ added in v1.3.0
func (cp *ClientPool) SetClientForTesting(key ClientPoolKey, c sdkclient.Client)
SetClientForTesting pre-populates the pool with a stub client, bypassing the network dial. Intended for use in unit tests only.
type ClientPoolKey ¶
type NewClientOptions ¶
type NewClientOptions struct {
TemporalNamespace string
K8sNamespace string
Spec v1alpha1.TemporalConnectionSpec
}
Click to show internal directories.
Click to hide internal directories.