dnslink

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InlineDNS

func InlineDNS(s string) string

func MergeJSON added in v0.6.0

func MergeJSON(inputPaths []string, outputPath string) error

func MergeNsMapEnv added in v0.6.0

func MergeNsMapEnv(inputPaths []string, outputPath string) error

MergeEnv produces a string compatible with IPFS_NS_MAP env veriable syntax which can be used by tools to pre-populate namesys (IPNS, DNSLink) resolution results to facilitate tests based on static fixtures.

Types

type ConfigFixture

type ConfigFixture struct {
	DNSLinks map[string]DNSLink `yaml:"dnslinks"`
}
func MustOpenDNSLink(file string) *ConfigFixture
func OpenDNSLink(absPath string) (*ConfigFixture, error)

func (*ConfigFixture) MustGet

func (d *ConfigFixture) MustGet(id string) string
type DNSLink struct {
	Domain string `yaml:"domain"`
	Path   string `yaml:"path"`
}

type DNSLinksAggregate

type DNSLinksAggregate struct {
	Domains map[string]string `json:"domains"`
}

func Aggregate

func Aggregate(inputPaths []string) (*DNSLinksAggregate, error)

Jump to

Keyboard shortcuts

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