util

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendNameValueStringPair

func AppendNameValueStringPair(stringPairs *[]citrixorchestration.NameValueStringPairModel, name string, appendValue string)

func Contains

func Contains[T comparable](s []T, e T) bool

func ConvertBaseStringArrayToPrimitiveStringArray

func ConvertBaseStringArrayToPrimitiveStringArray(v []types.String) []string

func ConvertPrimitiveStringArrayToBaseStringArray

func ConvertPrimitiveStringArrayToBaseStringArray(v []string) []types.String

func GetAllResourcePathList

func GetAllResourcePathList(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, connectionDetails *citrixorchestration.HypervisorConnectionDetailRequestModel, folderPath, resourceType string) []string

func GetFilteredResourcePathList

func GetFilteredResourcePathList(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, connectionDetails *citrixorchestration.HypervisorConnectionDetailRequestModel, folderPath, resourceType string, filter []string) ([]string, error)

func GetJobIdFromHttpResponse

func GetJobIdFromHttpResponse(httpResponse http.Response) string

func GetSingleResourcePath

func GetSingleResourcePath(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, connectionDetails *citrixorchestration.HypervisorConnectionDetailRequestModel, folderPath, resourceName, resourceType, resourceGroupName string) string

func IsValidUUID

func IsValidUUID(u string) bool

func IsValidUUIDorNull

func IsValidUUIDorNull(u basetypes.StringValue) bool

func ParseNameValueStringPairToClientModel

func ParseNameValueStringPairToClientModel(stringPairs []NameValueStringPairModel) *[]citrixorchestration.NameValueStringPairModel

func ParseNameValueStringPairToPluginModel

func ParseNameValueStringPairToPluginModel(stringPairs []citrixorchestration.NameValueStringPairModel) *[]NameValueStringPairModel

func ReadClientError

func ReadClientError(err error) string

func StringToTypeBool

func StringToTypeBool(from string) types.Bool

func TypeBoolToString

func TypeBoolToString(from types.Bool) string

Types

type NameValueStringPairModel

type NameValueStringPairModel struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

Jump to

Keyboard shortcuts

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