Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func BytesToFile(path, name string, data []byte) error
- func CreateBasic(serverURL, userName, clusterName string, caCert []byte) *clientcmdapi.Config
- func CreateWithCerts(serverURL, userName, clusterName string, caCert []byte, clientKey []byte, ...) *clientcmdapi.Config
- func FileToBytes(path, name string) ([]byte, error)
- func FlagsIP(ip string) []net.IP
- func GenExamples(path string)
- func HomeDir() string
- func InternetIP() (net.IP, error)
- func IsIP(s string) bool
- func MapToString(labels map[string]string) string
- func NewCRDsClient(c *rest.Config) (*clientset.Clientset, error)
- func NewClientSet(c *rest.Config) (*kubernetes.Clientset, error)
- func PathForCert(pkiPath, name string) string
- func PathForKey(pkiPath, name string) string
- func PathIsExist(path string) bool
- func RestConfig(kubeconfigPath string) (*rest.Config, error)
- func StaticYamlToJsonByte(staticYaml string) []byte
- func StringToNetIP(ip string) net.IP
- func WriteKubeConfigFromSpec(serverURL, userName, clusterName, kubeconfigPath, kubeconfigName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToFile ¶
func CreateBasic ¶
func CreateBasic(serverURL, userName, clusterName string, caCert []byte) *clientcmdapi.Config
CreateBasic creates a basic, general KubeConfig object that then can be extended
func CreateWithCerts ¶
func CreateWithCerts(serverURL, userName, clusterName string, caCert []byte, clientKey []byte, clientCert []byte) *clientcmdapi.Config
CreateWithCerts creates a KubeConfig object with access to the API server with client certificates
func FileToBytes ¶
func GenExamples ¶
func GenExamples(path string)
func NewCRDsClient ¶
NewCRDsClient clientset ClientSet
func NewClientSet ¶
func NewClientSet(c *rest.Config) (*kubernetes.Clientset, error)
NewClientSet Kubernetes ClientSet
func PathForCert ¶
func PathForKey ¶
returns the paths for the certificate and key given the path and basename.
func PathIsExist ¶
func RestConfig ¶
RestConfig Kubernetes kubeconfig
func StaticYamlToJsonByte ¶
func StringToNetIP ¶
Types ¶
This section is empty.