go.mod: bump osbuild/images to 0.55

This commit is contained in:
Sanne Raymaekers 2024-04-13 15:47:23 +02:00
parent eab44ca8a8
commit 22140aa7c9
700 changed files with 30353 additions and 27556 deletions

View file

@ -31,11 +31,12 @@ type Checksum struct {
// File provides methods to get information on library item files.
type File struct {
Cached *bool `json:"cached,omitempty"`
Checksum *Checksum `json:"checksum_info,omitempty"`
Name string `json:"name,omitempty"`
Size *int64 `json:"size,omitempty"`
Version string `json:"version,omitempty"`
Cached *bool `json:"cached,omitempty"`
Checksum *Checksum `json:"checksum_info,omitempty"`
Name string `json:"name,omitempty"`
Size *int64 `json:"size,omitempty"`
Version string `json:"version,omitempty"`
DownloadEndpoint string `json:"file_download_endpoint,omitempty"`
}
// ListLibraryItemFiles returns a list of all the files for a library item.

View file

@ -205,6 +205,7 @@ func (c *Client) Do(ctx context.Context, req *http.Request, resBody interface{})
switch res.StatusCode {
case http.StatusOK:
case http.StatusCreated:
case http.StatusAccepted:
case http.StatusNoContent:
case http.StatusBadRequest:
// TODO: structured error types

View file

@ -37,6 +37,12 @@ func (r *Resource) String() string {
return r.u.String()
}
// WithSubpath appends the provided subpath to the URL.Path
func (r *Resource) WithSubpath(subpath string) *Resource {
r.u.Path += "/" + subpath
return r
}
// WithID appends id to the URL.Path
func (r *Resource) WithID(id string) *Resource {
r.u.Path += "/id:" + id