config

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package config has top-level configs etc. for the distributor implementation and associated commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed logs.yaml
	LogsYAML []byte
)

Functions

func DefaultLogs

func DefaultLogs() (map[string]LogInfo, error)

DefaultLogs returns a parsed representation of the embedded LogsYAML config. The returned map is keyed by LogID.

func ParseLogConfig

func ParseLogConfig(y []byte) (map[string]LogInfo, error)

ParseLogConfig parses the passed in log config, and returns a map keyed by LogID.

func ParseWitnessesConfig

func ParseWitnessesConfig(y []byte) (map[string]note.Verifier, error)

ParseWitnessesConfig parses the passed in witnesses config, and returns a map keyed by the raw verifier key string.

Types

type LogInfo

type LogInfo struct {
	Origin   string
	Verifier note.Verifier
}

LogInfo contains the information that the distributor needs to know about a log, other than its ID.

Jump to

Keyboard shortcuts

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