writer

package
v0.0.0-...-38618e0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

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
}

func NewConfigMap

func NewConfigMap(cmName, namespace string, logger log.Logger) (cw *ConfigMap, err error)

func (*ConfigMap) GetData

func (c *ConfigMap) GetData(name string) (data string, err error)

func (*ConfigMap) Write

func (c *ConfigMap) Write(name, data string) (err error)

Writes string data to configmap.

type File

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

func NewFile

func NewFile(fileName string, logger log.Logger) (f *File, err error)

func (*File) GetData

func (c *File) GetData(name string) (data string, err error)

func (*File) Write

func (c *File) Write(name, data string) (err error)

Writes string data to configmap.

type Writer

type Writer interface {
	GetData(string) (string, error)
	Write(name, data string) error
}

Jump to

Keyboard shortcuts

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