cdn

package
v0.0.0-...-d9f4117 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNameAvailability

func CheckNameAvailability(ctx context.Context, name, resourceType string) (bool, error)

CheckNameAvailability use this CDN package to determine whether or not a given name is appropriate.

Example
ctx := context.Background()

available, err := CheckNameAvailability(ctx, randname.GenerateWithPrefix("gocdnname", 6), "Microsoft.Cdn/Profiles/Endpoints")
if err != nil {
	log.Fatalf("cannot check availability: %v", err)
}
fmt.Println(available)
Output:

true

Types

This section is empty.

Jump to

Keyboard shortcuts

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