Port osbuild/images v0.33.0 with dot-notation to composer
Update the osbuild/images to the version which introduces "dot notation" for distro release versions. - Replace all uses of distroregistry by distrofactory. - Delete local version of reporegistry and use the one from the osbuild/images. - Weldr: unify `createWeldrAPI()` and `createWeldrAPI2()` into a single `createTestWeldrAPI()` function`. - store/fixture: rework fixtures to allow overriding the host distro name and host architecture name. A cleanup function to restore the host distro and arch names is always part of the fixture struct. - Delete `distro_mock` package, since it is no longer used. - Bump the required version of osbuild to 98, because the OSCAP customization is using the 'compress_results' stage option, which is not available in older versions of osbuild. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
f6ff8c40dd
commit
625b1578fa
1166 changed files with 154457 additions and 5508 deletions
76
vendor/github.com/Microsoft/hcsshim/internal/protocol/guestrequest/types.go
generated
vendored
Normal file
76
vendor/github.com/Microsoft/hcsshim/internal/protocol/guestrequest/types.go
generated
vendored
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
package guestrequest
|
||||
|
||||
// These are constants for v2 schema modify requests.
|
||||
|
||||
type RequestType string
|
||||
type ResourceType string
|
||||
|
||||
// RequestType const.
|
||||
const (
|
||||
RequestTypeAdd RequestType = "Add"
|
||||
RequestTypeRemove RequestType = "Remove"
|
||||
RequestTypePreAdd RequestType = "PreAdd" // For networking
|
||||
RequestTypeUpdate RequestType = "Update"
|
||||
)
|
||||
|
||||
type SignalValueWCOW string
|
||||
|
||||
const (
|
||||
SignalValueWCOWCtrlC SignalValueWCOW = "CtrlC"
|
||||
SignalValueWCOWCtrlBreak SignalValueWCOW = "CtrlBreak"
|
||||
SignalValueWCOWCtrlClose SignalValueWCOW = "CtrlClose"
|
||||
SignalValueWCOWCtrlLogOff SignalValueWCOW = "CtrlLogOff"
|
||||
SignalValueWCOWCtrlShutdown SignalValueWCOW = "CtrlShutdown"
|
||||
)
|
||||
|
||||
// ModificationRequest is for modify commands passed to the guest.
|
||||
type ModificationRequest struct {
|
||||
RequestType RequestType `json:"RequestType,omitempty"`
|
||||
ResourceType ResourceType `json:"ResourceType,omitempty"`
|
||||
Settings interface{} `json:"Settings,omitempty"`
|
||||
}
|
||||
|
||||
type NetworkModifyRequest struct {
|
||||
AdapterId string `json:"AdapterId,omitempty"` //nolint:stylecheck
|
||||
RequestType RequestType `json:"RequestType,omitempty"`
|
||||
Settings interface{} `json:"Settings,omitempty"`
|
||||
}
|
||||
|
||||
type RS4NetworkModifyRequest struct {
|
||||
AdapterInstanceId string `json:"AdapterInstanceId,omitempty"` //nolint:stylecheck
|
||||
RequestType RequestType `json:"RequestType,omitempty"`
|
||||
Settings interface{} `json:"Settings,omitempty"`
|
||||
}
|
||||
|
||||
var (
|
||||
// V5 GUIDs for SCSI controllers
|
||||
// These GUIDs are created with namespace GUID "d422512d-2bf2-4752-809d-7b82b5fcb1b4"
|
||||
// and index as names. For example, first GUID is created like this:
|
||||
// guid.NewV5("d422512d-2bf2-4752-809d-7b82b5fcb1b4", []byte("0"))
|
||||
ScsiControllerGuids = []string{
|
||||
"df6d0690-79e5-55b6-a5ec-c1e2f77f580a",
|
||||
"0110f83b-de10-5172-a266-78bca56bf50a",
|
||||
"b5d2d8d4-3a75-51bf-945b-3444dc6b8579",
|
||||
"305891a9-b251-5dfe-91a2-c25d9212275b",
|
||||
}
|
||||
)
|
||||
|
||||
// constants for v2 schema ProcessModifyRequest
|
||||
|
||||
// Operation type for [hcsschema.ProcessModifyRequest].
|
||||
type ProcessModifyOperation string
|
||||
|
||||
const (
|
||||
ModifyProcessConsoleSize ProcessModifyOperation = "ConsoleSize"
|
||||
CloseProcessHandle ProcessModifyOperation = "CloseHandle"
|
||||
)
|
||||
|
||||
// Standard IO handle(s) to close for [hcsschema.CloseHandle] in [hcsschema.ProcessModifyRequest].
|
||||
type STDIOHandle string
|
||||
|
||||
const (
|
||||
STDInHandle STDIOHandle = "StdIn"
|
||||
STDOutHandle STDIOHandle = "StdOut"
|
||||
STDErrHandle STDIOHandle = "StdErr"
|
||||
AllHandles STDIOHandle = "All"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue