tools

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

copied from upstream to bypass internal package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintResource

func PrintResource(t *testing.T, resource interface{})

copied from https://github.com/gophercloud/gophercloud/blob/v1.7.0/github.com/sapcc/gophercloud-sapcc/internal/acceptance/tools/tools.go#L77-L81 PrintResource returns a resource as a readable structure

func RandomString

func RandomString(prefix string, n int) string

copied from https://github.com/gophercloud/gophercloud/blob/v1.7.0/github.com/sapcc/gophercloud-sapcc/internal/acceptance/tools/tools.go#L48-L60 RandomString generates a string of given length, but random content. All content will be within the ASCII graphic character set. (Implementation from Even Shaw's contribution on http://stackoverflow.com/questions/12771930/what-is-the-fastest-way-to-generate-a-long-random-string-in-go).

Types

This section is empty.

Jump to

Keyboard shortcuts

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