attribution

package
v0.0.0-...-611bec0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name       string
	Path       string
	Language   language.Language
	Entrypoint string
	Roots      []discovery.Root
	Container  bool
	Members    []string
}

type Declaration

type Declaration struct {
	Type   resourcesv1.ResourceType
	Name   string
	Source string
}

type Reachability

type Reachability func(file string) bool

type Site

type Site struct {
	File string
	Line int
}

func DeclaringSite

func DeclaringSite(root, source string) (Site, bool)

func (Site) String

func (s Site) String() string

type UnresolvedDeclarationError

type UnresolvedDeclarationError struct {
	Type   resourcesv1.ResourceType
	Name   string
	Source string
}

func (*UnresolvedDeclarationError) Error

type UnresolvedImportError

type UnresolvedImportError struct {
	App    string
	File   string
	Line   int
	Detail string
}

func (*UnresolvedImportError) Error

func (e *UnresolvedImportError) Error() string

type Usage

type Usage struct {
	App   string
	Type  resourcesv1.ResourceType
	Name  string
	Files []string
}

func FindUsages

func FindUsages(ctx context.Context, root string, apps []App, declarations []Declaration) ([]Usage, error)

Jump to

Keyboard shortcuts

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