Documentation
¶
Index ¶
- Constants
- Variables
- func ARFields() map[string]*schema.Schema
- func ApplianceTypeToString(appType int) string
- func ArrayDifference[T comparable](src, other []T) []T
- func ArrayToString(list []interface{}, delim string) string
- func ArraysAreEqual[T comparable](a, b []T) bool
- func FeaturesFields() map[string]*schema.Schema
- func LockLevelToString(lock int) string
- func MapArrayDifferenceByKeyValue(src, other []any, key string) ([]any, error)
- func MapArrayIntersectionByKeyValue(src, other []any, key string) ([]any, error)
- func NewVMStateConf(timeout time.Duration, pending, target []string) resource.StateChangeConf
- func NewVMUpdateStateConf(timeout time.Duration, pending, target []string) resource.StateChangeConf
- func NoExists(err error) bool
- func ParseIntFromInterface(i interface{}) (int, error)
- func Provider() *schema.Provider
- func SetTagsDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error
- func SetVMTagsDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error
- func StringToLockLevel(str string, lock *shared.LockLevel) error
- func ValueInArray[T comparable](value T, array []T) bool
- type ApplianceType
- type Configuration
- type MutexKV
- type NICUpdates
- type ResourceKey
- type SubResourceKey
- type Template
- type VMStates
Constants ¶
const ( AppTypeImage = "IMAGE" AppTypeVM = "VMTEMPLATE" AppTypeService = "SERVICE_TEMPLATE" )
const ( DefaultQuotaValue = -1 DSFlag uint8 = 1 NetFlag = 2 VMFlag = 4 ImgFlag = 8 DatastoreQuota = "datastore" NetworkQuota = "network" ImageQuota = "image" VMQuota = "vm" )
const ( One string = "one" Http = "http" S3 = "s3" LinuxContainers = "linuxcontainers" TurnkeyLinux = "turnkeylinux" DockerHub = "dockerhub" )
Variables ¶
var S3Types = []string{"aws", "minio", "ceph"}
Functions ¶
func ApplianceTypeToString ¶ added in v1.4.0
func ArrayDifference ¶ added in v1.5.0
func ArrayDifference[T comparable](src, other []T) []T
ArrayDifference returns the elements that are in "src" but not in "other"
func ArrayToString ¶
func ArraysAreEqual ¶ added in v1.5.0
func ArraysAreEqual[T comparable](a, b []T) bool
func FeaturesFields ¶ added in v0.5.0
func LockLevelToString ¶
func MapArrayDifferenceByKeyValue ¶ added in v1.5.0
returns the elements from src that are not present in other based on a key value
func MapArrayIntersectionByKeyValue ¶ added in v1.5.0
returns the elements from src that has the same key value as existing elements in other
func NewVMStateConf ¶ added in v0.5.1
func NewVMStateConf(timeout time.Duration, pending, target []string) resource.StateChangeConf
NewVMStateConf initialize a state change struct
func NewVMUpdateStateConf ¶ added in v0.5.1
func NewVMUpdateStateConf(timeout time.Duration, pending, target []string) resource.StateChangeConf
NewVMUpdateStateConf initialize a state change struct
func NoExists ¶
NoExists indicate if an entity exists in checking the error code returned from an Info call
func ParseIntFromInterface ¶ added in v1.4.1
func SetTagsDiff ¶ added in v1.0.0
func SetTagsDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error
func SetVMTagsDiff ¶ added in v1.0.0
func SetVMTagsDiff(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error
func ValueInArray ¶ added in v1.5.0
func ValueInArray[T comparable](value T, array []T) bool
Generic function to check if a value is present in array
Types ¶
type ApplianceType ¶ added in v1.4.0
type ApplianceType string
type Configuration ¶ added in v0.5.0
type Configuration struct { OneVersion *ver.Version Controller *goca.Controller // contains filtered or unexported fields }
type MutexKV ¶ added in v0.5.0
type MutexKV struct {
// contains filtered or unexported fields
}
MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.
The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.
type NICUpdates ¶ added in v1.5.0
type NICUpdates struct {
// contains filtered or unexported fields
}
type ResourceKey ¶ added in v0.5.0
func (*ResourceKey) String ¶ added in v0.5.0
func (k *ResourceKey) String() string
type SubResourceKey ¶ added in v0.5.0
func (*SubResourceKey) String ¶ added in v0.5.0
func (k *SubResourceKey) String() string
type VMStates ¶ added in v0.5.1
VMStates represents a collection of VM states
func NewVMLCMState ¶ added in v0.5.1
func NewVMState ¶ added in v0.5.1
Source Files
¶
- data_opennebula_cluster.go
- data_opennebula_datastore.go
- data_opennebula_group.go
- data_opennebula_host.go
- data_opennebula_image.go
- data_opennebula_marketplace.go
- data_opennebula_marketplace_app.go
- data_opennebula_security_group.go
- data_opennebula_template.go
- data_opennebula_template_vm_group.go
- data_opennebula_templates.go
- data_opennebula_user.go
- data_opennebula_virtual_data_center.go
- data_opennebula_virtual_machines.go
- data_opennebula_virtual_network.go
- data_opennebula_virtual_network_address_range.go
- data_opennebula_virtual_network_address_ranges.go
- data_opennebula_zone.go
- deprecated_quotas.go
- helpers.go
- helpers_appliance.go
- helpers_tags.go
- helpers_vm.go
- helpers_vm_state.go
- helpers_vnet.go
- helpers_vr.go
- mutexkv.go
- permissions.go
- provider.go
- quotas.go
- resource_opennebula_acl.go
- resource_opennebula_cluster.go
- resource_opennebula_datastore.go
- resource_opennebula_group.go
- resource_opennebula_group_admins.go
- resource_opennebula_group_quotas.go
- resource_opennebula_host.go
- resource_opennebula_image.go
- resource_opennebula_marketplace.go
- resource_opennebula_marketplace_app.go
- resource_opennebula_security_group.go
- resource_opennebula_service.go
- resource_opennebula_service_template.go
- resource_opennebula_template.go
- resource_opennebula_user.go
- resource_opennebula_user_quotas.go
- resource_opennebula_virtual_data_center.go
- resource_opennebula_virtual_machine.go
- resource_opennebula_virtual_network.go
- resource_opennebula_virtual_network_address_range.go
- resource_opennebula_virtual_router.go
- resource_opennebula_virtual_router_instance.go
- resource_opennebula_virtual_router_instance_template.go
- resource_opennebula_virtual_router_nic.go
- resource_opennebula_vm_group.go
- shared_schemas.go
- tags.go
- template_section.go