collectors

package
v0.0.0-...-9b0da18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FS     iowrap.Fs
	FSUtil *iowrap.Afero
)

Functions

func GatherConstants

func GatherConstants(files []string) map[rst.RstConstant]string

func GatherFiles

func GatherFiles(path string) []string
func GatherHTTPLinks(files []string) map[rst.RstHTTPLink]string

func GatherSharedIncludes

func GatherSharedIncludes(files []string) []rst.SharedInclude

Types

type RefTargetMap

type RefTargetMap map[rst.RefTarget]string

func GatherLocalRefs

func GatherLocalRefs(files []string) RefTargetMap

func GatherSharedLocalRefs

func GatherSharedLocalRefs(input []byte, defs sources.TomlConfig) RefTargetMap

func (*RefTargetMap) Get

func (r *RefTargetMap) Get(ref *rst.RstRole) (*rst.RefTarget, bool)

func (RefTargetMap) SSLToTLS

func (r RefTargetMap) SSLToTLS() RefTargetMap

Snooty does magic and converts tsl to ssl in refs, so we have to mimic it

func (*RefTargetMap) Union

func (r *RefTargetMap) Union(other RefTargetMap) *RefTargetMap

type RstRoleMap

type RstRoleMap map[rst.RstRole]string

func GatherRoles

func GatherRoles(files []string) RstRoleMap

func GatherSharedRefs

func GatherSharedRefs(input []byte, defs sources.TomlConfig) RstRoleMap

func (RstRoleMap) ConvertConstants

func (r RstRoleMap) ConvertConstants(defs *sources.TomlConfig) RstRoleMap

func (*RstRoleMap) Get

func (r *RstRoleMap) Get(key string) (*rst.RstRole, bool)

func (*RstRoleMap) Union

func (r *RstRoleMap) Union(other RstRoleMap) *RstRoleMap

Jump to

Keyboard shortcuts

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