clientmgr

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientConfig

func LoadClientConfig(cf string) (*apiconfig.CalicoAPIConfig, error)

LoadClientConfig loads the client config from file if the file exists, otherwise will load from environment variables.

func NewClient

func NewClient(cf string) (client.Interface, error)

NewClient creates a new CalicoClient using connection information in the specified filename (if it exists), dropping back to environment variables for any parameter not loaded from file.

func NewClientFromConfig

func NewClientFromConfig(cfg *apiconfig.CalicoAPIConfig) (client.Interface, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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