utils

package
v1.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DiskLabelKey   = "csi"
	DiskLabelValue = "e2e-test"
)

Variables

This section is empty.

Functions

func CopyFile added in v0.7.0

func CopyFile(instance *remote.InstanceInfo, src, dest string) error

func ForceChmod

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

func GCEClientAndDriverSetup

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

func GetBlockSizeInGb added in v0.6.0

func GetBlockSizeInGb(instance *remote.InstanceInfo, devicePath string) (int64, error)

func GetFSSizeInGb added in v0.6.0

func GetFSSizeInGb(instance *remote.InstanceInfo, mountPath string) (int64, error)

func MkdirAll added in v0.7.0

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

func ReadBlock added in v1.0.0

func ReadBlock(instance *remote.InstanceInfo, path string, length int) (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 Symlink(instance *remote.InstanceInfo, src, dest string) error

func ValidateLogicalLinkIsDisk added in v0.7.0

func ValidateLogicalLinkIsDisk(instance *remote.InstanceInfo, link, diskName string) (bool, error)

ValidateLogicalLinkIsDisk takes a symlink location at "link" and finds the link location - it then finds the backing PD using scsi_id and validates that it is the same as diskName

func WriteBlock added in v1.0.0

func WriteBlock(instance *remote.InstanceInfo, path, fileContents string) error

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