common

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUUID

func ExtractUUID(input string) string

ExtractUUID finds an UUID in the input string Returns an empty string if no UUID was found.

func NormalizeID

func NormalizeID(prefix, id string) string

NormalizeID checks if the ID contains a wanted prefix If it does, the function returns the original ID. Otherwise, it returns the prefix + the ID.

Types

type AttributeOpts

type AttributeOpts func(*AttributeStruct)

func IsComputed

func IsComputed() AttributeOpts

IsComputed sets the storage profile attribute as computed.

func IsOptional

func IsOptional() AttributeOpts

IsOptional sets the storage profile attribute as optional.

func IsRequired

func IsRequired() AttributeOpts

IsRequired sets the storage profile attribute as required.

type AttributeStruct

type AttributeStruct struct {
	Computed bool
	Optional bool
	Required bool
}

Directories

Path Synopsis
Package mutex provides a simple key/value store for arbitrary mutexes.
Package mutex provides a simple key/value store for arbitrary mutexes.
Package vapp provides common functionality for vApp resources.
Package vapp provides common functionality for vApp resources.
vm
Package vm contains the common code for the VM resource and the VM datasource.
Package vm contains the common code for the VM resource and the VM datasource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL