mirror of
https://github.com/containers/podman.git
synced 2025-10-15 02:06:42 +08:00

This patch adds a new --tls-verify flag to the `podman machine init` sub command which matches many of our other commands. This allows the user to optionally control whether TLS verification is enabled or disabled for download of the machine image. The default remains to leave the TLS verification decision to the backend library which defaults to enabling it, this patch just allows the user to explicitly set it on the CLI. Fixes: #26517 Signed-off-by: Lewis Roy <lewis@redhat.com>
30 lines
739 B
Go
30 lines
739 B
Go
package define
|
|
|
|
import (
|
|
"net/url"
|
|
|
|
"github.com/containers/image/v5/types"
|
|
)
|
|
|
|
type InitOptions struct {
|
|
PlaybookPath string
|
|
CPUS uint64
|
|
DiskSize uint64
|
|
IgnitionPath string
|
|
Image string
|
|
Volumes []string
|
|
IsDefault bool
|
|
Memory uint64
|
|
Swap uint64
|
|
Name string
|
|
TimeZone string
|
|
URI url.URL
|
|
Username string
|
|
ReExec bool
|
|
Rootful bool
|
|
UID string // uid of the user that called machine
|
|
UserModeNetworking *bool // nil = use backend/system default, false = disable, true = enable
|
|
USBs []string
|
|
SkipTlsVerify types.OptionalBool
|
|
}
|