keycloak

package module
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

README

keycloak

A library that helps you deal with passwords in your gitops approach.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFormat

type FileFormat int

The file format of an encrypted file.

const (
	// JSON -
	JSON FileFormat = iota
	// YAML -
	YAML
)

type Store

type Store interface {
	// EncryptSubtree -
	EncryptSubtree(string, ...string) error
	// DecryptSubtree -
	DecryptSubtree(string, ...string) error
	// Subtree -
	Subtree(...string) (map[string]interface{}, error)
	// ToFile -
	ToFile(string) error
}

Store defines an encrypted data file. Files are assumed to be tree-structured (or at least eflat arrays). This interface allows users to do basic operations on these secret files.

func GetStoreForFile

func GetStoreForFile(path string) (Store, error)

GetStoreForFile -

func GetStoreFromBytes added in v0.3.6

func GetStoreFromBytes(bites []byte, frmt FileFormat) (Store, error)

GetStoreFromBytes -

func GetStoreWithFormat

func GetStoreWithFormat(path string, frmt FileFormat) (Store, error)

GetStoreWithFormat -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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