Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToAPIResult ¶
func ToAPIResult(res *ocispec.Descriptor) *models.ServiceCreateRunnerJobExecutionResultRequest
ToAPIResult builds the base success request for an image build/copy. The caller is expected to populate source-identity fields (SourceRef, SourceImage, ResolvedTag, SourceDigest, SourceMediaType, ResolvedAt, NoOp) directly on the returned struct using values derived from `res` and the resolver outcome.
NOTE(jm): once we build out the "results" API, this will become a more first class function, where we build an actual request to represent the image here. For now, it's mainly a translation layer, until we add that.
Types ¶
type AccessInfo ¶
type AccessInfo struct {
Image string
Insecure bool
Auth *AccessInfoAuth
}
func (*AccessInfo) RepositoryURI ¶
func (a *AccessInfo) RepositoryURI() string
NOTE(jm): in some cases, the image is not a fully resolved path, and we need to use a proxy path or other way of referencing the image, such as when a docker index image is used.