Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AttestationTypes = []string{
		"tdx",
		"tpm2",
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TD *TD `yaml:"trusted_domain"`

	HTTP  *HTTP  `yaml:"http"`
	Vault *Vault `yaml:"vault"`

	Format  string `yaml:"-"`
	Version string `yaml:"-"`
	Verbose bool   `yaml:"-"`
}

func (*Config) Preprocess

func (cfg *Config) Preprocess() error

type HTTP

type HTTP struct {
	CACert        string `yaml:"ca_cert"`
	CAPath        string `yaml:"ca_path"`
	ClientCert    string `yaml:"client_cert"`
	ClientKey     string `yaml:"client_key"`
	Insecure      bool   `yaml:"insecure"`
	TLSServerName string `yaml:"tls_server_name"`
}

func (*HTTP) Preprocess

func (cfg *HTTP) Preprocess() error

func (*HTTP) TLSEnabled

func (cfg *HTTP) TLSEnabled() bool

type TD

type TD struct {
	AttestationType   string `yaml:"attestation_type"`
	Name              string `yaml:"name"`
	VaultPath         string `yaml:"vault_path"`
	TOTPSecret        string `yaml:"totp_secret"`
	TPM2AKPrivateBlob string `yaml:"tpm2_ak_private_blob"`
}

func (*TD) Preprocess

func (cfg *TD) Preprocess() error

type Vault

type Vault struct {
	Address string        `yaml:"address"`
	NoPrint bool          `yaml:"no_print"`
	NoStore bool          `yaml:"no_store"`
	Timeout time.Duration `yaml:"timeout"`
}

func (*Vault) Preprocess

func (cfg *Vault) Preprocess() error

Jump to

Keyboard shortcuts

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