Documentation ¶
Index ¶
- func AddUserAgent(config *restclient.Config, userAgent string) *restclient.Config
- func DefaultOneXUserAgent() string
- func GetUserAgent(userAgent string) string
- func IsLocalEnv() bool
- func SetClientOptionsForController(config *rest.Config) *rest.Config
- func SetClientOptionsForLifecycleController(config *rest.Config) *rest.Config
- func SetClientOptionsForMinerController(config *rest.Config) *rest.Config
- func SetClientOptionsForMinerSetController(config *rest.Config) *rest.Config
- func SetDefaultClientOptions(config *rest.Config) *rest.Config
- func SetOneXDefaults(config *restclient.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserAgent ¶
func AddUserAgent(config *restclient.Config, userAgent string) *restclient.Config
func DefaultOneXUserAgent ¶
func DefaultOneXUserAgent() string
DefaultOneXAPIUserAgent returns a User-Agent string built from static global vars.
func GetUserAgent ¶
func IsLocalEnv ¶
func IsLocalEnv() bool
func SetOneXDefaults ¶
func SetOneXDefaults(config *restclient.Config)
SetOneXDefaults sets default values on the provided client config for accessing the OneX API or returns an error if any of the defaults are impossible or invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.