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.
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.
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)
}
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.
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.