Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionsProtocol = "actions://" ContainerProtocol = "container://" )
Variables ¶
Functions ¶
func DenormalizeRef ¶
DenormalizeRef removes the reference prefix.
func NormalizeActionsRef ¶
func NormalizeContainerRef ¶
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
Actions resolves GitHub references.
func NewActions ¶
NewActions creates a new resolver for GitHub Actions.
func (*Actions) LatestVersion ¶ added in v0.7.0
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container resolves Container registry references.
func NewContainer ¶
NewContainer creates a new resolver for Container registries.
type DefaultResolver ¶
type DefaultResolver struct {
// contains filtered or unexported fields
}
DefaultResolver is the default resolver.
func (*DefaultResolver) LatestVersion ¶ added in v0.7.0
LatestVersion upgrades the ref.
type GitHubRef ¶
type GitHubRef struct {
// contains filtered or unexported fields
}
func ParseActionRef ¶ added in v0.2.0
type Resolver ¶
type Resolver interface { // Resolve resolves the given reference, returning the resolved reference or // an error. If the provided context is canceled, the resolution is also // canceled. Resolve(context.Context, string) (string, error) // LatestVersion resolves the given reference to the most recent release version, // returning the resolved reference or an error. If the provided context is // canceled, the resolution is also canceled. LatestVersion(context.Context, string) (string, error) }
Resolver is an interface that resolvers can implement.
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test is a test resolver. It accepts a pre-defined list of results and panics if asked to resolve an undefined reference.
func NewTest ¶
func NewTest(data, latest map[string]*TestResult) (*Test, error)
NewTest creates a new test resolver.
func (*Test) LatestVersion ¶ added in v0.7.0
type TestResult ¶
TestResult represents the result of a resolution. If Err is not nil, Resolved is the empty string.
Click to show internal directories.
Click to hide internal directories.