handler

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 14 Imported by: 0

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