component

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 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

View Source
var DefaultWarnCondition = WarnCondition{
	IfArchived: true,
	RecentDays: 180,
}

Functions

This section is empty.

Types

type Component

type Component interface {
	Logging(wc *WarnCondition) error
	LoadCache() bool
	StoreCache()
}

type Language

type Language struct {
	Name    string
	Version string
	EOL     bool
	EOLDate time.Time
	Err     error
}

func (*Language) LoadCache added in v0.1.1

func (t *Language) LoadCache() bool

func (*Language) Logging

func (t *Language) Logging(wc *WarnCondition) error

func (*Language) StoreCache added in v0.1.1

func (t *Language) StoreCache()

func (*Language) SyncWithEndOfLife

func (t *Language) SyncWithEndOfLife(ctx context.Context, cli *eol.Client) *Language

type Module

type Module struct {
	Name     string
	Archived bool
	LastPush time.Time
	GHOrg    string
	GHRepo   string
	Err      error
}

func (*Module) LoadCache added in v0.1.1

func (t *Module) LoadCache() bool

func (*Module) Logging

func (t *Module) Logging(wc *WarnCondition) error

func (*Module) OrgAndRepo

func (t *Module) OrgAndRepo() (string, string, error)

func (*Module) StoreCache added in v0.1.1

func (t *Module) StoreCache()

func (*Module) SyncWithGitHub

func (t *Module) SyncWithGitHub(ctx context.Context, cli *github.Client) *Module

func (*Module) SyncWithGopkg

func (m *Module) SyncWithGopkg(ctx context.Context, cli *gopkg.Client) *Module

func (*Module) SyncWithNPM

func (m *Module) SyncWithNPM(ctx context.Context, cli *npm.Client) *Module

type WarnCondition

type WarnCondition struct {
	IfArchived bool
	RecentDays int
}

Jump to

Keyboard shortcuts

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