fakes

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressesClient

type AddressesClient struct {
	ListAddressesCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output []*gcpcompute.Address
			Error  error
		}
	}

	DeleteAddressCall struct {
		CallCount int
		Receives  struct {
			Address string
			Region  string
		}
		Returns struct {
			Error error
		}
	}
}

func (*AddressesClient) DeleteAddress

func (a *AddressesClient) DeleteAddress(region, address string) error

func (*AddressesClient) ListAddresses

func (a *AddressesClient) ListAddresses(region string) ([]*gcpcompute.Address, error)

type BackendServicesClient

type BackendServicesClient struct {
	ListBackendServicesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.BackendService
			Error  error
		}
	}

	DeleteBackendServiceCall struct {
		CallCount int
		Receives  struct {
			BackendService string
		}
		Returns struct {
			Error error
		}
	}
}

func (*BackendServicesClient) DeleteBackendService

func (n *BackendServicesClient) DeleteBackendService(backendService string) error

func (*BackendServicesClient) ListBackendServices

func (n *BackendServicesClient) ListBackendServices() ([]*gcpcompute.BackendService, error)

type DisksClient

type DisksClient struct {
	ListDisksCall struct {
		CallCount int
		Receives  struct {
			Zone string
		}
		Returns struct {
			Output []*gcpcompute.Disk
			Error  error
		}
	}

	DeleteDiskCall struct {
		CallCount int
		Receives  struct {
			Zone string
			Disk string
		}
		Returns struct {
			Error error
		}
	}
}

func (*DisksClient) DeleteDisk

func (n *DisksClient) DeleteDisk(zone, disk string) error

func (*DisksClient) ListDisks

func (n *DisksClient) ListDisks(zone string) ([]*gcpcompute.Disk, error)

type FirewallsClient

type FirewallsClient struct {
	ListFirewallsCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.Firewall
			Error  error
		}
	}

	DeleteFirewallCall struct {
		CallCount int
		Receives  struct {
			Firewall string
		}
		Returns struct {
			Error error
		}
	}
}

func (*FirewallsClient) DeleteFirewall

func (c *FirewallsClient) DeleteFirewall(firewall string) error

func (*FirewallsClient) ListFirewalls

func (c *FirewallsClient) ListFirewalls() ([]*gcpcompute.Firewall, error)

type ForwardingRulesClient

type ForwardingRulesClient struct {
	ListForwardingRulesCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output []*gcpcompute.ForwardingRule
			Error  error
		}
	}

	DeleteForwardingRuleCall struct {
		CallCount int
		Receives  struct {
			Region         string
			ForwardingRule string
		}
		Returns struct {
			Error error
		}
	}
}

func (*ForwardingRulesClient) DeleteForwardingRule

func (n *ForwardingRulesClient) DeleteForwardingRule(region, forwardingRule string) error

func (*ForwardingRulesClient) ListForwardingRules

func (n *ForwardingRulesClient) ListForwardingRules(region string) ([]*gcpcompute.ForwardingRule, error)

type GlobalAddressesClient

type GlobalAddressesClient struct {
	ListGlobalAddressesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.Address
			Error  error
		}
	}

	DeleteGlobalAddressCall struct {
		CallCount int
		Receives  struct {
			Address string
		}
		Returns struct {
			Error error
		}
	}
}

func (*GlobalAddressesClient) DeleteGlobalAddress

func (a *GlobalAddressesClient) DeleteGlobalAddress(address string) error

func (*GlobalAddressesClient) ListGlobalAddresses

func (a *GlobalAddressesClient) ListGlobalAddresses() ([]*gcpcompute.Address, error)

type GlobalForwardingRulesClient

type GlobalForwardingRulesClient struct {
	ListGlobalForwardingRulesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.ForwardingRule
			Error  error
		}
	}

	DeleteGlobalForwardingRuleCall struct {
		CallCount int
		Receives  struct {
			GlobalForwardingRule string
		}
		Returns struct {
			Error error
		}
	}
}

func (*GlobalForwardingRulesClient) DeleteGlobalForwardingRule

func (n *GlobalForwardingRulesClient) DeleteGlobalForwardingRule(globalForwardingRule string) error

func (*GlobalForwardingRulesClient) ListGlobalForwardingRules

func (n *GlobalForwardingRulesClient) ListGlobalForwardingRules() ([]*gcpcompute.ForwardingRule, error)

type GlobalHealthChecksClient

type GlobalHealthChecksClient struct {
	ListGlobalHealthChecksCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.HealthCheck
			Error  error
		}
	}

	DeleteGlobalHealthCheckCall struct {
		CallCount int
		Receives  struct {
			GlobalHealthCheck string
		}
		Returns struct {
			Error error
		}
	}
}

func (*GlobalHealthChecksClient) DeleteGlobalHealthCheck

func (n *GlobalHealthChecksClient) DeleteGlobalHealthCheck(globalHealthCheck string) error

func (*GlobalHealthChecksClient) ListGlobalHealthChecks

func (n *GlobalHealthChecksClient) ListGlobalHealthChecks() ([]*gcpcompute.HealthCheck, error)

type HttpHealthChecksClient

type HttpHealthChecksClient struct {
	ListHttpHealthChecksCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.HttpHealthCheck
			Error  error
		}
	}

	DeleteHttpHealthCheckCall struct {
		CallCount int
		Receives  struct {
			HttpHealthCheck string
		}
		Returns struct {
			Error error
		}
	}
}

func (*HttpHealthChecksClient) DeleteHttpHealthCheck

func (n *HttpHealthChecksClient) DeleteHttpHealthCheck(httpHealthCheck string) error

func (*HttpHealthChecksClient) ListHttpHealthChecks

func (n *HttpHealthChecksClient) ListHttpHealthChecks() ([]*gcpcompute.HttpHealthCheck, error)

type HttpsHealthChecksClient

type HttpsHealthChecksClient struct {
	ListHttpsHealthChecksCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.HttpsHealthCheck
			Error  error
		}
	}

	DeleteHttpsHealthCheckCall struct {
		CallCount int
		Receives  struct {
			HttpsHealthCheck string
		}
		Returns struct {
			Error error
		}
	}
}

func (*HttpsHealthChecksClient) DeleteHttpsHealthCheck

func (n *HttpsHealthChecksClient) DeleteHttpsHealthCheck(httpsHealthCheck string) error

func (*HttpsHealthChecksClient) ListHttpsHealthChecks

func (n *HttpsHealthChecksClient) ListHttpsHealthChecks() ([]*gcpcompute.HttpsHealthCheck, error)

type ImagesClient

type ImagesClient struct {
	ListImagesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.Image
			Error  error
		}
	}

	DeleteImageCall struct {
		CallCount int
		Receives  struct {
			Image string
		}
		Returns struct {
			Error error
		}
	}
}

func (*ImagesClient) DeleteImage

func (n *ImagesClient) DeleteImage(image string) error

func (*ImagesClient) ListImages

func (n *ImagesClient) ListImages() ([]*gcpcompute.Image, error)

type InstanceGroupManagersClient added in v0.19.0

type InstanceGroupManagersClient struct {
	ListInstanceGroupManagersCall struct {
		CallCount int
		Receives  struct {
			Zone string
		}
		Returns struct {
			Output []*gcpcompute.InstanceGroupManager
			Error  error
		}
	}

	DeleteInstanceGroupManagerCall struct {
		CallCount int
		Receives  struct {
			Zone                 string
			InstanceGroupManager string
		}
		Returns struct {
			Error error
		}
	}
}

func (*InstanceGroupManagersClient) DeleteInstanceGroupManager added in v0.19.0

func (n *InstanceGroupManagersClient) DeleteInstanceGroupManager(zone, instanceGroupManager string) error

func (*InstanceGroupManagersClient) ListInstanceGroupManagers added in v0.19.0

func (n *InstanceGroupManagersClient) ListInstanceGroupManagers(zone string) ([]*gcpcompute.InstanceGroupManager, error)

type InstanceGroupsClient

type InstanceGroupsClient struct {
	ListInstanceGroupsCall struct {
		CallCount int
		Receives  struct {
			Zone string
		}
		Returns struct {
			Output []*gcpcompute.InstanceGroup
			Error  error
		}
	}

	DeleteInstanceGroupCall struct {
		CallCount int
		Receives  struct {
			Zone          string
			InstanceGroup string
		}
		Returns struct {
			Error error
		}
	}
}

func (*InstanceGroupsClient) DeleteInstanceGroup

func (n *InstanceGroupsClient) DeleteInstanceGroup(zone, instanceGroup string) error

func (*InstanceGroupsClient) ListInstanceGroups

func (n *InstanceGroupsClient) ListInstanceGroups(zone string) ([]*gcpcompute.InstanceGroup, error)

type InstanceTemplatesClient added in v0.19.0

type InstanceTemplatesClient struct {
	ListInstanceTemplatesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.InstanceTemplate
			Error  error
		}
	}

	DeleteInstanceTemplateCall struct {
		CallCount int
		Receives  struct {
			InstanceTemplate string
		}
		Returns struct {
			Error error
		}
	}
}

func (*InstanceTemplatesClient) DeleteInstanceTemplate added in v0.19.0

func (n *InstanceTemplatesClient) DeleteInstanceTemplate(instanceTemplate string) error

func (*InstanceTemplatesClient) ListInstanceTemplates added in v0.19.0

func (n *InstanceTemplatesClient) ListInstanceTemplates() ([]*gcpcompute.InstanceTemplate, error)

type InstancesClient

type InstancesClient struct {
	ListInstancesCall struct {
		CallCount int
		Receives  struct {
			Zone string
		}
		Returns struct {
			Output []*gcpcompute.Instance
			Error  error
		}
	}

	DeleteInstanceCall struct {
		CallCount int
		Receives  struct {
			Zone     string
			Instance string
		}
		Returns struct {
			Error error
		}
	}
}

func (*InstancesClient) DeleteInstance

func (n *InstancesClient) DeleteInstance(zone, instance string) error

func (*InstancesClient) ListInstances

func (n *InstancesClient) ListInstances(zone string) ([]*gcpcompute.Instance, error)

type Logger

type Logger struct {
	PrintfCall struct {
		Receives struct {
			Message   string
			Arguments []interface{}
		}
		Messages []string
	}

	PromptWithDetailsCall struct {
		CallCount int
		Receives  struct {
			Type string
			Name string
		}
		Returns struct {
			Proceed bool
		}
	}
}

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) PromptWithDetails added in v0.24.0

func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool

type NetworksClient

type NetworksClient struct {
	ListNetworksCall struct {
		CallCount int
		Returns   struct {
			Output []*compute.Network
			Error  error
		}
	}

	DeleteNetworkCall struct {
		CallCount int
		Receives  struct {
			Network string
		}
		Returns struct {
			Error error
		}
	}
}

func (*NetworksClient) DeleteNetwork

func (n *NetworksClient) DeleteNetwork(network string) error

func (*NetworksClient) ListNetworks

func (n *NetworksClient) ListNetworks() ([]*compute.Network, error)

type RoutesClient added in v0.44.0

type RoutesClient struct {
	ListRoutesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.Route
			Error  error
		}
	}

	DeleteRouteCall struct {
		CallCount int
		Receives  struct {
			Route string
		}
		Returns struct {
			Error error
		}
	}
}

func (*RoutesClient) DeleteRoute added in v0.44.0

func (n *RoutesClient) DeleteRoute(route string) error

func (*RoutesClient) ListRoutes added in v0.44.0

func (n *RoutesClient) ListRoutes() ([]*gcpcompute.Route, error)

type SslCertificatesClient added in v0.28.0

type SslCertificatesClient struct {
	ListSslCertificatesCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpcompute.SslCertificate
			Error  error
		}
	}

	DeleteSslCertificateCall struct {
		CallCount int
		Receives  struct {
			SslCertificate string
		}
		Returns struct {
			Error error
		}
	}
}

func (*SslCertificatesClient) DeleteSslCertificate added in v0.28.0

func (n *SslCertificatesClient) DeleteSslCertificate(sslCertificate string) error

func (*SslCertificatesClient) ListSslCertificates added in v0.28.0

func (n *SslCertificatesClient) ListSslCertificates() ([]*gcpcompute.SslCertificate, error)

type SubnetworksClient

type SubnetworksClient struct {
	ListSubnetworksCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output []*compute.Subnetwork
			Error  error
		}
	}

	DeleteSubnetworkCall struct {
		CallCount int
		Receives  struct {
			Region     string
			Subnetwork string
		}
		Returns struct {
			Error error
		}
	}
}

func (*SubnetworksClient) DeleteSubnetwork

func (n *SubnetworksClient) DeleteSubnetwork(region, subnetwork string) error

func (*SubnetworksClient) ListSubnetworks

func (n *SubnetworksClient) ListSubnetworks(region string) ([]*compute.Subnetwork, error)

type TargetHttpProxiesClient

type TargetHttpProxiesClient struct {
	ListTargetHttpProxiesCall struct {
		CallCount int
		Returns   struct {
			Output *gcpcompute.TargetHttpProxyList
			Error  error
		}
	}

	DeleteTargetHttpProxyCall struct {
		CallCount int
		Receives  struct {
			TargetHttpProxy string
		}
		Returns struct {
			Error error
		}
	}
}

func (*TargetHttpProxiesClient) DeleteTargetHttpProxy

func (t *TargetHttpProxiesClient) DeleteTargetHttpProxy(targetHttpProxy string) error

func (*TargetHttpProxiesClient) ListTargetHttpProxies

func (t *TargetHttpProxiesClient) ListTargetHttpProxies() (*gcpcompute.TargetHttpProxyList, error)

type TargetHttpsProxiesClient

type TargetHttpsProxiesClient struct {
	ListTargetHttpsProxiesCall struct {
		CallCount int
		Returns   struct {
			Output *gcpcompute.TargetHttpsProxyList
			Error  error
		}
	}

	DeleteTargetHttpsProxyCall struct {
		CallCount int
		Receives  struct {
			TargetHttpsProxy string
		}
		Returns struct {
			Error error
		}
	}
}

func (*TargetHttpsProxiesClient) DeleteTargetHttpsProxy

func (t *TargetHttpsProxiesClient) DeleteTargetHttpsProxy(targetHttpsProxy string) error

func (*TargetHttpsProxiesClient) ListTargetHttpsProxies

func (t *TargetHttpsProxiesClient) ListTargetHttpsProxies() (*gcpcompute.TargetHttpsProxyList, error)

type TargetPoolsClient

type TargetPoolsClient struct {
	ListTargetPoolsCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output *gcpcompute.TargetPoolList
			Error  error
		}
	}

	DeleteTargetPoolCall struct {
		CallCount int
		Receives  struct {
			Region     string
			TargetPool string
		}
		Returns struct {
			Error error
		}
	}
}

func (*TargetPoolsClient) DeleteTargetPool

func (n *TargetPoolsClient) DeleteTargetPool(region, targetPool string) error

func (*TargetPoolsClient) ListTargetPools

func (n *TargetPoolsClient) ListTargetPools(region string) (*gcpcompute.TargetPoolList, error)

type TargetVpnGatewaysClient added in v0.42.0

type TargetVpnGatewaysClient struct {
	ListTargetVpnGatewaysCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output []*gcpcompute.TargetVpnGateway
			Error  error
		}
	}

	DeleteTargetVpnGatewayCall struct {
		CallCount int
		Receives  struct {
			TargetVpnGateway string
			Region           string
		}
		Returns struct {
			Error error
		}
	}
}

func (*TargetVpnGatewaysClient) DeleteTargetVpnGateway added in v0.42.0

func (u *TargetVpnGatewaysClient) DeleteTargetVpnGateway(region, targetVpnGateway string) error

func (*TargetVpnGatewaysClient) ListTargetVpnGateways added in v0.42.0

func (u *TargetVpnGatewaysClient) ListTargetVpnGateways(region string) ([]*gcpcompute.TargetVpnGateway, error)

type UrlMapsClient

type UrlMapsClient struct {
	ListUrlMapsCall struct {
		CallCount int
		Returns   struct {
			Output *gcpcompute.UrlMapList
			Error  error
		}
	}

	DeleteUrlMapCall struct {
		CallCount int
		Receives  struct {
			UrlMap string
		}
		Returns struct {
			Error error
		}
	}
}

func (*UrlMapsClient) DeleteUrlMap

func (u *UrlMapsClient) DeleteUrlMap(urlMap string) error

func (*UrlMapsClient) ListUrlMaps

func (u *UrlMapsClient) ListUrlMaps() (*gcpcompute.UrlMapList, error)

type VpnTunnelsClient added in v0.42.0

type VpnTunnelsClient struct {
	ListVpnTunnelsCall struct {
		CallCount int
		Receives  struct {
			Region string
		}
		Returns struct {
			Output []*gcpcompute.VpnTunnel
			Error  error
		}
	}

	DeleteVpnTunnelCall struct {
		CallCount int
		Receives  struct {
			VpnTunnel string
			Region    string
		}
		Returns struct {
			Error error
		}
	}
}

func (*VpnTunnelsClient) DeleteVpnTunnel added in v0.42.0

func (u *VpnTunnelsClient) DeleteVpnTunnel(region, vpnTunnel string) error

func (*VpnTunnelsClient) ListVpnTunnels added in v0.42.0

func (u *VpnTunnelsClient) ListVpnTunnels(region string) ([]*gcpcompute.VpnTunnel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL