package
1.12.0-alpha.0
Repository: https://github.com/fabianvf/kubernetes.git
Documentation: pkg.go.dev

# Functions

AddInstanceHook mocks adding a Instance to MockTargetPools.
AddInstancesHook mocks adding instances from an InstanceGroup.
DeleteAddressesInternalErrHook mocks deleting address and returns an internal server error.
DeleteAddressesNotFoundErrHook mocks deleting network address and returns a not found error.
DeleteFirewallsUnauthorizedErrHook mocks firewall deletion.
DeleteForwardingRuleErrHook mocks deleting forwarding rule and returns an internal server error.
DeleteHealthChecksInternalErrHook mocks deleting health check and returns an internal server error.
DeleteHealthChecksInuseErrHook mocks deleting health check and returns an in use error.
DeleteInstanceGroupInternalErrHook mocks deleting instance group and returns an internal server error.
DeleteRegionBackendServicesErrHook mocks deleting region backend service and returns an internal server error.
DeleteRegionBackendServicesInUseErrHook mocks deleting region backend service and returns an InUseError.
GetAddressesInternalErrHook mocks getting network address and returns an internal server error.
GetFirewallsUnauthorizedErrHook mocks firewall information retrival.
GetForwardingRulesInternalErrHook mocks getting forwarding rules and returns an internal server error.
GetHealthChecksInternalErrHook mocks getting health check and returns an internal server erorr.
GetHTTPHealthChecksInternalErrHook mocks getting http health check and returns an internal server error.
GetInstanceGroupInternalErrHook mocks getting instance group and returns an internal server error.
GetRegionBackendServicesErrHook mocks getting region backend service and returns an internal server error.
GetTargetPoolInternalErrHook mocks getting target pool.
InsertAddressHook mocks inserting an Address.
InsertAlphaAddressHook mocks inserting an Address.
InsertAlphaFwdRuleHook mocks inserting an AlphaForwardingRule.
InsertBetaAddressHook mocks inserting a BetaAddress.
InsertBetaFwdRuleHook mocks inserting a BetaForwardingRule.
InsertFirewallsUnauthorizedErrHook mocks firewall insertion.
InsertForwardingRulesInternalErrHook mocks getting forwarding rule and returns an internal server error.
InsertFwdRuleHook mocks inserting a ForwardingRule.
InsertTargetPoolsInternalErrHook mocks getting target pool and returns an internal server error.
ListInstancesHook mocks listing instances from an InstanceGroup.
ListZonesInternalErrHook mocks listing zone and returns an internal server error.
RemoveInstanceHook mocks removing a Instance from MockTargetPools.
RemoveInstancesHook mocks removing instances from an InstanceGroup.
UpdateFirewallHook defines the hook for updating a Firewall.
UpdateFirewallsUnauthorizedErrHook mocks firewall updating.
UpdateHealthCheckHook defines the hook for updating a HealthCheck.
UpdateRegionBackendServiceHook defines the hook for updating a Region BackendsService.
UpdateRegionBackendServicesErrHook mocks updating a reegion backend service and returns an internal server error.

# Variables

InternalServerError is shared variable with error code StatusInternalServerError for error verification.
InUseError is a shared variable with error code StatusBadRequest for error verification.

# Structs

AddressAttributes maps from Address key to a map of Instances.
InstanceGroupAttributes maps from InstanceGroup key to a map of Instances.