file

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(secret *corev1.Secret) string

Name will return either the filename of a single file to contain the secret information or the directory path, where all sub-files should be stored in.

func ReadAll

func ReadAll(logger *logrus.Entry, filename string) map[interface{}]interface{}

ReadAll returns the secret contents of all existing files for the secret. Return current file contents

func WriteAll

func WriteAll(logger *logrus.Entry, filename string, content map[interface{}]interface{}) error

WriteAll writes all content either into a single file with the given identifier or into multiple ones under a directory with the given name. Returns potential error

Types

This section is empty.

Jump to

Keyboard shortcuts

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