component

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

View Source
var (
	DockerHubRegistry          = "docker.io"
	GoogleContainerRegistry    = "gcr.io"
	DockerHubOfficialNamespace = "library"
	DefaultTag                 = "latest"
)
View Source
var DefaultWarnCondition = WarnCondition{
	IfArchived: true,
	RecentDays: 180,
}

Functions

This section is empty.

Types

type Component

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

type Image added in v0.2.0

type Image struct {
	RawString  string
	Repository string
	Namespace  string
	Registry   string
	Tag        string
	Err        error
	LastUpdate time.Time
}

func (*Image) FromRawString added in v0.2.0

func (c *Image) FromRawString(s string) *Image

func (*Image) LoadCache added in v0.2.0

func (c *Image) LoadCache() bool

func (*Image) Logging added in v0.2.0

func (c *Image) Logging(wc *WarnCondition)

func (*Image) StoreCache added in v0.2.0

func (c *Image) StoreCache()

func (*Image) SyncWithRegistry added in v0.2.0

func (c *Image) SyncWithRegistry(ctx context.Context) *Image

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)

func (*Language) StoreCache added in v0.1.1

func (t *Language) StoreCache()

func (*Language) SyncWithEndOfLife

func (t *Language) SyncWithEndOfLife(ctx context.Context) *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)

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) *Module

func (*Module) SyncWithNPM

func (m *Module) SyncWithNPM(ctx context.Context) *Module

func (*Module) SyncWithPypi added in v0.2.1

func (t *Module) SyncWithPypi(ctx context.Context) *Module

func (*Module) SyncWithRubyGem added in v0.2.2

func (t *Module) SyncWithRubyGem(ctx context.Context) *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