Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MainSelector ¶
MainSelector returns true if tag starts with `.main`.
Types ¶
type Chooser ¶
type Chooser struct {
// contains filtered or unexported fields
}
Chooser chooses tags from a registry.
func New ¶
func New(registry registry.Registry, selector TagSelector) *Chooser
New returns a new Chooser that chooses tags from registry. If selector is nil, all tags are considered when choosing the latest. If selector is not nil, only tags that cause selector to return true are considrered when choosing the latest.
type TagSelector ¶
TagSelector returns true if tag should be considered when choosing.
Click to show internal directories.
Click to hide internal directories.