Documentation
¶
Overview ¶
Copyright 2021 The KubeEdge Authors.
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 2024 The KubeEdge Authors.
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 2024 The KubeEdge Authors.
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 ¶
- Variables
- func CreateNamespaceIfNeeded(ctx context.Context, ns string) error
- func GetCRDClient() crdClientset.Interface
- func GetDynamicClient() dynamic.Interface
- func GetK8sCA() []byte
- func GetKubeClient() kubernetes.Interface
- func GetRestMapper() (meta.RESTMapper, error)
- func GetSecret(ctx context.Context, secretName string, ns string) (*corev1.Secret, error)
- func InitKubeEdgeClient(config *cloudcoreConfig.KubeAPIConfig, enableImpersonation bool)
- func SaveSecret(ctx context.Context, secret *corev1.Secret, ns string) error
- type RestMapperFunc
Constants ¶
This section is empty.
Variables ¶
var ( KubeConfig *rest.Config CrdConfig *rest.Config )
Functions ¶
func CreateNamespaceIfNeeded ¶ added in v1.18.0
func GetCRDClient ¶
func GetCRDClient() crdClientset.Interface
func GetDynamicClient ¶
func GetKubeClient ¶
func GetKubeClient() kubernetes.Interface
func GetRestMapper ¶ added in v1.13.0
func GetRestMapper() (meta.RESTMapper, error)
func InitKubeEdgeClient ¶
func InitKubeEdgeClient(config *cloudcoreConfig.KubeAPIConfig, enableImpersonation bool)
Types ¶
type RestMapperFunc ¶ added in v1.13.0
type RestMapperFunc func() (meta.RESTMapper, error)
var DefaultGetRestMapper RestMapperFunc = GetRestMapper