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 ¶
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.
Click to show internal directories.
Click to hide internal directories.