kube

package
v0.2.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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