Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeStartLocalServer ¶ added in v2.9.3
func MaybeStartLocalServer(ctx context.Context, clientOpts *apiclient.ClientOptions, ctxStr string, port *int, address *string, compression cache.RedisCompressionType, clientConfig clientcmd.ClientConfig) error
MaybeStartLocalServer allows executing command in a headless mode. If we're in core mode, starts the Argo CD API server on the fly and changes provided client options to use started API server port.
If the clientOpts enables core mode, but the local config does not have core mode enabled, this function will not start the local server.
func NewClientOrDie ¶ added in v2.4.0
NewClientOrDie creates a new API client from a set of config options, or fails fatally if the new client creation fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.