Documentation
¶
Index ¶
- func AlertPolicyClean(project, prefix string, dryRun bool) error
- func AlertsPoliciesCheck(prefix, project string) error
- func CleanResources(project, prefix string, dryRun bool) error
- func ClearTFBucket(project, name string) error
- func DeleteManagementInstances(ctx context.Context, client *compute.Service, project string, ...) error
- func DeleteTFBucket(project, name string) error
- func EnsureTFBucket(project, name string) (bool, error)
- func FirewallCheck(prefix, project string, exposePrometheus, exposeSSH bool) error
- func HealthCheckClean(project, prefix string, dryRun bool) error
- func HealthStatusCheck(prefix, project string) error
- func InstanceGroupsClean(project, prefix string, dryRun bool) error
- func InstanceTemplatesClean(project, prefix string, dryRun bool) error
- func NetworkClean(project, prefix string, dryRun bool) error
- func NotificationChannelsClean(project, prefix string, dryRun bool) error
- func SAClean(project, prefix string, dryRun bool) error
- func SMCheck(t *testing.T, prefix, project string) bool
- func SMClean(project, prefix string, dryRun bool) error
- func VolumesCheck(prefix, project string) error
- func WaitForInstancesCount(ctx context.Context, client *compute.Service, project, prefix string, ...) error
- type InstanceGroupManager
- type InstanceGroupManagerList
- func GetInstanceGroupManagers(ctx context.Context, client *compute.Service, project, prefix string) (InstanceGroupManagerList, error)
- func GetInstanceGroupManagersForRegions(ctx context.Context, client *compute.Service, project, prefix string, ...) (InstanceGroupManagerList, error)
- func GetInstanceGroupManagersForRegionsInnerClient(project, prefix string, regions ...string) (InstanceGroupManagerList, error)
- type InstanceMetricPoints
- type Validator
- func GetValidatorWithClient(ctx context.Context, client *monitoring.MetricClient, ...) (Validator, error)
- func WaitForValidator(project, prefix string, checkValue int, timeout int, instanceNames ...string) (Validator, error)
- func WaitForValidatorWithClient(ctx context.Context, client *monitoring.MetricClient, project, prefix string, ...) (Validator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertPolicyClean ¶
AlertPolicyClean cleans test notification alerts
func AlertsPoliciesCheck ¶
AlertsPoliciesCheck checks created alert policies
func CleanResources ¶
CleanResources cleans gcp resources
func ClearTFBucket ¶
ClearTFBucket deletes all objects from bucket
func DeleteManagementInstances ¶
func DeleteManagementInstances(ctx context.Context, client *compute.Service, project string, groups InstanceGroupManagerList) error
func DeleteTFBucket ¶
DeleteTFBucket deletes a bucket
func EnsureTFBucket ¶
EnsureTFBucket ensure TF bucket exists
func FirewallCheck ¶
FirewallCheck checks created firewalls
func HealthCheckClean ¶
HealthCheckClean cleans all SM keys with prefix
func HealthStatusCheck ¶
HealthStatusCheck checks instances health status
func InstanceGroupsClean ¶
InstanceGroupsClean cleans instance groups
func InstanceTemplatesClean ¶
InstanceTemplatesClean cleans instance templates
func NetworkClean ¶
NetworkClean cleans all compute networks with prefix
func NotificationChannelsClean ¶
NotificationChannelsClean cleans test notification channels
func VolumesCheck ¶
VolumesCheck checl that we do not have unattached volumes
Types ¶
type InstanceGroupManager ¶
func (InstanceGroupManager) InstanceNames ¶
func (g InstanceGroupManager) InstanceNames() []string
func (*InstanceGroupManager) SearchAndRemoveInstanceByName ¶
func (g *InstanceGroupManager) SearchAndRemoveInstanceByName(name string) *compute.ManagedInstance
type InstanceGroupManagerList ¶
type InstanceGroupManagerList []InstanceGroupManager
func GetInstanceGroupManagers ¶
func GetInstanceGroupManagers(ctx context.Context, client *compute.Service, project, prefix string) (InstanceGroupManagerList, error)
GetManagementInstances ...
func GetInstanceGroupManagersForRegions ¶
func GetInstanceGroupManagersForRegions(ctx context.Context, client *compute.Service, project, prefix string, regions ...string) (InstanceGroupManagerList, error)
GetInstanceGroupManagersForRegions ...
func GetInstanceGroupManagersForRegionsInnerClient ¶
func GetInstanceGroupManagersForRegionsInnerClient(project, prefix string, regions ...string) (InstanceGroupManagerList, error)
func (InstanceGroupManagerList) InstanceNames ¶
func (l InstanceGroupManagerList) InstanceNames() []string
func (InstanceGroupManagerList) InstancesCount ¶
func (l InstanceGroupManagerList) InstancesCount() int
type InstanceMetricPoints ¶
type InstanceMetricPoints map[instance][]*monitoringpb.Point
func GetValidatorMetrics ¶
func GetValidatorMetrics( ctx context.Context, client *monitoring.MetricClient, project, prefix, metricNamespace, metricName string, instanceNames ...string, ) (InstanceMetricPoints, error)
type Validator ¶
func GetValidatorWithClient ¶
func GetValidatorWithClient( ctx context.Context, client *monitoring.MetricClient, project, prefix, metricNamespace, metricName string, checkValue int, instanceNames ...string, ) (Validator, error)
func WaitForValidator ¶
func WaitForValidator( project, prefix string, checkValue int, timeout int, instanceNames ...string, ) (Validator, error)
WaitForValidator waits while validator metrics is being appeared
func WaitForValidatorWithClient ¶
func WaitForValidatorWithClient( ctx context.Context, client *monitoring.MetricClient, project, prefix string, checkValue int, timeout int, instanceNames ...string, ) (Validator, error)
WaitForValidatorWithClient waits while validator metrics is being appeared