utils

package
v1.6.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceChmod

func ForceChmod(instance *remote.InstanceInfo, filePath string, perms string) error

func GCFSClientAndDriverSetup

func GCFSClientAndDriverSetup(instance *remote.InstanceInfo) (*remote.TestContext, error)

func GenerateRandomFile added in v1.2.1

func GenerateRandomFile(instance *remote.InstanceInfo, filePath string, size int64) error

generate a random file with given size in MiB

func MkdirAll added in v0.3.1

func MkdirAll(instance *remote.InstanceInfo, dir string) error

func ReadFile

func ReadFile(instance *remote.InstanceInfo, filePath string) (string, error)

func RmAll

func RmAll(instance *remote.InstanceInfo, filePath string) error

func SetupProwConfig

func SetupProwConfig(resourceType string) (project, serviceAccount string)

func WriteFile

func WriteFile(instance *remote.InstanceInfo, filePath, fileContents string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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