Versions in this module Expand all Collapse all v0 v0.41.15 Mar 13, 2023 Changes in this version + func AssertStorageBucketExists(t testing.TestingT, name string) + func AssertStorageBucketExistsE(t testing.TestingT, name string) error + func CreateBuild(t testing.TestingT, projectID string, build *cloudbuildpb.Build) *cloudbuildpb.Build + func CreateBuildE(t testing.TestingT, projectID string, build *cloudbuildpb.Build) (*cloudbuildpb.Build, error) + func CreateStorageBucket(t testing.TestingT, projectID string, name string, attr *storage.BucketAttrs) + func CreateStorageBucketE(t testing.TestingT, projectID string, name string, attr *storage.BucketAttrs) error + func DeleteGCRImageRef(t testing.TestingT, ref string) + func DeleteGCRImageRefE(t testing.TestingT, ref string) error + func DeleteGCRRepo(t testing.TestingT, repo string) + func DeleteGCRRepoE(t testing.TestingT, repo string) error + func DeleteSSHKey(t testing.TestingT, user, key string) + func DeleteSSHKeyE(t testing.TestingT, user, key string) error + func DeleteStorageBucket(t testing.TestingT, name string) + func DeleteStorageBucketE(t testing.TestingT, name string) error + func EmptyStorageBucket(t testing.TestingT, name string) + func EmptyStorageBucketE(t testing.TestingT, name string) error + func GetAllGcpRegions(t testing.TestingT, projectID string) []string + func GetAllGcpRegionsE(t testing.TestingT, projectID string) ([]string, error) + func GetAllGcpZones(t testing.TestingT, projectID string) []string + func GetAllGcpZonesE(t testing.TestingT, projectID string) ([]string, error) + func GetBuild(t testing.TestingT, projectID string, buildID string) *cloudbuildpb.Build + func GetBuildE(t testing.TestingT, projectID string, buildID string) (*cloudbuildpb.Build, error) + func GetBuilds(t testing.TestingT, projectID string) []*cloudbuildpb.Build + func GetBuildsE(t testing.TestingT, projectID string) ([]*cloudbuildpb.Build, error) + func GetBuildsForTrigger(t testing.TestingT, projectID string, triggerID string) []*cloudbuildpb.Build + func GetBuildsForTriggerE(t testing.TestingT, projectID string, triggerID string) ([]*cloudbuildpb.Build, error) + func GetGoogleCredentialsFromEnvVar(t testing.TestingT) string + func GetGoogleIdentityEmailEnvVar(t testing.TestingT) string + func GetGoogleProjectIDFromEnvVar(t testing.TestingT) string + func GetGoogleRegionFromEnvVar(t testing.TestingT) string + func GetLoginProfile(t testing.TestingT, user string) *oslogin.LoginProfile + func GetLoginProfileE(t testing.TestingT, user string) (*oslogin.LoginProfile, error) + func GetRandomRegion(t testing.TestingT, projectID string, approvedRegions []string, ...) string + func GetRandomRegionE(t testing.TestingT, projectID string, approvedRegions []string, ...) (string, error) + func GetRandomZone(t testing.TestingT, projectID string, approvedZones []string, ...) string + func GetRandomZoneE(t testing.TestingT, projectID string, approvedZones []string, ...) (string, error) + func GetRandomZoneForRegion(t testing.TestingT, projectID string, region string) string + func GetRandomZoneForRegionE(t testing.TestingT, projectID string, region string) (string, error) + func ImportSSHKey(t testing.TestingT, user, key string) + func ImportSSHKeyE(t testing.TestingT, user, key string) error + func NewCloudBuildService(t testing.TestingT) *cloudbuild.Client + func NewCloudBuildServiceE(t testing.TestingT) (*cloudbuild.Client, error) + func NewComputeService(t testing.TestingT) *compute.Service + func NewComputeServiceE(t testing.TestingT) (*compute.Service, error) + func NewInstancesService(t testing.TestingT) *compute.InstancesService + func NewInstancesServiceE(t testing.TestingT) (*compute.InstancesService, error) + func NewOSLoginServiceE(t testing.TestingT) (*oslogin.Service, error) + func RandomValidGcpName() string + func ReadBucketObject(t testing.TestingT, bucketName string, filePath string) io.Reader + func ReadBucketObjectE(t testing.TestingT, bucketName string, filePath string) (io.Reader, error) + func RegionUrlToRegion(zoneUrl string) string + func WriteBucketObject(t testing.TestingT, bucketName string, filePath string, body io.Reader, ...) string + func WriteBucketObjectE(t testing.TestingT, bucketName string, filePath string, body io.Reader, ...) (string, error) + func ZoneUrlToZone(zoneUrl string) string + type Image struct + func FetchImage(t testing.TestingT, projectID string, name string) *Image + func FetchImageE(t testing.TestingT, projectID string, name string) (*Image, error) + func (i *Image) DeleteImage(t testing.TestingT) + func (i *Image) DeleteImageE(t testing.TestingT) error + type Instance struct + func FetchInstance(t testing.TestingT, projectID string, name string) *Instance + func FetchInstanceE(t testing.TestingT, projectID string, name string) (*Instance, error) + func (i *Instance) AddSshKey(t testing.TestingT, username string, publicKey string) + func (i *Instance) AddSshKeyE(t testing.TestingT, username string, publicKey string) error + func (i *Instance) GetLabels(t testing.TestingT) map[string]string + func (i *Instance) GetMetadata(t testing.TestingT) []*compute.MetadataItems + func (i *Instance) GetPublicIp(t testing.TestingT) string + func (i *Instance) GetPublicIpE(t testing.TestingT) (string, error) + func (i *Instance) GetZone(t testing.TestingT) string + func (i *Instance) SetLabels(t testing.TestingT, labels map[string]string) + func (i *Instance) SetLabelsE(t testing.TestingT, labels map[string]string) error + func (i *Instance) SetMetadata(t testing.TestingT, metadata map[string]string) + func (i *Instance) SetMetadataE(t testing.TestingT, metadata map[string]string) error + type InstanceGroup interface + GetInstanceIds func(t testing.TestingT) []string + GetInstanceIdsE func(t testing.TestingT) ([]string, error) + type RegionalInstanceGroup struct + func FetchRegionalInstanceGroup(t testing.TestingT, projectID string, region string, name string) *RegionalInstanceGroup + func FetchRegionalInstanceGroupE(t testing.TestingT, projectID string, region string, name string) (*RegionalInstanceGroup, error) + func (ig *RegionalInstanceGroup) GetInstanceIds(t testing.TestingT) []string + func (ig *RegionalInstanceGroup) GetInstanceIdsE(t testing.TestingT) ([]string, error) + func (ig *RegionalInstanceGroup) GetInstances(t testing.TestingT, projectId string) []*Instance + func (ig *RegionalInstanceGroup) GetInstancesE(t testing.TestingT, projectId string) ([]*Instance, error) + func (ig *RegionalInstanceGroup) GetPublicIps(t testing.TestingT, projectId string) []string + func (ig *RegionalInstanceGroup) GetPublicIpsE(t testing.TestingT, projectId string) ([]string, error) + func (ig *RegionalInstanceGroup) GetRandomInstance(t testing.TestingT) *Instance + func (ig *RegionalInstanceGroup) GetRandomInstanceE(t testing.TestingT) (*Instance, error) + type ZonalInstanceGroup struct + func FetchZonalInstanceGroup(t testing.TestingT, projectID string, zone string, name string) *ZonalInstanceGroup + func FetchZonalInstanceGroupE(t testing.TestingT, projectID string, zone string, name string) (*ZonalInstanceGroup, error) + func (ig *ZonalInstanceGroup) GetInstanceIds(t testing.TestingT) []string + func (ig *ZonalInstanceGroup) GetInstanceIdsE(t testing.TestingT) ([]string, error) + func (ig *ZonalInstanceGroup) GetInstances(t testing.TestingT, projectId string) []*Instance + func (ig *ZonalInstanceGroup) GetInstancesE(t testing.TestingT, projectId string) ([]*Instance, error) + func (ig *ZonalInstanceGroup) GetPublicIps(t testing.TestingT, projectId string) []string + func (ig *ZonalInstanceGroup) GetPublicIpsE(t testing.TestingT, projectId string) ([]string, error) + func (ig *ZonalInstanceGroup) GetRandomInstance(t testing.TestingT) *Instance + func (ig *ZonalInstanceGroup) GetRandomInstanceE(t testing.TestingT) (*Instance, error)