Documentation ¶
Index ¶
- Constants
- func CopyFile(instance *remote.InstanceInfo, src, dest string) error
- func ForceChmod(instance *remote.InstanceInfo, filePath string, perms string) error
- func GCEClientAndDriverSetup(instance *remote.InstanceInfo) (*remote.TestContext, error)
- func GetBlockSizeInGb(instance *remote.InstanceInfo, devicePath string) (int64, error)
- func GetFSSizeInGb(instance *remote.InstanceInfo, mountPath string) (int64, error)
- func MkdirAll(instance *remote.InstanceInfo, dir string) error
- func ReadBlock(instance *remote.InstanceInfo, path string, length int) (string, error)
- func ReadFile(instance *remote.InstanceInfo, filePath string) (string, error)
- func RmAll(instance *remote.InstanceInfo, filePath string) error
- func SetupProwConfig(resourceType string) (project, serviceAccount string)
- func Symlink(instance *remote.InstanceInfo, src, dest string) error
- func ValidateLogicalLinkIsDisk(instance *remote.InstanceInfo, link, diskName string) (bool, error)
- func WriteBlock(instance *remote.InstanceInfo, path, fileContents string) error
- func WriteFile(instance *remote.InstanceInfo, filePath, fileContents string) error
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 SetupProwConfig ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.