configmap

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapConverter

type ConfigMapConverter interface {
	FromKubeConfigMap(ctx context.Context, rc *ResourceClient, configMap *v1.ConfigMap) (resources.Resource, error)
	ToKubeConfigMap(ctx context.Context, rc *ResourceClient, resource resources.Resource) (*v1.ConfigMap, error)
}

type ResourceClient

type ResourceClient struct {
	Kube kubernetes.Interface
	common.KubeCoreResourceClient
	// contains filtered or unexported fields
}

func NewResourceClient

func NewResourceClient(kube kubernetes.Interface, resourceType resources.Resource, kubeCache cache.KubeCoreCache, plainConfigMaps bool) (*ResourceClient, error)

func NewResourceClientWithConverter

func NewResourceClientWithConverter(kube kubernetes.Interface, resourceType resources.Resource, kubeCache cache.KubeCoreCache, configMapConverter ConfigMapConverter) (*ResourceClient, error)

func (*ResourceClient) Delete

func (rc *ResourceClient) Delete(namespace, name string, opts clients.DeleteOpts) error

func (*ResourceClient) List

func (rc *ResourceClient) List(namespace string, opts clients.ListOpts) (resources.ResourceList, error)

func (*ResourceClient) Read

func (rc *ResourceClient) Read(namespace, name string, opts clients.ReadOpts) (resources.Resource, error)

func (*ResourceClient) Watch

func (rc *ResourceClient) Watch(namespace string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)

func (*ResourceClient) Write

Jump to

Keyboard shortcuts

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