secretgenerator

package
v0.0.0-...-865bd4e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config []SecretItem

func LoadConfigFromPath

func LoadConfigFromPath(path string) (Config, error)

func (Config) IsFieldGenerated

func (c Config) IsFieldGenerated(name, component string) bool

func (Config) IsItemGenerated

func (c Config) IsItemGenerated(name string) bool

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type FieldGenerator

type FieldGenerator struct {
	Name    string `json:"name,omitempty"`
	Cmd     string `json:"cmd,omitempty"`
	Cluster string `json:"-"`
}

type SecretItem

type SecretItem struct {
	ItemName string              `json:"item_name"`
	Fields   []FieldGenerator    `json:"fields,omitempty"`
	Notes    string              `json:"notes,omitempty"`
	Params   map[string][]string `json:"params,omitempty"`
}

Jump to

Keyboard shortcuts

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