toop

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMissingRotation        = errors.Error("missing rotation definition")
	ErrMissingTokenDefinition = errors.Error("missing token definition")
	ErrMissingTokenOwner      = errors.Error("missing token owner for source")
	ErrMissingTokenRole       = errors.Error("missing token role for source")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tokens          []token.Config  `yaml:"tokens" validate:"required"`
	DefaultRotation *token.Rotation `yaml:"default_rotation,omitempty"`
	DryRun          bool            `yaml:"dry_run,omitempty"`
	ForceRotate     bool            `yaml:"force_rotate,omitempty"`
	License         string          `yaml:"license,omitempty"`
	Source          Source          `yaml:"source,omitempty"`
	Vault           Vault           `yaml:"vault,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

Validate checks logical/structural requirements that can't be validated with go-yaml.

type Source

type Source struct {
	Url string `yaml:"url"`
}

type Vault

type Vault struct {
	Url  string `yaml:"url"`
	Type string `yaml:"type"`
}

Jump to

Keyboard shortcuts

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