configmap

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package configmap manipulates the k8s api of configmap object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	// contains filtered or unexported fields
}

ConfigMap is the object to encapsulate ConfigMap

func New

func New(options ...Option) *ConfigMap

New news an ConfigMap

func (*ConfigMap) Create

func (c *ConfigMap) Create(cm *corev1.ConfigMap) error

Create create a k8s ConfigMap

func (*ConfigMap) Delete

func (c *ConfigMap) Delete(namespace, name string) error

Delete delete a k8s configmap

func (*ConfigMap) DeleteIfExists

func (c *ConfigMap) DeleteIfExists(namespace, name string) error

DeleteIfExists delete if k8s configmap exists

func (*ConfigMap) Exists

func (c *ConfigMap) Exists(namespace, name string) error

Exists decides whether a configmap exists

func (*ConfigMap) Get

func (c *ConfigMap) Get(namespace, name string) (*corev1.ConfigMap, error)

Get gets a k8s configmap

func (*ConfigMap) Patch

func (c *ConfigMap) Patch(cm *corev1.ConfigMap) error

Patch patches a k8s configmap object

func (*ConfigMap) Update

func (c *ConfigMap) Update(cm *corev1.ConfigMap) error

Update updates a k8s configmaps

type Option

type Option func(*ConfigMap)

Option configures an ConfigMap

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

Jump to

Keyboard shortcuts

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