config

package
v0.0.0-...-5292c23 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 8 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 struct {
	Web                Web             `yaml:"web"`
	FieldFilter        *FieldFilter    `yaml:"fieldFilter,omitempty"`
	PrintVersion       bool            `yaml:"printVersion"`
	DisableLoadSecrets bool            `yaml:"disableLoadSecrets"`
	IncludeNamespaces  []string        `yaml:"includeNamespaces"`
	SealedSecrets      SealedSecrets   `yaml:"sealedSecrets"`
	InitialSecret      string          `yaml:"initialSecret"`
	Ctx                context.Context `yaml:"-"`
}

func Parse

func Parse() (*Config, error)

type FieldFilter

type FieldFilter struct {
	Skip      [][]string `yaml:"skip"`
	SkipIfNil [][]string `yaml:"skipIfNil"`
}

func (*FieldFilter) Apply

func (ff *FieldFilter) Apply(sec map[string]interface{})

type SealedSecrets

type SealedSecrets struct {
	Service   string `yaml:"service"`
	Namespace string `yaml:"namespace"`
	CertURL   string `yaml:"certURL,omitempty"`
}

func (SealedSecrets) String

func (ss SealedSecrets) String() string

type Web

type Web struct {
	Port    int    `yaml:"port"`
	Context string `yaml:"context"`
	Logger  bool   `yaml:"logger"`
}

Jump to

Keyboard shortcuts

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