client

package
v1.20.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 20 Imported by: 31

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

Constants

This section is empty.

Variables

View Source
var (
	KubeConfig *rest.Config
	CrdConfig  *rest.Config
)

Functions

func CreateNamespaceIfNeeded added in v1.18.0

func CreateNamespaceIfNeeded(ctx context.Context, ns string) error

func GetCRDClient

func GetCRDClient() crdClientset.Interface

func GetDynamicClient

func GetDynamicClient() dynamic.Interface

func GetK8sCA added in v1.17.0

func GetK8sCA() []byte

func GetKubeClient

func GetKubeClient() kubernetes.Interface

func GetRestMapper added in v1.13.0

func GetRestMapper() (meta.RESTMapper, error)

func GetSecret added in v1.18.0

func GetSecret(ctx context.Context, secretName string, ns string) (*corev1.Secret, error)

GetSecret ...

func InitKubeEdgeClient

func InitKubeEdgeClient(config *cloudcoreConfig.KubeAPIConfig, enableImpersonation bool)

func SaveSecret added in v1.18.0

func SaveSecret(ctx context.Context, secret *corev1.Secret, ns string) error

saveSecret creates a secret when it does not exist, otherwise updates it.

Types

type RestMapperFunc added in v1.13.0

type RestMapperFunc func() (meta.RESTMapper, error)
var DefaultGetRestMapper RestMapperFunc = GetRestMapper

Jump to

Keyboard shortcuts

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