handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 14 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle added in v0.2.3

func Handle(h Handler, ctx context.Context, path string, wc *component.WarnCondition)

Types

type Dockerfile added in v0.2.0

type Dockerfile struct{}

func (*Dockerfile) LookUp added in v0.2.0

func (h *Dockerfile) LookUp(path string) (buf []component.Component, err error)

func (*Dockerfile) SyncWithSource added in v0.2.3

func (h *Dockerfile) SyncWithSource(c component.Component, ctx context.Context) component.Component

type GemFile added in v0.2.2

type GemFile struct {
	GCli *github.Client
}

func (*GemFile) LookUp added in v0.2.2

func (h *GemFile) LookUp(path string) (buf []component.Component, err error)

func (*GemFile) SyncWithSource added in v0.2.3

func (h *GemFile) SyncWithSource(c component.Component, ctx context.Context) component.Component

type GoMod

type GoMod struct {
	GCli *github.Client
}

func (*GoMod) LookUp

func (h *GoMod) LookUp(path string) (buf []component.Component, err error)

func (*GoMod) SyncWithSource added in v0.2.3

func (h *GoMod) SyncWithSource(c component.Component, ctx context.Context) component.Component

type Handler

type Handler interface {
	LookUp(path string) ([]component.Component, error)
	SyncWithSource(c component.Component, ctx context.Context) component.Component
}

type PackageJSON

type PackageJSON struct {
	GCli *github.Client
}

func (*PackageJSON) LookUp

func (h *PackageJSON) LookUp(path string) (buf []component.Component, err error)

func (*PackageJSON) SyncWithSource added in v0.2.3

func (h *PackageJSON) SyncWithSource(c component.Component, ctx context.Context) component.Component

type RequirementsTXT added in v0.2.1

type RequirementsTXT struct {
	GCli *github.Client
}

func (*RequirementsTXT) LookUp added in v0.2.1

func (h *RequirementsTXT) LookUp(path string) (buf []component.Component, err error)

func (*RequirementsTXT) SyncWithSource added in v0.2.3

Jump to

Keyboard shortcuts

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