mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-03 20:12:59 +00:00
* feat(lxc): allow to update features, add mount type support Signed-off-by: tarik02 <taras.fomin@gmail.com> * updates according to the MR Signed-off-by: tarik02 <taras.fomin@gmail.com> * update according to the pull request Signed-off-by: tarik02 <taras.fomin@gmail.com> --------- Signed-off-by: tarik02 <taras.fomin@gmail.com>
21 lines
604 B
Go
21 lines
604 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 validator
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
|
|
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
|
|
)
|
|
|
|
// MountType returns a schema validation function for a mount type on a lxc container.
|
|
func MountType() schema.SchemaValidateDiagFunc {
|
|
return validation.ToDiagFunc(validation.StringInSlice([]string{
|
|
"cifs",
|
|
"nfs",
|
|
}, false))
|
|
}
|