Documentation ¶
Index ¶
- Variables
- func CreateCumulocityClient(f *cmdutil.Factory, sessionFile, username, password string, ...) func() (*c8y.Client, error)
- func GetHostFromEnvironment() string
- func New(appVersion string, buildBranch string, ...) *cmdutil.Factory
- func WithCompression(enable bool) c8y.ClientOption
- func WithProxyDisabled(disable bool) c8y.ClientOption
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvCumulocityHostNames = []string{
"C8Y_HOST",
"C8Y_BASEURL",
"C8Y_URL",
}
Functions ¶
func CreateCumulocityClient ¶
func GetHostFromEnvironment ¶
func GetHostFromEnvironment() string
GetHostFromEnvironment gets the first non-empty host environment variable value as Cumulocity uses different environment variable names for different tooling
func New ¶
func New(appVersion string, buildBranch string, configFunc func() (*config.Config, error), clientFunc func() (*c8y.Client, error), loggerFunc func() (*logger.Logger, error), activityLoggerFunc func() (*activitylogger.ActivityLogger, error), dataViewFunc func() (*dataview.DataView, error), consoleFunc func() (*console.Console, error)) *cmdutil.Factory
func WithCompression ¶ added in v2.15.0
func WithCompression(enable bool) c8y.ClientOption
WithCompression sets the compression option for the http client
func WithProxyDisabled ¶
func WithProxyDisabled(disable bool) c8y.ClientOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.