config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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