client

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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

func IsConfigNotFoundErr(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL