headless

package
v2.11.5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

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

func NewClientOrDie(opts *apiclient.ClientOptions, c *cobra.Command) apiclient.Client

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.

Jump to

Keyboard shortcuts

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