version

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version added in v0.2.0

type Version struct {
	// contains filtered or unexported fields
}

func New

func New(log *logrus.Entry, client *client.Client, cacheTimeout time.Duration) *Version

func (*Version) Fetch added in v0.2.0

func (v *Version) Fetch(ctx context.Context, imageURL string, _ *api.Options) (interface{}, error)

Fetch returns the given image tags for a given image URL.

func (*Version) LatestTagFromImage added in v0.2.0

func (v *Version) LatestTagFromImage(ctx context.Context, imageURL string, opts *api.Options) (*api.ImageTag, error)

LatestTagFromImage will return the latest tag given an imageURL, according to the given options.

func (*Version) Run added in v0.2.0

func (v *Version) Run(refreshRate time.Duration)

Run is a blocking func that will start the image cache garbage collector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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