configmap

package
Version: v0.0.0-...-7f009f3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapWrapper

type ConfigMapWrapper struct {
	// ConfigMapInterface is a client, not the ConfigMap itself
	Client  kcorev1.ConfigMapInterface
	Name    string
	DataKey string
}

Begin proper k8s bits ConfigMapWrapper is a struct with public fields, which implements github.com/Fresh-Tracks/bomb-squad/config.Configurator

func NewConfigMapWrapper

func NewConfigMapWrapper(client kcorev1.ConfigMapInterface, namespace string, configMapName string, dataKey string) *ConfigMapWrapper

NewConfigMapWrapper returns a ConfigMapWrapper

func (*ConfigMapWrapper) GetLocation

func (c *ConfigMapWrapper) GetLocation() string

GetLocation implements github.com/Fresh-Tracks/bomb-squad/config.Configurator

func (*ConfigMapWrapper) Read

func (c *ConfigMapWrapper) Read() ([]byte, error)

Read implements github.com/Fresh-Tracks/bomb-squad/config.Configurator

func (*ConfigMapWrapper) Write

func (c *ConfigMapWrapper) Write(data []byte) error

Write implements github.com/Fresh-Tracks/bomb-squad/config.Configurator

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL