0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-29 18:21:10 +00:00
terraform-provider-proxmox/proxmox/version/capabilities.go
Marco Attia 2d9e0b585e
feat: add support for 'import' content type in Proxmox file resources (#1983)
Signed-off-by: Marco Attia <54147992+Vaneixus@users.noreply.github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-06-27 21:23:22 -04:00

21 lines
781 B
Go

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package version
import "github.com/hashicorp/go-version"
// MinimumProxmoxVersion is the minimum supported Proxmox version by the provider.
//
//nolint:gochecknoglobals
var MinimumProxmoxVersion = ProxmoxVersion{*version.Must(version.NewVersion("8.0.0"))}
// SupportImportContentType checks if the Proxmox version supports the `import` content type when uploading disk images.
// See https://bugzilla.proxmox.com/show_bug.cgi?id=2424
func (v *ProxmoxVersion) SupportImportContentType() bool {
return v.GreaterThanOrEqual(version.Must(version.NewVersion("8.4.0")))
}