Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient( serverAddress string, credential string, insecureTLS bool, ) svcv1alpha1connect.KargoServiceClient
GetClient returns a new client for the Kargo API server located at the specified address. If the provided credential is non-empty, the client will be decorated with an interceptor that adds the credential to outbound requests.
func GetClientFromConfig ¶
func GetClientFromConfig(ctx context.Context, opt *option.Option) ( svcv1alpha1connect.KargoServiceClient, error, )
GetClientFromConfig returns a new client for the Kargo API server located at the address specified in local configuration, using credentials also specified in local configuration UNLESS the specified options indicates that the local server should be used instead.
func IsConfigNotFoundErr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.