internal

package
v2.45.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

func CreateBuiltInTeamsCannotDeleteError

func CreateBuiltInTeamsCannotDeleteError() error

func CreateClientInitializationError

func CreateClientInitializationError(methodName string) error

func CreateInvalidClientStateError

func CreateInvalidClientStateError(ServiceName string) error

func CreateInvalidParameterError

func CreateInvalidParameterError(methodName string, name string) error

func CreateInvalidPathError

func CreateInvalidPathError(ServiceName string) error

func CreateItemNotFoundError

func CreateItemNotFoundError(ServiceName string, methodName string, name string) error

func CreateRequiredParameterIsEmptyError added in v2.33.0

func CreateRequiredParameterIsEmptyError(parameter string) error

func CreateRequiredParameterIsEmptyOrNilError

func CreateRequiredParameterIsEmptyOrNilError(parameter string) error

func CreateResourceNotFoundError

func CreateResourceNotFoundError(name string, identifier string, value string) error

func CreateValidationFailureError

func CreateValidationFailureError(methodName string, err error) error

func GetDefaultClient

func GetDefaultClient() *sling.Sling

func GetRandomName

func GetRandomName() string

func GetRandomString added in v2.45.0

func GetRandomString(length int) string

func GetRandomThumbprint added in v2.38.0

func GetRandomThumbprint() string

func GetSpaceID added in v2.33.0

func GetSpaceID(spaceID string, clientSpaceID string) (string, error)

func Int

func Int(v int) *int

func Int64

func Int64(v int64) *int64

func IsEmpty

func IsEmpty(s string) bool

func IsLinksEqual

func IsLinksEqual(linksA map[string]string, linksB map[string]string) bool

func MissingSpaceIDError added in v2.33.0

func MissingSpaceIDError() error

func PrettyJSON

func PrettyJSON(data interface{}) string

func String

func String(v string) *string

func TrimTemplate

func TrimTemplate(uri string) string

func ValidateMultipleProperties

func ValidateMultipleProperties(validatePropertyErrors []error) error

ValidateMultipleProperties returns the first error in a list of property validations

func ValidatePropertiesMatch

func ValidatePropertiesMatch(firstProperty, firstPropertyName, secondProperty, secondPropertyName string) error

ValidatePropertiesMatch checks two values against each other

func ValidatePropertyValues

func ValidatePropertyValues(propertyName string, propertyValue string, validValues []string) error

ValidatePropertyValues returns an error if the given string is not in a slice of strings

func ValidateRequiredPropertyValue

func ValidateRequiredPropertyValue(propertyName string, propertyValue string) error

ValidateRequiredPropertyValue returns an error if the property value is empty

func ValidateRequiredUUID

func ValidateRequiredUUID(propertyName string, id *uuid.UUID) error

func ValidateSemanticVersion

func ValidateSemanticVersion(propertyName string, version string) error

func ValidateStringInSlice

func ValidateStringInSlice(str string, list []string) bool

ValidateStringInSlice checks if a string is in the given slice

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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