Documentation
¶
Index ¶
- Variables
- func ApiServerAddr() (string, error)
- func ExecKubectl(kubectlPath string, args []string) (out string, errStr string)
- func ExtractKubectl() (string, error)
- func GetServerVersion(serverAddr string) (string, error)
- func GetServiceAccountToken(tokenPath string) (string, error)
- func KubectlToolApi(args []string)
- func SecretToken(tokenPath string) (string, error)
- func ServerAccountRequest(opts K8sRequestOption) (string, error)
- type K8sRequestOption
Constants ¶
This section is empty.
Variables ¶
View Source
var MaybeSuccessfulStatuscodeList = []int{
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
}
MaybeSuccessfulStatuscodeList from https://www.w3.org/Protocols/HTTP/HTRESP.html
Functions ¶
func ApiServerAddr ¶
func ExecKubectl ¶ added in v1.5.4
func ExtractKubectl ¶ added in v1.5.4
func GetServerVersion ¶ added in v1.0.1
func GetServiceAccountToken ¶
func KubectlToolApi ¶
func KubectlToolApi(args []string)
func SecretToken ¶ added in v1.5.2
func ServerAccountRequest ¶
func ServerAccountRequest(opts K8sRequestOption) (string, error)
curl -s https://192.168.0.234:6443/api/v1/nodes?watch --header "Authorization: Bearer xxx" --cacert ca.crt
Types ¶
Click to show internal directories.
Click to hide internal directories.