factory

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvCumulocityHostNames = []string{
	"C8Y_HOST",
	"C8Y_BASEURL",
	"C8Y_URL",
}

Functions

func CreateCumulocityClient

func CreateCumulocityClient(f *cmdutil.Factory, sessionFile, username, password string, disableEncryptionCheck bool) func() (*c8y.Client, error)

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 WithProxyDisabled

func WithProxyDisabled(disable bool) c8y.ClientOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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