Documentation ¶
Index ¶
- func GetClient(ctx context.Context) credentials.TransportCredentials
- func GetServer(ctx context.Context) credentials.TransportCredentials
- func GetServerWithSource(ctx context.Context, source *workloadapi.X509Source) credentials.TransportCredentials
- func GetX509Source(ctx context.Context) *workloadapi.X509Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient(ctx context.Context) credentials.TransportCredentials
func GetServer ¶
func GetServer(ctx context.Context) credentials.TransportCredentials
func GetServerWithSource ¶
func GetServerWithSource(ctx context.Context, source *workloadapi.X509Source) credentials.TransportCredentials
func GetX509Source ¶
func GetX509Source(ctx context.Context) *workloadapi.X509Source
GetX509Source - Returns a X509 source. Creates a new source if none exists yet.
Note: Avoid creating new X509 whenever invoked as it each source consumes additional resources. TODO: According to the description of NewX509Source() the source should be closed to release underlying resources. So, consider adding a function that would take care of closing the source.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.