kube

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

README

kube

存放跟 Kubernetes 客户端或服务端配置相关的函数/方法

Documentation

Index

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 GetUserAgent(userAgent string) string

func IsLocalEnv

func IsLocalEnv() bool

func SetClientOptionsForController

func SetClientOptionsForController(config *rest.Config) *rest.Config

func SetClientOptionsForLifecycleController

func SetClientOptionsForLifecycleController(config *rest.Config) *rest.Config

func SetClientOptionsForMinerController

func SetClientOptionsForMinerController(config *rest.Config) *rest.Config

func SetClientOptionsForMinerSetController

func SetClientOptionsForMinerSetController(config *rest.Config) *rest.Config

func SetDefaultClientOptions

func SetDefaultClientOptions(config *rest.Config) *rest.Config

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.

Jump to

Keyboard shortcuts

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