common

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumberContainer

type NumberContainer struct {
	Expression *string  `yaml:"expression,omitempty"`
	Value      *float64 `yaml:"value,omitempty"`
}

type Secret

type Secret struct {
	Plain   string        `yaml:"plain,omitempty" usage:" plain value"`
	Command SecretCommand `yaml:"command,omitempty" usage:" [command] "`
}

func (Secret) Get

func (s Secret) Get(ctx context.Context) ([]byte, error)

func (Secret) GetOrPanic

func (s Secret) GetOrPanic(ctx context.Context) []byte

func (Secret) GetOrPanicWithDefaultTimeout

func (s Secret) GetOrPanicWithDefaultTimeout() []byte

func (Secret) GetOrPanicWithTimeout

func (s Secret) GetOrPanicWithTimeout(to time.Duration) []byte

func (Secret) Validate

func (s Secret) Validate() error

type SecretCommand

type SecretCommand struct {
	Name   string            `yaml:"name,omitempty" usage:"name"`
	Args   []string          `yaml:"args,omitempty" usage:"arguments"`
	Env    map[string]string `yaml:"env,omitempty" usage:"additional environment variables"`
	NoTrim bool              `yaml:"no-trim,omitempty" usage:"dont trim spaces from the output"`
}

func (SecretCommand) Get

func (s SecretCommand) Get(ctx context.Context) ([]byte, error)

type StringContainer

type StringContainer struct {
	Expression *string `yaml:"expression,omitempty"`
	Value      *string ` yaml:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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