configmap

package
v0.0.0-...-30d047d Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

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

Jump to

Keyboard shortcuts

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