Documentation ¶
Overview ¶
Package cloud implements a more golang friendly interface to the GCE compute API. The code in this package is generated automatically via the generator implemented in "gen/main.go". The code generator creates the basic CRUD actions for the given resource: "Insert", "Get", "List" and "Delete". Additional methods by customizing the ServiceInfo object (see below). Generated code includes a full mock of the GCE compute API.
Usage ¶
The root of the GCE compute API is the interface "Cloud". Code written using Cloud can be used against the actual implementation "GCE" or "MockGCE".
func foo(cloud Cloud) { igs, err := cloud.InstanceGroups().List(ctx, "us-central1-b", filter.None) ... } // Run foo against the actual cloud. foo(NewGCE(&Service{...})) // Run foo with a mock. foo(NewMockGCE())
Rate limiting and routing ¶
The generated code allows for custom policies for operation rate limiting and GCE project routing. See RateLimiter and ProjectRouter for more details.
Mocks ¶
Mocks are automatically generated for each type implementing basic logic for resource manipulation. This eliminates the boilerplate required to mock GCE functionality. Each method will also have a corresponding "xxxHook" function generated in the mock structure where unit test code can hook the execution of the method.
Mocks for different versions of the same service will share the same set of objects, i.e. an alpha object will be visible with beta and GA methods. Note that translation is done with JSON serialization between the API versions.
Changing service code generation ¶
The list of services to generate is contained in "meta/meta.go". To add a service, add an entry to the list "meta.AllServices". An example entry:
&ServiceInfo{ Object: "InstanceGroup", // Name of the object type. Service: "InstanceGroups", // Name of the service. Resource: "instanceGroups", // Lowercase resource name (as appears in the URL). version: meta.VersionAlpha, // API version (one entry per version is needed). keyType: Zonal, // What kind of resource this is. serviceType: reflect.TypeOf(&alpha.InstanceGroupsService{}), // Associated golang type. additionalMethods: []string{ // Additional methods to generate code for. "SetNamedPorts", }, options: <options> // Or'd ("|") together. }
Read-only objects ¶
Services such as Regions and Zones do not allow for mutations. Specify "ReadOnly" in ServiceInfo.options to omit the mutation methods.
Adding custom methods ¶
Some methods that may not be properly handled by the generated code. To enable addition of custom code to the generated mocks, set the "CustomOps" option in "meta.ServiceInfo" entry. This will make the generated service interface embed a "<ServiceName>Ops" interface. This interface MUST be written by hand and contain the custom method logic. Corresponding methods must be added to the corresponding Mockxxx and GCExxx struct types.
// In "meta/meta.go": &ServiceInfo{ Object: "InstanceGroup", ... options: CustomOps, } // In the generated code "gen.go": type InstanceGroups interface { InstanceGroupsOps // Added by CustomOps option. ... } // In hand written file: type InstanceGroupsOps interface { MyMethod() } func (mock *MockInstanceGroups) MyMethod() { // Custom mock implementation. } func (gce *GCEInstanceGroups) MyMethod() { // Custom implementation. }
Update generated codes ¶
Run hack/update-cloudprovider-gce.sh to update the generated codes.
Index ¶
- Constants
- func ContextWithCallTimeout() (context.Context, context.CancelFunc)
- func RelativeResourceName(project, resource string, key *meta.Key) string
- func ResourcePath(resource string, key *meta.Key) string
- func SelfLink(ver meta.Version, project, resource string, key *meta.Key) string
- type AcceptRateLimiter
- type Addresses
- type AlphaAddresses
- type AlphaBackendServices
- type AlphaForwardingRules
- type AlphaGlobalAddresses
- type AlphaGlobalForwardingRules
- type AlphaHealthChecks
- type AlphaInstances
- type AlphaNetworkEndpointGroups
- type AlphaNetworks
- type AlphaRegionBackendServices
- type AlphaRegionHealthChecks
- type AlphaRegionSslCertificates
- type AlphaRegionTargetHttpProxies
- type AlphaRegionTargetHttpsProxies
- type AlphaRegionUrlMaps
- type AlphaSslCertificates
- type AlphaSubnetworks
- type AlphaTargetHttpProxies
- type AlphaTargetHttpsProxies
- type AlphaUrlMaps
- type BackendServices
- type BetaAddresses
- type BetaBackendServices
- type BetaForwardingRules
- type BetaGlobalForwardingRules
- type BetaHealthChecks
- type BetaInstances
- type BetaNetworkEndpointGroups
- type BetaNetworks
- type BetaRegionBackendServices
- type BetaRegionHealthChecks
- type BetaRegionSslCertificates
- type BetaRegionTargetHttpProxies
- type BetaRegionTargetHttpsProxies
- type BetaRegionUrlMaps
- type BetaSecurityPolicies
- type BetaSslCertificates
- type BetaSubnetworks
- type BetaTargetHttpProxies
- type BetaTargetHttpsProxies
- type BetaUrlMaps
- type Cloud
- type Disks
- type Firewalls
- type ForwardingRules
- type GCE
- func (gce *GCE) Addresses() Addresses
- func (gce *GCE) AlphaAddresses() AlphaAddresses
- func (gce *GCE) AlphaBackendServices() AlphaBackendServices
- func (gce *GCE) AlphaForwardingRules() AlphaForwardingRules
- func (gce *GCE) AlphaGlobalAddresses() AlphaGlobalAddresses
- func (gce *GCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
- func (gce *GCE) AlphaHealthChecks() AlphaHealthChecks
- func (gce *GCE) AlphaInstances() AlphaInstances
- func (gce *GCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
- func (gce *GCE) AlphaNetworks() AlphaNetworks
- func (gce *GCE) AlphaRegionBackendServices() AlphaRegionBackendServices
- func (gce *GCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
- func (gce *GCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
- func (gce *GCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
- func (gce *GCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
- func (gce *GCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
- func (gce *GCE) AlphaSslCertificates() AlphaSslCertificates
- func (gce *GCE) AlphaSubnetworks() AlphaSubnetworks
- func (gce *GCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
- func (gce *GCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
- func (gce *GCE) AlphaUrlMaps() AlphaUrlMaps
- func (gce *GCE) BackendServices() BackendServices
- func (gce *GCE) BetaAddresses() BetaAddresses
- func (gce *GCE) BetaBackendServices() BetaBackendServices
- func (gce *GCE) BetaForwardingRules() BetaForwardingRules
- func (gce *GCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
- func (gce *GCE) BetaHealthChecks() BetaHealthChecks
- func (gce *GCE) BetaInstances() BetaInstances
- func (gce *GCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
- func (gce *GCE) BetaNetworks() BetaNetworks
- func (gce *GCE) BetaRegionBackendServices() BetaRegionBackendServices
- func (gce *GCE) BetaRegionHealthChecks() BetaRegionHealthChecks
- func (gce *GCE) BetaRegionSslCertificates() BetaRegionSslCertificates
- func (gce *GCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
- func (gce *GCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
- func (gce *GCE) BetaRegionUrlMaps() BetaRegionUrlMaps
- func (gce *GCE) BetaSecurityPolicies() BetaSecurityPolicies
- func (gce *GCE) BetaSslCertificates() BetaSslCertificates
- func (gce *GCE) BetaSubnetworks() BetaSubnetworks
- func (gce *GCE) BetaTargetHttpProxies() BetaTargetHttpProxies
- func (gce *GCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
- func (gce *GCE) BetaUrlMaps() BetaUrlMaps
- func (gce *GCE) Disks() Disks
- func (gce *GCE) Firewalls() Firewalls
- func (gce *GCE) ForwardingRules() ForwardingRules
- func (gce *GCE) GlobalAddresses() GlobalAddresses
- func (gce *GCE) GlobalForwardingRules() GlobalForwardingRules
- func (gce *GCE) HealthChecks() HealthChecks
- func (gce *GCE) HttpHealthChecks() HttpHealthChecks
- func (gce *GCE) HttpsHealthChecks() HttpsHealthChecks
- func (gce *GCE) InstanceGroups() InstanceGroups
- func (gce *GCE) Instances() Instances
- func (gce *GCE) NetworkEndpointGroups() NetworkEndpointGroups
- func (gce *GCE) Networks() Networks
- func (gce *GCE) Projects() Projects
- func (gce *GCE) RegionBackendServices() RegionBackendServices
- func (gce *GCE) RegionDisks() RegionDisks
- func (gce *GCE) Regions() Regions
- func (gce *GCE) Routes() Routes
- func (gce *GCE) SslCertificates() SslCertificates
- func (gce *GCE) Subnetworks() Subnetworks
- func (gce *GCE) TargetHttpProxies() TargetHttpProxies
- func (gce *GCE) TargetHttpsProxies() TargetHttpsProxies
- func (gce *GCE) TargetPools() TargetPools
- func (gce *GCE) UrlMaps() UrlMaps
- func (gce *GCE) Zones() Zones
- type GCEAddresses
- func (g *GCEAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.Address, error)
- func (g *GCEAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAddresses) Get(ctx context.Context, key *meta.Key) (*ga.Address, error)
- func (g *GCEAddresses) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error
- func (g *GCEAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Address, error)
- type GCEAlphaAddresses
- func (g *GCEAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.Address, error)
- func (g *GCEAlphaAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaAddresses) Get(ctx context.Context, key *meta.Key) (*alpha.Address, error)
- func (g *GCEAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error
- func (g *GCEAlphaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Address, error)
- type GCEAlphaBackendServices
- func (g *GCEAlphaBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
- func (g *GCEAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
- func (g *GCEAlphaBackendServices) List(ctx context.Context, fl *filter.F) ([]*alpha.BackendService, error)
- func (g *GCEAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *alpha.SecurityPolicyReference) error
- func (g *GCEAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
- type GCEAlphaForwardingRules
- func (g *GCEAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
- func (g *GCEAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
- func (g *GCEAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.ForwardingRule, error)
- func (g *GCEAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
- type GCEAlphaGlobalAddresses
- func (g *GCEAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key) (*alpha.Address, error)
- func (g *GCEAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error
- func (g *GCEAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F) ([]*alpha.Address, error)
- type GCEAlphaGlobalForwardingRules
- func (g *GCEAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
- func (g *GCEAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
- func (g *GCEAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*alpha.ForwardingRule, error)
- func (g *GCEAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
- type GCEAlphaHealthChecks
- func (g *GCEAlphaHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
- func (g *GCEAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
- func (g *GCEAlphaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*alpha.HealthCheck, error)
- func (g *GCEAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
- type GCEAlphaInstances
- func (g *GCEAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *alpha.AttachedDisk) error
- func (g *GCEAlphaInstances) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (g *GCEAlphaInstances) Get(ctx context.Context, key *meta.Key) (*alpha.Instance, error)
- func (g *GCEAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *alpha.Instance) error
- func (g *GCEAlphaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.Instance, error)
- func (g *GCEAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *alpha.NetworkInterface) error
- type GCEAlphaNetworkEndpointGroups
- func (g *GCEAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*alpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup) error
- func (g *GCEAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*alpha.NetworkEndpointWithHealthStatus, error)
- type GCEAlphaNetworks
- func (g *GCEAlphaNetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaNetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Network, error)
- func (g *GCEAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Network) error
- func (g *GCEAlphaNetworks) List(ctx context.Context, fl *filter.F) ([]*alpha.Network, error)
- type GCEAlphaRegionBackendServices
- func (g *GCEAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
- func (g *GCEAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *alpha.ResourceGroupReference) (*alpha.BackendServiceGroupHealth, error)
- func (g *GCEAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
- func (g *GCEAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.BackendService, error)
- func (g *GCEAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
- type GCEAlphaRegionHealthChecks
- func (g *GCEAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
- func (g *GCEAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
- func (g *GCEAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.HealthCheck, error)
- func (g *GCEAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
- type GCEAlphaRegionSslCertificates
- func (g *GCEAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
- func (g *GCEAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
- func (g *GCEAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.SslCertificate, error)
- type GCEAlphaRegionTargetHttpProxies
- func (g *GCEAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
- func (g *GCEAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
- func (g *GCEAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
- func (g *GCEAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type GCEAlphaRegionTargetHttpsProxies
- func (g *GCEAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
- func (g *GCEAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
- func (g *GCEAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
- func (g *GCEAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type GCEAlphaRegionUrlMaps
- func (g *GCEAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error)
- func (g *GCEAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error
- func (g *GCEAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.UrlMap, error)
- func (g *GCEAlphaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error
- type GCEAlphaSslCertificates
- func (g *GCEAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
- func (g *GCEAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
- func (g *GCEAlphaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*alpha.SslCertificate, error)
- type GCEAlphaSubnetworks
- func (g *GCEAlphaSubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaSubnetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Subnetwork, error)
- func (g *GCEAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork) error
- func (g *GCEAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Subnetwork, error)
- type GCEAlphaTargetHttpProxies
- func (g *GCEAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
- func (g *GCEAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
- func (g *GCEAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
- func (g *GCEAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type GCEAlphaTargetHttpsProxies
- func (g *GCEAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
- func (g *GCEAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
- func (g *GCEAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
- func (g *GCEAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type GCEAlphaUrlMaps
- func (g *GCEAlphaUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEAlphaUrlMaps) Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error)
- func (g *GCEAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error
- func (g *GCEAlphaUrlMaps) List(ctx context.Context, fl *filter.F) ([]*alpha.UrlMap, error)
- func (g *GCEAlphaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error
- type GCEBackendServices
- func (g *GCEBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
- func (g *GCEBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
- func (g *GCEBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
- func (g *GCEBackendServices) List(ctx context.Context, fl *filter.F) ([]*ga.BackendService, error)
- func (g *GCEBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- func (g *GCEBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- type GCEBetaAddresses
- func (g *GCEBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.Address, error)
- func (g *GCEBetaAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaAddresses) Get(ctx context.Context, key *meta.Key) (*beta.Address, error)
- func (g *GCEBetaAddresses) Insert(ctx context.Context, key *meta.Key, obj *beta.Address) error
- func (g *GCEBetaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Address, error)
- type GCEBetaBackendServices
- func (g *GCEBetaBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
- func (g *GCEBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
- func (g *GCEBetaBackendServices) List(ctx context.Context, fl *filter.F) ([]*beta.BackendService, error)
- func (g *GCEBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyReference) error
- func (g *GCEBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
- type GCEBetaForwardingRules
- func (g *GCEBetaForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
- func (g *GCEBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
- func (g *GCEBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*beta.ForwardingRule, error)
- func (g *GCEBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
- type GCEBetaGlobalForwardingRules
- func (g *GCEBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
- func (g *GCEBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
- func (g *GCEBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*beta.ForwardingRule, error)
- func (g *GCEBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
- type GCEBetaHealthChecks
- func (g *GCEBetaHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
- func (g *GCEBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
- func (g *GCEBetaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*beta.HealthCheck, error)
- func (g *GCEBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
- type GCEBetaInstances
- func (g *GCEBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *beta.AttachedDisk) error
- func (g *GCEBetaInstances) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (g *GCEBetaInstances) Get(ctx context.Context, key *meta.Key) (*beta.Instance, error)
- func (g *GCEBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *beta.Instance) error
- func (g *GCEBetaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.Instance, error)
- func (g *GCEBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *beta.NetworkInterface) error
- type GCEBetaNetworkEndpointGroups
- func (g *GCEBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*beta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup) error
- func (g *GCEBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*beta.NetworkEndpointWithHealthStatus, error)
- type GCEBetaNetworks
- func (g *GCEBetaNetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaNetworks) Get(ctx context.Context, key *meta.Key) (*beta.Network, error)
- func (g *GCEBetaNetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Network) error
- func (g *GCEBetaNetworks) List(ctx context.Context, fl *filter.F) ([]*beta.Network, error)
- type GCEBetaRegionBackendServices
- func (g *GCEBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
- func (g *GCEBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *beta.ResourceGroupReference) (*beta.BackendServiceGroupHealth, error)
- func (g *GCEBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
- func (g *GCEBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*beta.BackendService, error)
- func (g *GCEBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
- type GCEBetaRegionHealthChecks
- func (g *GCEBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
- func (g *GCEBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
- func (g *GCEBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.HealthCheck, error)
- func (g *GCEBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
- type GCEBetaRegionSslCertificates
- func (g *GCEBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
- func (g *GCEBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
- func (g *GCEBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*beta.SslCertificate, error)
- type GCEBetaRegionTargetHttpProxies
- func (g *GCEBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
- func (g *GCEBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
- func (g *GCEBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpProxy, error)
- func (g *GCEBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type GCEBetaRegionTargetHttpsProxies
- func (g *GCEBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
- func (g *GCEBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
- func (g *GCEBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
- func (g *GCEBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type GCEBetaRegionUrlMaps
- func (g *GCEBetaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error)
- func (g *GCEBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error
- func (g *GCEBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*beta.UrlMap, error)
- func (g *GCEBetaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *beta.UrlMap) error
- type GCEBetaSecurityPolicies
- func (g *GCEBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
- func (g *GCEBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key) (*beta.SecurityPolicy, error)
- func (g *GCEBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key) (*beta.SecurityPolicyRule, error)
- func (g *GCEBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy) error
- func (g *GCEBetaSecurityPolicies) List(ctx context.Context, fl *filter.F) ([]*beta.SecurityPolicy, error)
- func (g *GCEBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicy) error
- func (g *GCEBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
- func (g *GCEBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key) error
- type GCEBetaSslCertificates
- func (g *GCEBetaSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
- func (g *GCEBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
- func (g *GCEBetaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*beta.SslCertificate, error)
- type GCEBetaSubnetworks
- func (g *GCEBetaSubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaSubnetworks) Get(ctx context.Context, key *meta.Key) (*beta.Subnetwork, error)
- func (g *GCEBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Subnetwork) error
- func (g *GCEBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Subnetwork, error)
- type GCEBetaTargetHttpProxies
- func (g *GCEBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
- func (g *GCEBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
- func (g *GCEBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpProxy, error)
- func (g *GCEBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type GCEBetaTargetHttpsProxies
- func (g *GCEBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
- func (g *GCEBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
- func (g *GCEBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
- func (g *GCEBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type GCEBetaUrlMaps
- func (g *GCEBetaUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEBetaUrlMaps) Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error)
- func (g *GCEBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error
- func (g *GCEBetaUrlMaps) List(ctx context.Context, fl *filter.F) ([]*beta.UrlMap, error)
- func (g *GCEBetaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *beta.UrlMap) error
- type GCEDisks
- func (g *GCEDisks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEDisks) Get(ctx context.Context, key *meta.Key) (*ga.Disk, error)
- func (g *GCEDisks) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error
- func (g *GCEDisks) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Disk, error)
- func (g *GCEDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.DisksResizeRequest) error
- type GCEFirewalls
- func (g *GCEFirewalls) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEFirewalls) Get(ctx context.Context, key *meta.Key) (*ga.Firewall, error)
- func (g *GCEFirewalls) Insert(ctx context.Context, key *meta.Key, obj *ga.Firewall) error
- func (g *GCEFirewalls) List(ctx context.Context, fl *filter.F) ([]*ga.Firewall, error)
- func (g *GCEFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *ga.Firewall) error
- type GCEForwardingRules
- func (g *GCEForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
- func (g *GCEForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
- func (g *GCEForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*ga.ForwardingRule, error)
- func (g *GCEForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
- type GCEGlobalAddresses
- func (g *GCEGlobalAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEGlobalAddresses) Get(ctx context.Context, key *meta.Key) (*ga.Address, error)
- func (g *GCEGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error
- func (g *GCEGlobalAddresses) List(ctx context.Context, fl *filter.F) ([]*ga.Address, error)
- type GCEGlobalForwardingRules
- func (g *GCEGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
- func (g *GCEGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
- func (g *GCEGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*ga.ForwardingRule, error)
- func (g *GCEGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
- type GCEHealthChecks
- func (g *GCEHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HealthCheck, error)
- func (g *GCEHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HealthCheck) error
- func (g *GCEHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HealthCheck, error)
- func (g *GCEHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HealthCheck) error
- type GCEHttpHealthChecks
- func (g *GCEHttpHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEHttpHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpHealthCheck, error)
- func (g *GCEHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck) error
- func (g *GCEHttpHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpHealthCheck, error)
- func (g *GCEHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpHealthCheck) error
- type GCEHttpsHealthChecks
- func (g *GCEHttpsHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEHttpsHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpsHealthCheck, error)
- func (g *GCEHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck) error
- func (g *GCEHttpsHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpsHealthCheck, error)
- func (g *GCEHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpsHealthCheck) error
- type GCEInstanceGroups
- func (g *GCEInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsAddInstancesRequest) error
- func (g *GCEInstanceGroups) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEInstanceGroups) Get(ctx context.Context, key *meta.Key) (*ga.InstanceGroup, error)
- func (g *GCEInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup) error
- func (g *GCEInstanceGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.InstanceGroup, error)
- func (g *GCEInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, ...) ([]*ga.InstanceWithNamedPorts, error)
- func (g *GCEInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, ...) error
- type GCEInstances
- func (g *GCEInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *ga.AttachedDisk) error
- func (g *GCEInstances) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (g *GCEInstances) Get(ctx context.Context, key *meta.Key) (*ga.Instance, error)
- func (g *GCEInstances) Insert(ctx context.Context, key *meta.Key, obj *ga.Instance) error
- func (g *GCEInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Instance, error)
- type GCENetworkEndpointGroups
- func (g *GCENetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCENetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCENetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCENetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*ga.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup) error
- func (g *GCENetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*ga.NetworkEndpointWithHealthStatus, error)
- type GCENetworks
- func (g *GCENetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCENetworks) Get(ctx context.Context, key *meta.Key) (*ga.Network, error)
- func (g *GCENetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Network) error
- func (g *GCENetworks) List(ctx context.Context, fl *filter.F) ([]*ga.Network, error)
- type GCEProjects
- type GCERegionBackendServices
- func (g *GCERegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCERegionBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
- func (g *GCERegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
- func (g *GCERegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
- func (g *GCERegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*ga.BackendService, error)
- func (g *GCERegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- type GCERegionDisks
- func (g *GCERegionDisks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCERegionDisks) Get(ctx context.Context, key *meta.Key) (*ga.Disk, error)
- func (g *GCERegionDisks) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error
- func (g *GCERegionDisks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Disk, error)
- func (g *GCERegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.RegionDisksResizeRequest) error
- type GCERegions
- type GCERoutes
- func (g *GCERoutes) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCERoutes) Get(ctx context.Context, key *meta.Key) (*ga.Route, error)
- func (g *GCERoutes) Insert(ctx context.Context, key *meta.Key, obj *ga.Route) error
- func (g *GCERoutes) List(ctx context.Context, fl *filter.F) ([]*ga.Route, error)
- type GCESslCertificates
- func (g *GCESslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCESslCertificates) Get(ctx context.Context, key *meta.Key) (*ga.SslCertificate, error)
- func (g *GCESslCertificates) Insert(ctx context.Context, key *meta.Key, obj *ga.SslCertificate) error
- func (g *GCESslCertificates) List(ctx context.Context, fl *filter.F) ([]*ga.SslCertificate, error)
- type GCESubnetworks
- func (g *GCESubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCESubnetworks) Get(ctx context.Context, key *meta.Key) (*ga.Subnetwork, error)
- func (g *GCESubnetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Subnetwork) error
- func (g *GCESubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Subnetwork, error)
- type GCETargetHttpProxies
- func (g *GCETargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCETargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpProxy, error)
- func (g *GCETargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy) error
- func (g *GCETargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpProxy, error)
- func (g *GCETargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
- type GCETargetHttpsProxies
- func (g *GCETargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCETargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpsProxy, error)
- func (g *GCETargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy) error
- func (g *GCETargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpsProxy, error)
- func (g *GCETargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCETargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
- type GCETargetPools
- func (g *GCETargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsAddInstanceRequest) error
- func (g *GCETargetPools) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCETargetPools) Get(ctx context.Context, key *meta.Key) (*ga.TargetPool, error)
- func (g *GCETargetPools) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetPool) error
- func (g *GCETargetPools) List(ctx context.Context, region string, fl *filter.F) ([]*ga.TargetPool, error)
- func (g *GCETargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsRemoveInstanceRequest) error
- type GCEUrlMaps
- func (g *GCEUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (g *GCEUrlMaps) Get(ctx context.Context, key *meta.Key) (*ga.UrlMap, error)
- func (g *GCEUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *ga.UrlMap) error
- func (g *GCEUrlMaps) List(ctx context.Context, fl *filter.F) ([]*ga.UrlMap, error)
- func (g *GCEUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *ga.UrlMap) error
- type GCEZones
- type GlobalAddresses
- type GlobalForwardingRules
- type HealthChecks
- type HttpHealthChecks
- type HttpsHealthChecks
- type InstanceGroups
- type Instances
- type LbScheme
- type MinimumRateLimiter
- type MockAddresses
- func (m *MockAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.Address, error)
- func (m *MockAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAddresses) Get(ctx context.Context, key *meta.Key) (*ga.Address, error)
- func (m *MockAddresses) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error
- func (m *MockAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Address, error)
- func (m *MockAddresses) Obj(o *ga.Address) *MockAddressesObj
- type MockAddressesObj
- type MockAlphaAddresses
- func (m *MockAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.Address, error)
- func (m *MockAlphaAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaAddresses) Get(ctx context.Context, key *meta.Key) (*alpha.Address, error)
- func (m *MockAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error
- func (m *MockAlphaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Address, error)
- func (m *MockAlphaAddresses) Obj(o *alpha.Address) *MockAddressesObj
- type MockAlphaBackendServices
- func (m *MockAlphaBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
- func (m *MockAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
- func (m *MockAlphaBackendServices) List(ctx context.Context, fl *filter.F) ([]*alpha.BackendService, error)
- func (m *MockAlphaBackendServices) Obj(o *alpha.BackendService) *MockBackendServicesObj
- func (m *MockAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *alpha.SecurityPolicyReference) error
- func (m *MockAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
- type MockAlphaForwardingRules
- func (m *MockAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
- func (m *MockAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
- func (m *MockAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.ForwardingRule, error)
- func (m *MockAlphaForwardingRules) Obj(o *alpha.ForwardingRule) *MockForwardingRulesObj
- func (m *MockAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
- type MockAlphaGlobalAddresses
- func (m *MockAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key) (*alpha.Address, error)
- func (m *MockAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error
- func (m *MockAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F) ([]*alpha.Address, error)
- func (m *MockAlphaGlobalAddresses) Obj(o *alpha.Address) *MockGlobalAddressesObj
- type MockAlphaGlobalForwardingRules
- func (m *MockAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
- func (m *MockAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
- func (m *MockAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*alpha.ForwardingRule, error)
- func (m *MockAlphaGlobalForwardingRules) Obj(o *alpha.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
- type MockAlphaHealthChecks
- func (m *MockAlphaHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
- func (m *MockAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
- func (m *MockAlphaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*alpha.HealthCheck, error)
- func (m *MockAlphaHealthChecks) Obj(o *alpha.HealthCheck) *MockHealthChecksObj
- func (m *MockAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
- type MockAlphaInstances
- func (m *MockAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *alpha.AttachedDisk) error
- func (m *MockAlphaInstances) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (m *MockAlphaInstances) Get(ctx context.Context, key *meta.Key) (*alpha.Instance, error)
- func (m *MockAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *alpha.Instance) error
- func (m *MockAlphaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.Instance, error)
- func (m *MockAlphaInstances) Obj(o *alpha.Instance) *MockInstancesObj
- func (m *MockAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *alpha.NetworkInterface) error
- type MockAlphaNetworkEndpointGroups
- func (m *MockAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*alpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup) error
- func (m *MockAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*alpha.NetworkEndpointWithHealthStatus, error)
- func (m *MockAlphaNetworkEndpointGroups) Obj(o *alpha.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockAlphaNetworks
- func (m *MockAlphaNetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaNetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Network, error)
- func (m *MockAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Network) error
- func (m *MockAlphaNetworks) List(ctx context.Context, fl *filter.F) ([]*alpha.Network, error)
- func (m *MockAlphaNetworks) Obj(o *alpha.Network) *MockNetworksObj
- type MockAlphaRegionBackendServices
- func (m *MockAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
- func (m *MockAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *alpha.ResourceGroupReference) (*alpha.BackendServiceGroupHealth, error)
- func (m *MockAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
- func (m *MockAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.BackendService, error)
- func (m *MockAlphaRegionBackendServices) Obj(o *alpha.BackendService) *MockRegionBackendServicesObj
- func (m *MockAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
- type MockAlphaRegionHealthChecks
- func (m *MockAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
- func (m *MockAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
- func (m *MockAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.HealthCheck, error)
- func (m *MockAlphaRegionHealthChecks) Obj(o *alpha.HealthCheck) *MockRegionHealthChecksObj
- func (m *MockAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
- type MockAlphaRegionSslCertificates
- func (m *MockAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
- func (m *MockAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
- func (m *MockAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.SslCertificate, error)
- func (m *MockAlphaRegionSslCertificates) Obj(o *alpha.SslCertificate) *MockRegionSslCertificatesObj
- type MockAlphaRegionTargetHttpProxies
- func (m *MockAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
- func (m *MockAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
- func (m *MockAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
- func (m *MockAlphaRegionTargetHttpProxies) Obj(o *alpha.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
- func (m *MockAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type MockAlphaRegionTargetHttpsProxies
- func (m *MockAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
- func (m *MockAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
- func (m *MockAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
- func (m *MockAlphaRegionTargetHttpsProxies) Obj(o *alpha.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
- func (m *MockAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type MockAlphaRegionUrlMaps
- func (m *MockAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error)
- func (m *MockAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error
- func (m *MockAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.UrlMap, error)
- func (m *MockAlphaRegionUrlMaps) Obj(o *alpha.UrlMap) *MockRegionUrlMapsObj
- func (m *MockAlphaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error
- type MockAlphaSslCertificates
- func (m *MockAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
- func (m *MockAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
- func (m *MockAlphaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*alpha.SslCertificate, error)
- func (m *MockAlphaSslCertificates) Obj(o *alpha.SslCertificate) *MockSslCertificatesObj
- type MockAlphaSubnetworks
- func (m *MockAlphaSubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaSubnetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Subnetwork, error)
- func (m *MockAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork) error
- func (m *MockAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Subnetwork, error)
- func (m *MockAlphaSubnetworks) Obj(o *alpha.Subnetwork) *MockSubnetworksObj
- type MockAlphaTargetHttpProxies
- func (m *MockAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
- func (m *MockAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
- func (m *MockAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
- func (m *MockAlphaTargetHttpProxies) Obj(o *alpha.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type MockAlphaTargetHttpsProxies
- func (m *MockAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
- func (m *MockAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
- func (m *MockAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
- func (m *MockAlphaTargetHttpsProxies) Obj(o *alpha.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
- type MockAlphaUrlMaps
- func (m *MockAlphaUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockAlphaUrlMaps) Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error)
- func (m *MockAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error
- func (m *MockAlphaUrlMaps) List(ctx context.Context, fl *filter.F) ([]*alpha.UrlMap, error)
- func (m *MockAlphaUrlMaps) Obj(o *alpha.UrlMap) *MockUrlMapsObj
- func (m *MockAlphaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error
- type MockBackendServices
- func (m *MockBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
- func (m *MockBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
- func (m *MockBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
- func (m *MockBackendServices) List(ctx context.Context, fl *filter.F) ([]*ga.BackendService, error)
- func (m *MockBackendServices) Obj(o *ga.BackendService) *MockBackendServicesObj
- func (m *MockBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- func (m *MockBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- type MockBackendServicesObj
- type MockBetaAddresses
- func (m *MockBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.Address, error)
- func (m *MockBetaAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaAddresses) Get(ctx context.Context, key *meta.Key) (*beta.Address, error)
- func (m *MockBetaAddresses) Insert(ctx context.Context, key *meta.Key, obj *beta.Address) error
- func (m *MockBetaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Address, error)
- func (m *MockBetaAddresses) Obj(o *beta.Address) *MockAddressesObj
- type MockBetaBackendServices
- func (m *MockBetaBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
- func (m *MockBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
- func (m *MockBetaBackendServices) List(ctx context.Context, fl *filter.F) ([]*beta.BackendService, error)
- func (m *MockBetaBackendServices) Obj(o *beta.BackendService) *MockBackendServicesObj
- func (m *MockBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyReference) error
- func (m *MockBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
- type MockBetaForwardingRules
- func (m *MockBetaForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
- func (m *MockBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
- func (m *MockBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*beta.ForwardingRule, error)
- func (m *MockBetaForwardingRules) Obj(o *beta.ForwardingRule) *MockForwardingRulesObj
- func (m *MockBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
- type MockBetaGlobalForwardingRules
- func (m *MockBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
- func (m *MockBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
- func (m *MockBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*beta.ForwardingRule, error)
- func (m *MockBetaGlobalForwardingRules) Obj(o *beta.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
- type MockBetaHealthChecks
- func (m *MockBetaHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
- func (m *MockBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
- func (m *MockBetaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*beta.HealthCheck, error)
- func (m *MockBetaHealthChecks) Obj(o *beta.HealthCheck) *MockHealthChecksObj
- func (m *MockBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
- type MockBetaInstances
- func (m *MockBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *beta.AttachedDisk) error
- func (m *MockBetaInstances) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (m *MockBetaInstances) Get(ctx context.Context, key *meta.Key) (*beta.Instance, error)
- func (m *MockBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *beta.Instance) error
- func (m *MockBetaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.Instance, error)
- func (m *MockBetaInstances) Obj(o *beta.Instance) *MockInstancesObj
- func (m *MockBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *beta.NetworkInterface) error
- type MockBetaNetworkEndpointGroups
- func (m *MockBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*beta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup) error
- func (m *MockBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*beta.NetworkEndpointWithHealthStatus, error)
- func (m *MockBetaNetworkEndpointGroups) Obj(o *beta.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockBetaNetworks
- func (m *MockBetaNetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaNetworks) Get(ctx context.Context, key *meta.Key) (*beta.Network, error)
- func (m *MockBetaNetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Network) error
- func (m *MockBetaNetworks) List(ctx context.Context, fl *filter.F) ([]*beta.Network, error)
- func (m *MockBetaNetworks) Obj(o *beta.Network) *MockNetworksObj
- type MockBetaRegionBackendServices
- func (m *MockBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
- func (m *MockBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *beta.ResourceGroupReference) (*beta.BackendServiceGroupHealth, error)
- func (m *MockBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
- func (m *MockBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*beta.BackendService, error)
- func (m *MockBetaRegionBackendServices) Obj(o *beta.BackendService) *MockRegionBackendServicesObj
- func (m *MockBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
- type MockBetaRegionHealthChecks
- func (m *MockBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
- func (m *MockBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
- func (m *MockBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.HealthCheck, error)
- func (m *MockBetaRegionHealthChecks) Obj(o *beta.HealthCheck) *MockRegionHealthChecksObj
- func (m *MockBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
- type MockBetaRegionSslCertificates
- func (m *MockBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
- func (m *MockBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
- func (m *MockBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*beta.SslCertificate, error)
- func (m *MockBetaRegionSslCertificates) Obj(o *beta.SslCertificate) *MockRegionSslCertificatesObj
- type MockBetaRegionTargetHttpProxies
- func (m *MockBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
- func (m *MockBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
- func (m *MockBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpProxy, error)
- func (m *MockBetaRegionTargetHttpProxies) Obj(o *beta.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
- func (m *MockBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type MockBetaRegionTargetHttpsProxies
- func (m *MockBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
- func (m *MockBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
- func (m *MockBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
- func (m *MockBetaRegionTargetHttpsProxies) Obj(o *beta.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
- func (m *MockBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type MockBetaRegionUrlMaps
- func (m *MockBetaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error)
- func (m *MockBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error
- func (m *MockBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*beta.UrlMap, error)
- func (m *MockBetaRegionUrlMaps) Obj(o *beta.UrlMap) *MockRegionUrlMapsObj
- func (m *MockBetaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *beta.UrlMap) error
- type MockBetaSecurityPolicies
- func (m *MockBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
- func (m *MockBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key) (*beta.SecurityPolicy, error)
- func (m *MockBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key) (*beta.SecurityPolicyRule, error)
- func (m *MockBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy) error
- func (m *MockBetaSecurityPolicies) List(ctx context.Context, fl *filter.F) ([]*beta.SecurityPolicy, error)
- func (m *MockBetaSecurityPolicies) Obj(o *beta.SecurityPolicy) *MockSecurityPoliciesObj
- func (m *MockBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicy) error
- func (m *MockBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
- func (m *MockBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key) error
- type MockBetaSslCertificates
- func (m *MockBetaSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
- func (m *MockBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
- func (m *MockBetaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*beta.SslCertificate, error)
- func (m *MockBetaSslCertificates) Obj(o *beta.SslCertificate) *MockSslCertificatesObj
- type MockBetaSubnetworks
- func (m *MockBetaSubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaSubnetworks) Get(ctx context.Context, key *meta.Key) (*beta.Subnetwork, error)
- func (m *MockBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Subnetwork) error
- func (m *MockBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Subnetwork, error)
- func (m *MockBetaSubnetworks) Obj(o *beta.Subnetwork) *MockSubnetworksObj
- type MockBetaTargetHttpProxies
- func (m *MockBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
- func (m *MockBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
- func (m *MockBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpProxy, error)
- func (m *MockBetaTargetHttpProxies) Obj(o *beta.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type MockBetaTargetHttpsProxies
- func (m *MockBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
- func (m *MockBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
- func (m *MockBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
- func (m *MockBetaTargetHttpsProxies) Obj(o *beta.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
- type MockBetaUrlMaps
- func (m *MockBetaUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockBetaUrlMaps) Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error)
- func (m *MockBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error
- func (m *MockBetaUrlMaps) List(ctx context.Context, fl *filter.F) ([]*beta.UrlMap, error)
- func (m *MockBetaUrlMaps) Obj(o *beta.UrlMap) *MockUrlMapsObj
- func (m *MockBetaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *beta.UrlMap) error
- type MockDisks
- func (m *MockDisks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockDisks) Get(ctx context.Context, key *meta.Key) (*ga.Disk, error)
- func (m *MockDisks) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error
- func (m *MockDisks) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Disk, error)
- func (m *MockDisks) Obj(o *ga.Disk) *MockDisksObj
- func (m *MockDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.DisksResizeRequest) error
- type MockDisksObj
- type MockFirewalls
- func (m *MockFirewalls) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockFirewalls) Get(ctx context.Context, key *meta.Key) (*ga.Firewall, error)
- func (m *MockFirewalls) Insert(ctx context.Context, key *meta.Key, obj *ga.Firewall) error
- func (m *MockFirewalls) List(ctx context.Context, fl *filter.F) ([]*ga.Firewall, error)
- func (m *MockFirewalls) Obj(o *ga.Firewall) *MockFirewallsObj
- func (m *MockFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *ga.Firewall) error
- type MockFirewallsObj
- type MockForwardingRules
- func (m *MockForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
- func (m *MockForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
- func (m *MockForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*ga.ForwardingRule, error)
- func (m *MockForwardingRules) Obj(o *ga.ForwardingRule) *MockForwardingRulesObj
- func (m *MockForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
- type MockForwardingRulesObj
- type MockGCE
- func (mock *MockGCE) Addresses() Addresses
- func (mock *MockGCE) AlphaAddresses() AlphaAddresses
- func (mock *MockGCE) AlphaBackendServices() AlphaBackendServices
- func (mock *MockGCE) AlphaForwardingRules() AlphaForwardingRules
- func (mock *MockGCE) AlphaGlobalAddresses() AlphaGlobalAddresses
- func (mock *MockGCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
- func (mock *MockGCE) AlphaHealthChecks() AlphaHealthChecks
- func (mock *MockGCE) AlphaInstances() AlphaInstances
- func (mock *MockGCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
- func (mock *MockGCE) AlphaNetworks() AlphaNetworks
- func (mock *MockGCE) AlphaRegionBackendServices() AlphaRegionBackendServices
- func (mock *MockGCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
- func (mock *MockGCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
- func (mock *MockGCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
- func (mock *MockGCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
- func (mock *MockGCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
- func (mock *MockGCE) AlphaSslCertificates() AlphaSslCertificates
- func (mock *MockGCE) AlphaSubnetworks() AlphaSubnetworks
- func (mock *MockGCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
- func (mock *MockGCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
- func (mock *MockGCE) AlphaUrlMaps() AlphaUrlMaps
- func (mock *MockGCE) BackendServices() BackendServices
- func (mock *MockGCE) BetaAddresses() BetaAddresses
- func (mock *MockGCE) BetaBackendServices() BetaBackendServices
- func (mock *MockGCE) BetaForwardingRules() BetaForwardingRules
- func (mock *MockGCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
- func (mock *MockGCE) BetaHealthChecks() BetaHealthChecks
- func (mock *MockGCE) BetaInstances() BetaInstances
- func (mock *MockGCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
- func (mock *MockGCE) BetaNetworks() BetaNetworks
- func (mock *MockGCE) BetaRegionBackendServices() BetaRegionBackendServices
- func (mock *MockGCE) BetaRegionHealthChecks() BetaRegionHealthChecks
- func (mock *MockGCE) BetaRegionSslCertificates() BetaRegionSslCertificates
- func (mock *MockGCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
- func (mock *MockGCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
- func (mock *MockGCE) BetaRegionUrlMaps() BetaRegionUrlMaps
- func (mock *MockGCE) BetaSecurityPolicies() BetaSecurityPolicies
- func (mock *MockGCE) BetaSslCertificates() BetaSslCertificates
- func (mock *MockGCE) BetaSubnetworks() BetaSubnetworks
- func (mock *MockGCE) BetaTargetHttpProxies() BetaTargetHttpProxies
- func (mock *MockGCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
- func (mock *MockGCE) BetaUrlMaps() BetaUrlMaps
- func (mock *MockGCE) Disks() Disks
- func (mock *MockGCE) Firewalls() Firewalls
- func (mock *MockGCE) ForwardingRules() ForwardingRules
- func (mock *MockGCE) GlobalAddresses() GlobalAddresses
- func (mock *MockGCE) GlobalForwardingRules() GlobalForwardingRules
- func (mock *MockGCE) HealthChecks() HealthChecks
- func (mock *MockGCE) HttpHealthChecks() HttpHealthChecks
- func (mock *MockGCE) HttpsHealthChecks() HttpsHealthChecks
- func (mock *MockGCE) InstanceGroups() InstanceGroups
- func (mock *MockGCE) Instances() Instances
- func (mock *MockGCE) NetworkEndpointGroups() NetworkEndpointGroups
- func (mock *MockGCE) Networks() Networks
- func (mock *MockGCE) Projects() Projects
- func (mock *MockGCE) RegionBackendServices() RegionBackendServices
- func (mock *MockGCE) RegionDisks() RegionDisks
- func (mock *MockGCE) Regions() Regions
- func (mock *MockGCE) Routes() Routes
- func (mock *MockGCE) SslCertificates() SslCertificates
- func (mock *MockGCE) Subnetworks() Subnetworks
- func (mock *MockGCE) TargetHttpProxies() TargetHttpProxies
- func (mock *MockGCE) TargetHttpsProxies() TargetHttpsProxies
- func (mock *MockGCE) TargetPools() TargetPools
- func (mock *MockGCE) UrlMaps() UrlMaps
- func (mock *MockGCE) Zones() Zones
- type MockGlobalAddresses
- func (m *MockGlobalAddresses) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockGlobalAddresses) Get(ctx context.Context, key *meta.Key) (*ga.Address, error)
- func (m *MockGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error
- func (m *MockGlobalAddresses) List(ctx context.Context, fl *filter.F) ([]*ga.Address, error)
- func (m *MockGlobalAddresses) Obj(o *ga.Address) *MockGlobalAddressesObj
- type MockGlobalAddressesObj
- type MockGlobalForwardingRules
- func (m *MockGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
- func (m *MockGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
- func (m *MockGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*ga.ForwardingRule, error)
- func (m *MockGlobalForwardingRules) Obj(o *ga.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
- type MockGlobalForwardingRulesObj
- type MockHealthChecks
- func (m *MockHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HealthCheck, error)
- func (m *MockHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HealthCheck) error
- func (m *MockHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HealthCheck, error)
- func (m *MockHealthChecks) Obj(o *ga.HealthCheck) *MockHealthChecksObj
- func (m *MockHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HealthCheck) error
- type MockHealthChecksObj
- type MockHttpHealthChecks
- func (m *MockHttpHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockHttpHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpHealthCheck, error)
- func (m *MockHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck) error
- func (m *MockHttpHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpHealthCheck, error)
- func (m *MockHttpHealthChecks) Obj(o *ga.HttpHealthCheck) *MockHttpHealthChecksObj
- func (m *MockHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpHealthCheck) error
- type MockHttpHealthChecksObj
- type MockHttpsHealthChecks
- func (m *MockHttpsHealthChecks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockHttpsHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpsHealthCheck, error)
- func (m *MockHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck) error
- func (m *MockHttpsHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpsHealthCheck, error)
- func (m *MockHttpsHealthChecks) Obj(o *ga.HttpsHealthCheck) *MockHttpsHealthChecksObj
- func (m *MockHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpsHealthCheck) error
- type MockHttpsHealthChecksObj
- type MockInstanceGroups
- func (m *MockInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsAddInstancesRequest) error
- func (m *MockInstanceGroups) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockInstanceGroups) Get(ctx context.Context, key *meta.Key) (*ga.InstanceGroup, error)
- func (m *MockInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup) error
- func (m *MockInstanceGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.InstanceGroup, error)
- func (m *MockInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, ...) ([]*ga.InstanceWithNamedPorts, error)
- func (m *MockInstanceGroups) Obj(o *ga.InstanceGroup) *MockInstanceGroupsObj
- func (m *MockInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, ...) error
- func (m *MockInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, ...) error
- type MockInstanceGroupsObj
- type MockInstances
- func (m *MockInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *ga.AttachedDisk) error
- func (m *MockInstances) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error
- func (m *MockInstances) Get(ctx context.Context, key *meta.Key) (*ga.Instance, error)
- func (m *MockInstances) Insert(ctx context.Context, key *meta.Key, obj *ga.Instance) error
- func (m *MockInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Instance, error)
- func (m *MockInstances) Obj(o *ga.Instance) *MockInstancesObj
- type MockInstancesObj
- type MockNetworkEndpointGroups
- func (m *MockNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*ga.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup) error
- func (m *MockNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*ga.NetworkEndpointWithHealthStatus, error)
- func (m *MockNetworkEndpointGroups) Obj(o *ga.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockNetworkEndpointGroupsObj
- type MockNetworks
- func (m *MockNetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockNetworks) Get(ctx context.Context, key *meta.Key) (*ga.Network, error)
- func (m *MockNetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Network) error
- func (m *MockNetworks) List(ctx context.Context, fl *filter.F) ([]*ga.Network, error)
- func (m *MockNetworks) Obj(o *ga.Network) *MockNetworksObj
- type MockNetworksObj
- type MockProjectOpsState
- type MockProjects
- type MockProjectsObj
- type MockRegionBackendServices
- func (m *MockRegionBackendServices) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
- func (m *MockRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
- func (m *MockRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
- func (m *MockRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*ga.BackendService, error)
- func (m *MockRegionBackendServices) Obj(o *ga.BackendService) *MockRegionBackendServicesObj
- func (m *MockRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
- type MockRegionBackendServicesObj
- type MockRegionDisks
- func (m *MockRegionDisks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockRegionDisks) Get(ctx context.Context, key *meta.Key) (*ga.Disk, error)
- func (m *MockRegionDisks) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error
- func (m *MockRegionDisks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Disk, error)
- func (m *MockRegionDisks) Obj(o *ga.Disk) *MockRegionDisksObj
- func (m *MockRegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.RegionDisksResizeRequest) error
- type MockRegionDisksObj
- type MockRegionHealthChecksObj
- type MockRegionSslCertificatesObj
- type MockRegionTargetHttpProxiesObj
- type MockRegionTargetHttpsProxiesObj
- type MockRegionUrlMapsObj
- type MockRegions
- type MockRegionsObj
- type MockRoutes
- func (m *MockRoutes) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockRoutes) Get(ctx context.Context, key *meta.Key) (*ga.Route, error)
- func (m *MockRoutes) Insert(ctx context.Context, key *meta.Key, obj *ga.Route) error
- func (m *MockRoutes) List(ctx context.Context, fl *filter.F) ([]*ga.Route, error)
- func (m *MockRoutes) Obj(o *ga.Route) *MockRoutesObj
- type MockRoutesObj
- type MockSecurityPoliciesObj
- type MockSslCertificates
- func (m *MockSslCertificates) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockSslCertificates) Get(ctx context.Context, key *meta.Key) (*ga.SslCertificate, error)
- func (m *MockSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *ga.SslCertificate) error
- func (m *MockSslCertificates) List(ctx context.Context, fl *filter.F) ([]*ga.SslCertificate, error)
- func (m *MockSslCertificates) Obj(o *ga.SslCertificate) *MockSslCertificatesObj
- type MockSslCertificatesObj
- type MockSubnetworks
- func (m *MockSubnetworks) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockSubnetworks) Get(ctx context.Context, key *meta.Key) (*ga.Subnetwork, error)
- func (m *MockSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Subnetwork) error
- func (m *MockSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Subnetwork, error)
- func (m *MockSubnetworks) Obj(o *ga.Subnetwork) *MockSubnetworksObj
- type MockSubnetworksObj
- type MockTargetHttpProxies
- func (m *MockTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpProxy, error)
- func (m *MockTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy) error
- func (m *MockTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpProxy, error)
- func (m *MockTargetHttpProxies) Obj(o *ga.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
- type MockTargetHttpProxiesObj
- type MockTargetHttpsProxies
- func (m *MockTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpsProxy, error)
- func (m *MockTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy) error
- func (m *MockTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpsProxy, error)
- func (m *MockTargetHttpsProxies) Obj(o *ga.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
- type MockTargetHttpsProxiesObj
- type MockTargetPools
- func (m *MockTargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsAddInstanceRequest) error
- func (m *MockTargetPools) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockTargetPools) Get(ctx context.Context, key *meta.Key) (*ga.TargetPool, error)
- func (m *MockTargetPools) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetPool) error
- func (m *MockTargetPools) List(ctx context.Context, region string, fl *filter.F) ([]*ga.TargetPool, error)
- func (m *MockTargetPools) Obj(o *ga.TargetPool) *MockTargetPoolsObj
- func (m *MockTargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsRemoveInstanceRequest) error
- type MockTargetPoolsObj
- type MockUrlMaps
- func (m *MockUrlMaps) Delete(ctx context.Context, key *meta.Key) error
- func (m *MockUrlMaps) Get(ctx context.Context, key *meta.Key) (*ga.UrlMap, error)
- func (m *MockUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *ga.UrlMap) error
- func (m *MockUrlMaps) List(ctx context.Context, fl *filter.F) ([]*ga.UrlMap, error)
- func (m *MockUrlMaps) Obj(o *ga.UrlMap) *MockUrlMapsObj
- func (m *MockUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *ga.UrlMap) error
- type MockUrlMapsObj
- type MockZones
- type MockZonesObj
- type NetworkEndpointGroups
- type NetworkTier
- type Networks
- type NopRateLimiter
- type ProjectRouter
- type Projects
- type ProjectsOps
- type RateLimitKey
- type RateLimiter
- type RegionBackendServices
- type RegionDisks
- type Regions
- type ResourceID
- func NewAddressesResourceID(project, region, name string) *ResourceID
- func NewBackendServicesResourceID(project, name string) *ResourceID
- func NewDisksResourceID(project, zone, name string) *ResourceID
- func NewFirewallsResourceID(project, name string) *ResourceID
- func NewForwardingRulesResourceID(project, region, name string) *ResourceID
- func NewGlobalAddressesResourceID(project, name string) *ResourceID
- func NewGlobalForwardingRulesResourceID(project, name string) *ResourceID
- func NewHealthChecksResourceID(project, name string) *ResourceID
- func NewHttpHealthChecksResourceID(project, name string) *ResourceID
- func NewHttpsHealthChecksResourceID(project, name string) *ResourceID
- func NewInstanceGroupsResourceID(project, zone, name string) *ResourceID
- func NewInstancesResourceID(project, zone, name string) *ResourceID
- func NewNetworkEndpointGroupsResourceID(project, zone, name string) *ResourceID
- func NewNetworksResourceID(project, name string) *ResourceID
- func NewProjectsResourceID(project string) *ResourceID
- func NewRegionBackendServicesResourceID(project, region, name string) *ResourceID
- func NewRegionDisksResourceID(project, region, name string) *ResourceID
- func NewRegionHealthChecksResourceID(project, region, name string) *ResourceID
- func NewRegionSslCertificatesResourceID(project, region, name string) *ResourceID
- func NewRegionTargetHttpProxiesResourceID(project, region, name string) *ResourceID
- func NewRegionTargetHttpsProxiesResourceID(project, region, name string) *ResourceID
- func NewRegionUrlMapsResourceID(project, region, name string) *ResourceID
- func NewRegionsResourceID(project, name string) *ResourceID
- func NewRoutesResourceID(project, name string) *ResourceID
- func NewSecurityPoliciesResourceID(project, name string) *ResourceID
- func NewSslCertificatesResourceID(project, name string) *ResourceID
- func NewSubnetworksResourceID(project, region, name string) *ResourceID
- func NewTargetHttpProxiesResourceID(project, name string) *ResourceID
- func NewTargetHttpsProxiesResourceID(project, name string) *ResourceID
- func NewTargetPoolsResourceID(project, region, name string) *ResourceID
- func NewUrlMapsResourceID(project, name string) *ResourceID
- func NewZonesResourceID(project, name string) *ResourceID
- func ParseResourceURL(url string) (*ResourceID, error)
- type Routes
- type Service
- type SingleProjectRouter
- type SslCertificates
- type Subnetworks
- type TargetHttpProxies
- type TargetHttpsProxies
- type TargetPools
- type UrlMaps
- type Zones
Constants ¶
const ( NetworkTierStandard NetworkTier = "Standard" NetworkTierPremium NetworkTier = "Premium" NetworkTierDefault NetworkTier = NetworkTierPremium SchemeExternal LbScheme = "EXTERNAL" SchemeInternal LbScheme = "INTERNAL" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithCallTimeout ¶
func ContextWithCallTimeout() (context.Context, context.CancelFunc)
ContextWithCallTimeout returns a context with a default timeout, used for generated client calls.
func RelativeResourceName ¶
RelativeResourceName returns the path starting from project. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
func ResourcePath ¶
ResourcePath returns the path starting from the location. Example: regions/us-central1/subnetworks/my-subnet
Types ¶
type AcceptRateLimiter ¶
type AcceptRateLimiter struct {
// Acceptor is the underlying rate limiter.
Acceptor acceptor
}
AcceptRateLimiter wraps an Acceptor with RateLimiter parameters.
func (*AcceptRateLimiter) Accept ¶
func (rl *AcceptRateLimiter) Accept(ctx context.Context, key *RateLimitKey) error
Accept wraps an Acceptor and blocks on Accept or context.Done(). Key is ignored.
type Addresses ¶
type Addresses interface { Get(ctx context.Context, key *meta.Key) (*ga.Address, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Address, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.Address, error) }
Addresses is an interface that allows for mocking of Addresses.
type AlphaAddresses ¶
type AlphaAddresses interface { Get(ctx context.Context, key *meta.Key) (*alpha.Address, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Address, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.Address, error) }
AlphaAddresses is an interface that allows for mocking of Addresses.
type AlphaBackendServices ¶
type AlphaBackendServices interface { Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error) List(ctx context.Context, fl *filter.F) ([]*alpha.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error Delete(ctx context.Context, key *meta.Key) error SetSecurityPolicy(context.Context, *meta.Key, *alpha.SecurityPolicyReference) error Update(context.Context, *meta.Key, *alpha.BackendService) error }
AlphaBackendServices is an interface that allows for mocking of BackendServices.
type AlphaForwardingRules ¶
type AlphaForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *alpha.TargetReference) error }
AlphaForwardingRules is an interface that allows for mocking of ForwardingRules.
type AlphaGlobalAddresses ¶
type AlphaGlobalAddresses interface { Get(ctx context.Context, key *meta.Key) (*alpha.Address, error) List(ctx context.Context, fl *filter.F) ([]*alpha.Address, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error Delete(ctx context.Context, key *meta.Key) error }
AlphaGlobalAddresses is an interface that allows for mocking of GlobalAddresses.
type AlphaGlobalForwardingRules ¶
type AlphaGlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error) List(ctx context.Context, fl *filter.F) ([]*alpha.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *alpha.TargetReference) error }
AlphaGlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type AlphaHealthChecks ¶
type AlphaHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error) List(ctx context.Context, fl *filter.F) ([]*alpha.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *alpha.HealthCheck) error }
AlphaHealthChecks is an interface that allows for mocking of HealthChecks.
type AlphaInstances ¶
type AlphaInstances interface { Get(ctx context.Context, key *meta.Key) (*alpha.Instance, error) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.Instance) error Delete(ctx context.Context, key *meta.Key) error AttachDisk(context.Context, *meta.Key, *alpha.AttachedDisk) error DetachDisk(context.Context, *meta.Key, string) error UpdateNetworkInterface(context.Context, *meta.Key, string, *alpha.NetworkInterface) error }
AlphaInstances is an interface that allows for mocking of Instances.
type AlphaNetworkEndpointGroups ¶
type AlphaNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key) (*alpha.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsAttachEndpointsRequest) error DetachNetworkEndpoints(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsDetachEndpointsRequest) error ListNetworkEndpoints(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsListEndpointsRequest, *filter.F) ([]*alpha.NetworkEndpointWithHealthStatus, error) }
AlphaNetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type AlphaNetworks ¶
type AlphaNetworks interface { Get(ctx context.Context, key *meta.Key) (*alpha.Network, error) List(ctx context.Context, fl *filter.F) ([]*alpha.Network, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.Network) error Delete(ctx context.Context, key *meta.Key) error }
AlphaNetworks is an interface that allows for mocking of Networks.
type AlphaRegionBackendServices ¶
type AlphaRegionBackendServices interface { Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error Delete(ctx context.Context, key *meta.Key) error GetHealth(context.Context, *meta.Key, *alpha.ResourceGroupReference) (*alpha.BackendServiceGroupHealth, error) Update(context.Context, *meta.Key, *alpha.BackendService) error }
AlphaRegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type AlphaRegionHealthChecks ¶
type AlphaRegionHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *alpha.HealthCheck) error }
AlphaRegionHealthChecks is an interface that allows for mocking of RegionHealthChecks.
type AlphaRegionSslCertificates ¶
type AlphaRegionSslCertificates interface { Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error Delete(ctx context.Context, key *meta.Key) error }
AlphaRegionSslCertificates is an interface that allows for mocking of RegionSslCertificates.
type AlphaRegionTargetHttpProxies ¶
type AlphaRegionTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error Delete(ctx context.Context, key *meta.Key) error SetUrlMap(context.Context, *meta.Key, *alpha.UrlMapReference) error }
AlphaRegionTargetHttpProxies is an interface that allows for mocking of RegionTargetHttpProxies.
type AlphaRegionTargetHttpsProxies ¶
type AlphaRegionTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error Delete(ctx context.Context, key *meta.Key) error SetSslCertificates(context.Context, *meta.Key, *alpha.RegionTargetHttpsProxiesSetSslCertificatesRequest) error SetUrlMap(context.Context, *meta.Key, *alpha.UrlMapReference) error }
AlphaRegionTargetHttpsProxies is an interface that allows for mocking of RegionTargetHttpsProxies.
type AlphaRegionUrlMaps ¶
type AlphaRegionUrlMaps interface { Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *alpha.UrlMap) error }
AlphaRegionUrlMaps is an interface that allows for mocking of RegionUrlMaps.
type AlphaSslCertificates ¶
type AlphaSslCertificates interface { Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error) List(ctx context.Context, fl *filter.F) ([]*alpha.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error Delete(ctx context.Context, key *meta.Key) error }
AlphaSslCertificates is an interface that allows for mocking of SslCertificates.
type AlphaSubnetworks ¶
type AlphaSubnetworks interface { Get(ctx context.Context, key *meta.Key) (*alpha.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork) error Delete(ctx context.Context, key *meta.Key) error }
AlphaSubnetworks is an interface that allows for mocking of Subnetworks.
type AlphaTargetHttpProxies ¶
type AlphaTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error Delete(ctx context.Context, key *meta.Key) error SetUrlMap(context.Context, *meta.Key, *alpha.UrlMapReference) error }
AlphaTargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type AlphaTargetHttpsProxies ¶
type AlphaTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error Delete(ctx context.Context, key *meta.Key) error SetSslCertificates(context.Context, *meta.Key, *alpha.TargetHttpsProxiesSetSslCertificatesRequest) error SetUrlMap(context.Context, *meta.Key, *alpha.UrlMapReference) error }
AlphaTargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type AlphaUrlMaps ¶
type AlphaUrlMaps interface { Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error) List(ctx context.Context, fl *filter.F) ([]*alpha.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *alpha.UrlMap) error }
AlphaUrlMaps is an interface that allows for mocking of UrlMaps.
type BackendServices ¶
type BackendServices interface { Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error) List(ctx context.Context, fl *filter.F) ([]*ga.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error Delete(ctx context.Context, key *meta.Key) error GetHealth(context.Context, *meta.Key, *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error) Patch(context.Context, *meta.Key, *ga.BackendService) error Update(context.Context, *meta.Key, *ga.BackendService) error }
BackendServices is an interface that allows for mocking of BackendServices.
type BetaAddresses ¶
type BetaAddresses interface { Get(ctx context.Context, key *meta.Key) (*beta.Address, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Address, error) Insert(ctx context.Context, key *meta.Key, obj *beta.Address) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.Address, error) }
BetaAddresses is an interface that allows for mocking of Addresses.
type BetaBackendServices ¶
type BetaBackendServices interface { Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error) List(ctx context.Context, fl *filter.F) ([]*beta.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error Delete(ctx context.Context, key *meta.Key) error SetSecurityPolicy(context.Context, *meta.Key, *beta.SecurityPolicyReference) error Update(context.Context, *meta.Key, *beta.BackendService) error }
BetaBackendServices is an interface that allows for mocking of BackendServices.
type BetaForwardingRules ¶
type BetaForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *beta.TargetReference) error }
BetaForwardingRules is an interface that allows for mocking of ForwardingRules.
type BetaGlobalForwardingRules ¶
type BetaGlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error) List(ctx context.Context, fl *filter.F) ([]*beta.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *beta.TargetReference) error }
BetaGlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type BetaHealthChecks ¶
type BetaHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error) List(ctx context.Context, fl *filter.F) ([]*beta.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *beta.HealthCheck) error }
BetaHealthChecks is an interface that allows for mocking of HealthChecks.
type BetaInstances ¶
type BetaInstances interface { Get(ctx context.Context, key *meta.Key) (*beta.Instance, error) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *beta.Instance) error Delete(ctx context.Context, key *meta.Key) error AttachDisk(context.Context, *meta.Key, *beta.AttachedDisk) error DetachDisk(context.Context, *meta.Key, string) error UpdateNetworkInterface(context.Context, *meta.Key, string, *beta.NetworkInterface) error }
BetaInstances is an interface that allows for mocking of Instances.
type BetaNetworkEndpointGroups ¶
type BetaNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key) (*beta.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *beta.NetworkEndpointGroupsAttachEndpointsRequest) error DetachNetworkEndpoints(context.Context, *meta.Key, *beta.NetworkEndpointGroupsDetachEndpointsRequest) error ListNetworkEndpoints(context.Context, *meta.Key, *beta.NetworkEndpointGroupsListEndpointsRequest, *filter.F) ([]*beta.NetworkEndpointWithHealthStatus, error) }
BetaNetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type BetaNetworks ¶
type BetaNetworks interface { Get(ctx context.Context, key *meta.Key) (*beta.Network, error) List(ctx context.Context, fl *filter.F) ([]*beta.Network, error) Insert(ctx context.Context, key *meta.Key, obj *beta.Network) error Delete(ctx context.Context, key *meta.Key) error }
BetaNetworks is an interface that allows for mocking of Networks.
type BetaRegionBackendServices ¶
type BetaRegionBackendServices interface { Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error Delete(ctx context.Context, key *meta.Key) error GetHealth(context.Context, *meta.Key, *beta.ResourceGroupReference) (*beta.BackendServiceGroupHealth, error) Update(context.Context, *meta.Key, *beta.BackendService) error }
BetaRegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type BetaRegionHealthChecks ¶
type BetaRegionHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *beta.HealthCheck) error }
BetaRegionHealthChecks is an interface that allows for mocking of RegionHealthChecks.
type BetaRegionSslCertificates ¶
type BetaRegionSslCertificates interface { Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error Delete(ctx context.Context, key *meta.Key) error }
BetaRegionSslCertificates is an interface that allows for mocking of RegionSslCertificates.
type BetaRegionTargetHttpProxies ¶
type BetaRegionTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error Delete(ctx context.Context, key *meta.Key) error SetUrlMap(context.Context, *meta.Key, *beta.UrlMapReference) error }
BetaRegionTargetHttpProxies is an interface that allows for mocking of RegionTargetHttpProxies.
type BetaRegionTargetHttpsProxies ¶
type BetaRegionTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error Delete(ctx context.Context, key *meta.Key) error SetSslCertificates(context.Context, *meta.Key, *beta.RegionTargetHttpsProxiesSetSslCertificatesRequest) error SetUrlMap(context.Context, *meta.Key, *beta.UrlMapReference) error }
BetaRegionTargetHttpsProxies is an interface that allows for mocking of RegionTargetHttpsProxies.
type BetaRegionUrlMaps ¶
type BetaRegionUrlMaps interface { Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *beta.UrlMap) error }
BetaRegionUrlMaps is an interface that allows for mocking of RegionUrlMaps.
type BetaSecurityPolicies ¶
type BetaSecurityPolicies interface { Get(ctx context.Context, key *meta.Key) (*beta.SecurityPolicy, error) List(ctx context.Context, fl *filter.F) ([]*beta.SecurityPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy) error Delete(ctx context.Context, key *meta.Key) error AddRule(context.Context, *meta.Key, *beta.SecurityPolicyRule) error GetRule(context.Context, *meta.Key) (*beta.SecurityPolicyRule, error) Patch(context.Context, *meta.Key, *beta.SecurityPolicy) error PatchRule(context.Context, *meta.Key, *beta.SecurityPolicyRule) error RemoveRule(context.Context, *meta.Key) error }
BetaSecurityPolicies is an interface that allows for mocking of SecurityPolicies.
type BetaSslCertificates ¶
type BetaSslCertificates interface { Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error) List(ctx context.Context, fl *filter.F) ([]*beta.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error Delete(ctx context.Context, key *meta.Key) error }
BetaSslCertificates is an interface that allows for mocking of SslCertificates.
type BetaSubnetworks ¶
type BetaSubnetworks interface { Get(ctx context.Context, key *meta.Key) (*beta.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *beta.Subnetwork) error Delete(ctx context.Context, key *meta.Key) error }
BetaSubnetworks is an interface that allows for mocking of Subnetworks.
type BetaTargetHttpProxies ¶
type BetaTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error Delete(ctx context.Context, key *meta.Key) error SetUrlMap(context.Context, *meta.Key, *beta.UrlMapReference) error }
BetaTargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type BetaTargetHttpsProxies ¶
type BetaTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error Delete(ctx context.Context, key *meta.Key) error SetSslCertificates(context.Context, *meta.Key, *beta.TargetHttpsProxiesSetSslCertificatesRequest) error SetUrlMap(context.Context, *meta.Key, *beta.UrlMapReference) error }
BetaTargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type BetaUrlMaps ¶
type BetaUrlMaps interface { Get(ctx context.Context, key *meta.Key) (*beta.UrlMap, error) List(ctx context.Context, fl *filter.F) ([]*beta.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *beta.UrlMap) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *beta.UrlMap) error }
BetaUrlMaps is an interface that allows for mocking of UrlMaps.
type Cloud ¶
type Cloud interface { Addresses() Addresses AlphaAddresses() AlphaAddresses BetaAddresses() BetaAddresses AlphaGlobalAddresses() AlphaGlobalAddresses GlobalAddresses() GlobalAddresses BackendServices() BackendServices BetaBackendServices() BetaBackendServices AlphaBackendServices() AlphaBackendServices RegionBackendServices() RegionBackendServices AlphaRegionBackendServices() AlphaRegionBackendServices BetaRegionBackendServices() BetaRegionBackendServices Disks() Disks RegionDisks() RegionDisks Firewalls() Firewalls ForwardingRules() ForwardingRules AlphaForwardingRules() AlphaForwardingRules BetaForwardingRules() BetaForwardingRules AlphaGlobalForwardingRules() AlphaGlobalForwardingRules BetaGlobalForwardingRules() BetaGlobalForwardingRules GlobalForwardingRules() GlobalForwardingRules HealthChecks() HealthChecks AlphaHealthChecks() AlphaHealthChecks BetaHealthChecks() BetaHealthChecks AlphaRegionHealthChecks() AlphaRegionHealthChecks BetaRegionHealthChecks() BetaRegionHealthChecks HttpHealthChecks() HttpHealthChecks HttpsHealthChecks() HttpsHealthChecks InstanceGroups() InstanceGroups Instances() Instances BetaInstances() BetaInstances AlphaInstances() AlphaInstances AlphaNetworks() AlphaNetworks BetaNetworks() BetaNetworks Networks() Networks AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups BetaNetworkEndpointGroups() BetaNetworkEndpointGroups NetworkEndpointGroups() NetworkEndpointGroups Projects() Projects Regions() Regions Routes() Routes BetaSecurityPolicies() BetaSecurityPolicies SslCertificates() SslCertificates BetaSslCertificates() BetaSslCertificates AlphaSslCertificates() AlphaSslCertificates AlphaRegionSslCertificates() AlphaRegionSslCertificates BetaRegionSslCertificates() BetaRegionSslCertificates AlphaSubnetworks() AlphaSubnetworks BetaSubnetworks() BetaSubnetworks Subnetworks() Subnetworks AlphaTargetHttpProxies() AlphaTargetHttpProxies BetaTargetHttpProxies() BetaTargetHttpProxies TargetHttpProxies() TargetHttpProxies AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies TargetHttpsProxies() TargetHttpsProxies AlphaTargetHttpsProxies() AlphaTargetHttpsProxies BetaTargetHttpsProxies() BetaTargetHttpsProxies AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies TargetPools() TargetPools AlphaUrlMaps() AlphaUrlMaps BetaUrlMaps() BetaUrlMaps UrlMaps() UrlMaps AlphaRegionUrlMaps() AlphaRegionUrlMaps BetaRegionUrlMaps() BetaRegionUrlMaps Zones() Zones }
Cloud is an interface for the GCE compute API.
type Disks ¶
type Disks interface { Get(ctx context.Context, key *meta.Key) (*ga.Disk, error) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Disk, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error Delete(ctx context.Context, key *meta.Key) error Resize(context.Context, *meta.Key, *ga.DisksResizeRequest) error }
Disks is an interface that allows for mocking of Disks.
type Firewalls ¶
type Firewalls interface { Get(ctx context.Context, key *meta.Key) (*ga.Firewall, error) List(ctx context.Context, fl *filter.F) ([]*ga.Firewall, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Firewall) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *ga.Firewall) error }
Firewalls is an interface that allows for mocking of Firewalls.
type ForwardingRules ¶
type ForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *ga.TargetReference) error }
ForwardingRules is an interface that allows for mocking of ForwardingRules.
type GCE ¶
type GCE struct {
// contains filtered or unexported fields
}
GCE is the golang adapter for the compute APIs.
func (*GCE) Addresses ¶
Addresses returns the interface for the ga Addresses.
func (*GCE) AlphaAddresses ¶
func (gce *GCE) AlphaAddresses() AlphaAddresses
AlphaAddresses returns the interface for the alpha Addresses.
func (*GCE) AlphaBackendServices ¶
func (gce *GCE) AlphaBackendServices() AlphaBackendServices
AlphaBackendServices returns the interface for the alpha BackendServices.
func (*GCE) AlphaForwardingRules ¶
func (gce *GCE) AlphaForwardingRules() AlphaForwardingRules
AlphaForwardingRules returns the interface for the alpha ForwardingRules.
func (*GCE) AlphaGlobalAddresses ¶
func (gce *GCE) AlphaGlobalAddresses() AlphaGlobalAddresses
AlphaGlobalAddresses returns the interface for the alpha GlobalAddresses.
func (*GCE) AlphaGlobalForwardingRules ¶
func (gce *GCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
AlphaGlobalForwardingRules returns the interface for the alpha GlobalForwardingRules.
func (*GCE) AlphaHealthChecks ¶
func (gce *GCE) AlphaHealthChecks() AlphaHealthChecks
AlphaHealthChecks returns the interface for the alpha HealthChecks.
func (*GCE) AlphaInstances ¶
func (gce *GCE) AlphaInstances() AlphaInstances
AlphaInstances returns the interface for the alpha Instances.
func (*GCE) AlphaNetworkEndpointGroups ¶
func (gce *GCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
AlphaNetworkEndpointGroups returns the interface for the alpha NetworkEndpointGroups.
func (*GCE) AlphaNetworks ¶
func (gce *GCE) AlphaNetworks() AlphaNetworks
AlphaNetworks returns the interface for the alpha Networks.
func (*GCE) AlphaRegionBackendServices ¶
func (gce *GCE) AlphaRegionBackendServices() AlphaRegionBackendServices
AlphaRegionBackendServices returns the interface for the alpha RegionBackendServices.
func (*GCE) AlphaRegionHealthChecks ¶
func (gce *GCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
AlphaRegionHealthChecks returns the interface for the alpha RegionHealthChecks.
func (*GCE) AlphaRegionSslCertificates ¶
func (gce *GCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
AlphaRegionSslCertificates returns the interface for the alpha RegionSslCertificates.
func (*GCE) AlphaRegionTargetHttpProxies ¶
func (gce *GCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
AlphaRegionTargetHttpProxies returns the interface for the alpha RegionTargetHttpProxies.
func (*GCE) AlphaRegionTargetHttpsProxies ¶
func (gce *GCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
AlphaRegionTargetHttpsProxies returns the interface for the alpha RegionTargetHttpsProxies.
func (*GCE) AlphaRegionUrlMaps ¶
func (gce *GCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
AlphaRegionUrlMaps returns the interface for the alpha RegionUrlMaps.
func (*GCE) AlphaSslCertificates ¶
func (gce *GCE) AlphaSslCertificates() AlphaSslCertificates
AlphaSslCertificates returns the interface for the alpha SslCertificates.
func (*GCE) AlphaSubnetworks ¶
func (gce *GCE) AlphaSubnetworks() AlphaSubnetworks
AlphaSubnetworks returns the interface for the alpha Subnetworks.
func (*GCE) AlphaTargetHttpProxies ¶
func (gce *GCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
AlphaTargetHttpProxies returns the interface for the alpha TargetHttpProxies.
func (*GCE) AlphaTargetHttpsProxies ¶
func (gce *GCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
AlphaTargetHttpsProxies returns the interface for the alpha TargetHttpsProxies.
func (*GCE) AlphaUrlMaps ¶
func (gce *GCE) AlphaUrlMaps() AlphaUrlMaps
AlphaUrlMaps returns the interface for the alpha UrlMaps.
func (*GCE) BackendServices ¶
func (gce *GCE) BackendServices() BackendServices
BackendServices returns the interface for the ga BackendServices.
func (*GCE) BetaAddresses ¶
func (gce *GCE) BetaAddresses() BetaAddresses
BetaAddresses returns the interface for the beta Addresses.
func (*GCE) BetaBackendServices ¶
func (gce *GCE) BetaBackendServices() BetaBackendServices
BetaBackendServices returns the interface for the beta BackendServices.
func (*GCE) BetaForwardingRules ¶
func (gce *GCE) BetaForwardingRules() BetaForwardingRules
BetaForwardingRules returns the interface for the beta ForwardingRules.
func (*GCE) BetaGlobalForwardingRules ¶
func (gce *GCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
BetaGlobalForwardingRules returns the interface for the beta GlobalForwardingRules.
func (*GCE) BetaHealthChecks ¶
func (gce *GCE) BetaHealthChecks() BetaHealthChecks
BetaHealthChecks returns the interface for the beta HealthChecks.
func (*GCE) BetaInstances ¶
func (gce *GCE) BetaInstances() BetaInstances
BetaInstances returns the interface for the beta Instances.
func (*GCE) BetaNetworkEndpointGroups ¶
func (gce *GCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
BetaNetworkEndpointGroups returns the interface for the beta NetworkEndpointGroups.
func (*GCE) BetaNetworks ¶
func (gce *GCE) BetaNetworks() BetaNetworks
BetaNetworks returns the interface for the beta Networks.
func (*GCE) BetaRegionBackendServices ¶
func (gce *GCE) BetaRegionBackendServices() BetaRegionBackendServices
BetaRegionBackendServices returns the interface for the beta RegionBackendServices.
func (*GCE) BetaRegionHealthChecks ¶
func (gce *GCE) BetaRegionHealthChecks() BetaRegionHealthChecks
BetaRegionHealthChecks returns the interface for the beta RegionHealthChecks.
func (*GCE) BetaRegionSslCertificates ¶
func (gce *GCE) BetaRegionSslCertificates() BetaRegionSslCertificates
BetaRegionSslCertificates returns the interface for the beta RegionSslCertificates.
func (*GCE) BetaRegionTargetHttpProxies ¶
func (gce *GCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
BetaRegionTargetHttpProxies returns the interface for the beta RegionTargetHttpProxies.
func (*GCE) BetaRegionTargetHttpsProxies ¶
func (gce *GCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
BetaRegionTargetHttpsProxies returns the interface for the beta RegionTargetHttpsProxies.
func (*GCE) BetaRegionUrlMaps ¶
func (gce *GCE) BetaRegionUrlMaps() BetaRegionUrlMaps
BetaRegionUrlMaps returns the interface for the beta RegionUrlMaps.
func (*GCE) BetaSecurityPolicies ¶
func (gce *GCE) BetaSecurityPolicies() BetaSecurityPolicies
BetaSecurityPolicies returns the interface for the beta SecurityPolicies.
func (*GCE) BetaSslCertificates ¶
func (gce *GCE) BetaSslCertificates() BetaSslCertificates
BetaSslCertificates returns the interface for the beta SslCertificates.
func (*GCE) BetaSubnetworks ¶
func (gce *GCE) BetaSubnetworks() BetaSubnetworks
BetaSubnetworks returns the interface for the beta Subnetworks.
func (*GCE) BetaTargetHttpProxies ¶
func (gce *GCE) BetaTargetHttpProxies() BetaTargetHttpProxies
BetaTargetHttpProxies returns the interface for the beta TargetHttpProxies.
func (*GCE) BetaTargetHttpsProxies ¶
func (gce *GCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
BetaTargetHttpsProxies returns the interface for the beta TargetHttpsProxies.
func (*GCE) BetaUrlMaps ¶
func (gce *GCE) BetaUrlMaps() BetaUrlMaps
BetaUrlMaps returns the interface for the beta UrlMaps.
func (*GCE) Firewalls ¶
Firewalls returns the interface for the ga Firewalls.
func (*GCE) ForwardingRules ¶
func (gce *GCE) ForwardingRules() ForwardingRules
ForwardingRules returns the interface for the ga ForwardingRules.
func (*GCE) GlobalAddresses ¶
func (gce *GCE) GlobalAddresses() GlobalAddresses
GlobalAddresses returns the interface for the ga GlobalAddresses.
func (*GCE) GlobalForwardingRules ¶
func (gce *GCE) GlobalForwardingRules() GlobalForwardingRules
GlobalForwardingRules returns the interface for the ga GlobalForwardingRules.
func (*GCE) HealthChecks ¶
func (gce *GCE) HealthChecks() HealthChecks
HealthChecks returns the interface for the ga HealthChecks.
func (*GCE) HttpHealthChecks ¶
func (gce *GCE) HttpHealthChecks() HttpHealthChecks
HttpHealthChecks returns the interface for the ga HttpHealthChecks.
func (*GCE) HttpsHealthChecks ¶
func (gce *GCE) HttpsHealthChecks() HttpsHealthChecks
HttpsHealthChecks returns the interface for the ga HttpsHealthChecks.
func (*GCE) InstanceGroups ¶
func (gce *GCE) InstanceGroups() InstanceGroups
InstanceGroups returns the interface for the ga InstanceGroups.
func (*GCE) Instances ¶
Instances returns the interface for the ga Instances.
func (*GCE) NetworkEndpointGroups ¶
func (gce *GCE) NetworkEndpointGroups() NetworkEndpointGroups
NetworkEndpointGroups returns the interface for the ga NetworkEndpointGroups.
func (*GCE) Networks ¶
Networks returns the interface for the ga Networks.
func (*GCE) Projects ¶
Projects returns the interface for the ga Projects.
func (*GCE) RegionBackendServices ¶
func (gce *GCE) RegionBackendServices() RegionBackendServices
RegionBackendServices returns the interface for the ga RegionBackendServices.
func (*GCE) RegionDisks ¶
func (gce *GCE) RegionDisks() RegionDisks
RegionDisks returns the interface for the ga RegionDisks.
func (*GCE) Regions ¶
Regions returns the interface for the ga Regions.
func (*GCE) Routes ¶
Routes returns the interface for the ga Routes.
func (*GCE) SslCertificates ¶
func (gce *GCE) SslCertificates() SslCertificates
SslCertificates returns the interface for the ga SslCertificates.
func (*GCE) Subnetworks ¶
func (gce *GCE) Subnetworks() Subnetworks
Subnetworks returns the interface for the ga Subnetworks.
func (*GCE) TargetHttpProxies ¶
func (gce *GCE) TargetHttpProxies() TargetHttpProxies
TargetHttpProxies returns the interface for the ga TargetHttpProxies.
func (*GCE) TargetHttpsProxies ¶
func (gce *GCE) TargetHttpsProxies() TargetHttpsProxies
TargetHttpsProxies returns the interface for the ga TargetHttpsProxies.
func (*GCE) TargetPools ¶
func (gce *GCE) TargetPools() TargetPools
TargetPools returns the interface for the ga TargetPools.
func (*GCE) UrlMaps ¶
UrlMaps returns the interface for the ga UrlMaps.
type GCEAddresses ¶
type GCEAddresses struct {
// contains filtered or unexported fields
}
GCEAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEAddresses) AggregatedList ¶
func (g *GCEAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAddresses) Delete ¶
Delete the Address referenced by key.
func (*GCEAddresses) Get ¶
Get the Address named by key.
func (*GCEAddresses) Insert ¶
Insert Address with key of value obj.
type GCEAlphaAddresses ¶
type GCEAlphaAddresses struct {
// contains filtered or unexported fields
}
GCEAlphaAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEAlphaAddresses) AggregatedList ¶
func (g *GCEAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaAddresses) Delete ¶
Delete the Address referenced by key.
func (*GCEAlphaAddresses) Get ¶
Get the Address named by key.
func (*GCEAlphaAddresses) Insert ¶
Insert Address with key of value obj.
type GCEAlphaBackendServices ¶
type GCEAlphaBackendServices struct {
// contains filtered or unexported fields
}
GCEAlphaBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEAlphaBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCEAlphaBackendServices) Get ¶
func (g *GCEAlphaBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
Get the BackendService named by key.
func (*GCEAlphaBackendServices) Insert ¶
func (g *GCEAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
Insert BackendService with key of value obj.
func (*GCEAlphaBackendServices) List ¶
func (g *GCEAlphaBackendServices) List(ctx context.Context, fl *filter.F) ([]*alpha.BackendService, error)
List all BackendService objects.
func (*GCEAlphaBackendServices) SetSecurityPolicy ¶
func (g *GCEAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *alpha.SecurityPolicyReference) error
SetSecurityPolicy is a method on GCEAlphaBackendServices.
func (*GCEAlphaBackendServices) Update ¶
func (g *GCEAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
Update is a method on GCEAlphaBackendServices.
type GCEAlphaForwardingRules ¶
type GCEAlphaForwardingRules struct {
// contains filtered or unexported fields
}
GCEAlphaForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEAlphaForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEAlphaForwardingRules) Get ¶
func (g *GCEAlphaForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEAlphaForwardingRules) Insert ¶
func (g *GCEAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEAlphaForwardingRules) List ¶
func (g *GCEAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEAlphaForwardingRules) SetTarget ¶
func (g *GCEAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
SetTarget is a method on GCEAlphaForwardingRules.
type GCEAlphaGlobalAddresses ¶
type GCEAlphaGlobalAddresses struct {
// contains filtered or unexported fields
}
GCEAlphaGlobalAddresses is a simplifying adapter for the GCE GlobalAddresses.
func (*GCEAlphaGlobalAddresses) Delete ¶
Delete the Address referenced by key.
func (*GCEAlphaGlobalAddresses) Get ¶
Get the Address named by key.
type GCEAlphaGlobalForwardingRules ¶
type GCEAlphaGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEAlphaGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEAlphaGlobalForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEAlphaGlobalForwardingRules) Get ¶
func (g *GCEAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEAlphaGlobalForwardingRules) Insert ¶
func (g *GCEAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEAlphaGlobalForwardingRules) List ¶
func (g *GCEAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*alpha.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEAlphaGlobalForwardingRules) SetTarget ¶
func (g *GCEAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
SetTarget is a method on GCEAlphaGlobalForwardingRules.
type GCEAlphaHealthChecks ¶
type GCEAlphaHealthChecks struct {
// contains filtered or unexported fields
}
GCEAlphaHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEAlphaHealthChecks) Delete ¶
Delete the HealthCheck referenced by key.
func (*GCEAlphaHealthChecks) Get ¶
func (g *GCEAlphaHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEAlphaHealthChecks) Insert ¶
func (g *GCEAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
Insert HealthCheck with key of value obj.
func (*GCEAlphaHealthChecks) List ¶
func (g *GCEAlphaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*alpha.HealthCheck, error)
List all HealthCheck objects.
func (*GCEAlphaHealthChecks) Update ¶
func (g *GCEAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
Update is a method on GCEAlphaHealthChecks.
type GCEAlphaInstances ¶
type GCEAlphaInstances struct {
// contains filtered or unexported fields
}
GCEAlphaInstances is a simplifying adapter for the GCE Instances.
func (*GCEAlphaInstances) AttachDisk ¶
func (g *GCEAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *alpha.AttachedDisk) error
AttachDisk is a method on GCEAlphaInstances.
func (*GCEAlphaInstances) Delete ¶
Delete the Instance referenced by key.
func (*GCEAlphaInstances) DetachDisk ¶
DetachDisk is a method on GCEAlphaInstances.
func (*GCEAlphaInstances) Get ¶
Get the Instance named by key.
func (*GCEAlphaInstances) Insert ¶
Insert Instance with key of value obj.
func (*GCEAlphaInstances) List ¶
func (g *GCEAlphaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.Instance, error)
List all Instance objects.
func (*GCEAlphaInstances) UpdateNetworkInterface ¶
func (g *GCEAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *alpha.NetworkInterface) error
UpdateNetworkInterface is a method on GCEAlphaInstances.
type GCEAlphaNetworkEndpointGroups ¶
type GCEAlphaNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEAlphaNetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) AggregatedList ¶
func (g *GCEAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) Delete ¶
Delete the NetworkEndpointGroup referenced by key.
func (*GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) Get ¶
func (g *GCEAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*alpha.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEAlphaNetworkEndpointGroups) Insert ¶
func (g *GCEAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEAlphaNetworkEndpointGroups) List ¶
func (g *GCEAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*alpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
type GCEAlphaNetworks ¶
type GCEAlphaNetworks struct {
// contains filtered or unexported fields
}
GCEAlphaNetworks is a simplifying adapter for the GCE Networks.
func (*GCEAlphaNetworks) Delete ¶
Delete the Network referenced by key.
func (*GCEAlphaNetworks) Get ¶
Get the Network named by key.
func (*GCEAlphaNetworks) Insert ¶
Insert Network with key of value obj.
type GCEAlphaRegionBackendServices ¶
type GCEAlphaRegionBackendServices struct {
// contains filtered or unexported fields
}
GCEAlphaRegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCEAlphaRegionBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCEAlphaRegionBackendServices) Get ¶
func (g *GCEAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
Get the BackendService named by key.
func (*GCEAlphaRegionBackendServices) GetHealth ¶
func (g *GCEAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *alpha.ResourceGroupReference) (*alpha.BackendServiceGroupHealth, error)
GetHealth is a method on GCEAlphaRegionBackendServices.
func (*GCEAlphaRegionBackendServices) Insert ¶
func (g *GCEAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
Insert BackendService with key of value obj.
func (*GCEAlphaRegionBackendServices) List ¶
func (g *GCEAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.BackendService, error)
List all BackendService objects.
func (*GCEAlphaRegionBackendServices) Update ¶
func (g *GCEAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
Update is a method on GCEAlphaRegionBackendServices.
type GCEAlphaRegionHealthChecks ¶
type GCEAlphaRegionHealthChecks struct {
// contains filtered or unexported fields
}
GCEAlphaRegionHealthChecks is a simplifying adapter for the GCE RegionHealthChecks.
func (*GCEAlphaRegionHealthChecks) Delete ¶
Delete the HealthCheck referenced by key.
func (*GCEAlphaRegionHealthChecks) Get ¶
func (g *GCEAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEAlphaRegionHealthChecks) Insert ¶
func (g *GCEAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
Insert HealthCheck with key of value obj.
func (*GCEAlphaRegionHealthChecks) List ¶
func (g *GCEAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.HealthCheck, error)
List all HealthCheck objects.
func (*GCEAlphaRegionHealthChecks) Update ¶
func (g *GCEAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
Update is a method on GCEAlphaRegionHealthChecks.
type GCEAlphaRegionSslCertificates ¶
type GCEAlphaRegionSslCertificates struct {
// contains filtered or unexported fields
}
GCEAlphaRegionSslCertificates is a simplifying adapter for the GCE RegionSslCertificates.
func (*GCEAlphaRegionSslCertificates) Delete ¶
Delete the SslCertificate referenced by key.
func (*GCEAlphaRegionSslCertificates) Get ¶
func (g *GCEAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEAlphaRegionSslCertificates) Insert ¶
func (g *GCEAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
Insert SslCertificate with key of value obj.
func (*GCEAlphaRegionSslCertificates) List ¶
func (g *GCEAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.SslCertificate, error)
List all SslCertificate objects.
type GCEAlphaRegionTargetHttpProxies ¶
type GCEAlphaRegionTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEAlphaRegionTargetHttpProxies is a simplifying adapter for the GCE RegionTargetHttpProxies.
func (*GCEAlphaRegionTargetHttpProxies) Delete ¶
Delete the TargetHttpProxy referenced by key.
func (*GCEAlphaRegionTargetHttpProxies) Get ¶
func (g *GCEAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEAlphaRegionTargetHttpProxies) Insert ¶
func (g *GCEAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
Insert TargetHttpProxy with key of value obj.
func (*GCEAlphaRegionTargetHttpProxies) List ¶
func (g *GCEAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEAlphaRegionTargetHttpProxies) SetUrlMap ¶
func (g *GCEAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a method on GCEAlphaRegionTargetHttpProxies.
type GCEAlphaRegionTargetHttpsProxies ¶
type GCEAlphaRegionTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEAlphaRegionTargetHttpsProxies is a simplifying adapter for the GCE RegionTargetHttpsProxies.
func (*GCEAlphaRegionTargetHttpsProxies) Delete ¶
Delete the TargetHttpsProxy referenced by key.
func (*GCEAlphaRegionTargetHttpsProxies) Get ¶
func (g *GCEAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEAlphaRegionTargetHttpsProxies) Insert ¶
func (g *GCEAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEAlphaRegionTargetHttpsProxies) List ¶
func (g *GCEAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEAlphaRegionTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *alpha.RegionTargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a method on GCEAlphaRegionTargetHttpsProxies.
func (*GCEAlphaRegionTargetHttpsProxies) SetUrlMap ¶
func (g *GCEAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a method on GCEAlphaRegionTargetHttpsProxies.
type GCEAlphaRegionUrlMaps ¶
type GCEAlphaRegionUrlMaps struct {
// contains filtered or unexported fields
}
GCEAlphaRegionUrlMaps is a simplifying adapter for the GCE RegionUrlMaps.
func (*GCEAlphaRegionUrlMaps) Delete ¶
Delete the UrlMap referenced by key.
func (*GCEAlphaRegionUrlMaps) Get ¶
Get the UrlMap named by key.
func (*GCEAlphaRegionUrlMaps) Insert ¶
Insert UrlMap with key of value obj.
type GCEAlphaSslCertificates ¶
type GCEAlphaSslCertificates struct {
// contains filtered or unexported fields
}
GCEAlphaSslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCEAlphaSslCertificates) Delete ¶
Delete the SslCertificate referenced by key.
func (*GCEAlphaSslCertificates) Get ¶
func (g *GCEAlphaSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEAlphaSslCertificates) Insert ¶
func (g *GCEAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
Insert SslCertificate with key of value obj.
func (*GCEAlphaSslCertificates) List ¶
func (g *GCEAlphaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*alpha.SslCertificate, error)
List all SslCertificate objects.
type GCEAlphaSubnetworks ¶
type GCEAlphaSubnetworks struct {
// contains filtered or unexported fields
}
GCEAlphaSubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCEAlphaSubnetworks) Delete ¶
Delete the Subnetwork referenced by key.
func (*GCEAlphaSubnetworks) Get ¶
func (g *GCEAlphaSubnetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCEAlphaSubnetworks) Insert ¶
func (g *GCEAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork) error
Insert Subnetwork with key of value obj.
func (*GCEAlphaSubnetworks) List ¶
func (g *GCEAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Subnetwork, error)
List all Subnetwork objects.
type GCEAlphaTargetHttpProxies ¶
type GCEAlphaTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEAlphaTargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCEAlphaTargetHttpProxies) Delete ¶
Delete the TargetHttpProxy referenced by key.
func (*GCEAlphaTargetHttpProxies) Get ¶
func (g *GCEAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEAlphaTargetHttpProxies) Insert ¶
func (g *GCEAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
Insert TargetHttpProxy with key of value obj.
func (*GCEAlphaTargetHttpProxies) List ¶
func (g *GCEAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEAlphaTargetHttpProxies) SetUrlMap ¶
func (g *GCEAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a method on GCEAlphaTargetHttpProxies.
type GCEAlphaTargetHttpsProxies ¶
type GCEAlphaTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEAlphaTargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) Delete ¶
Delete the TargetHttpsProxy referenced by key.
func (*GCEAlphaTargetHttpsProxies) Get ¶
func (g *GCEAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEAlphaTargetHttpsProxies) Insert ¶
func (g *GCEAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEAlphaTargetHttpsProxies) List ¶
func (g *GCEAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEAlphaTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *alpha.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a method on GCEAlphaTargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) SetUrlMap ¶
func (g *GCEAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a method on GCEAlphaTargetHttpsProxies.
type GCEAlphaUrlMaps ¶
type GCEAlphaUrlMaps struct {
// contains filtered or unexported fields
}
GCEAlphaUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEAlphaUrlMaps) Delete ¶
Delete the UrlMap referenced by key.
func (*GCEAlphaUrlMaps) Get ¶
Get the UrlMap named by key.
func (*GCEAlphaUrlMaps) Insert ¶
Insert UrlMap with key of value obj.
func (*GCEAlphaUrlMaps) List ¶
List all UrlMap objects.
type GCEBackendServices ¶
type GCEBackendServices struct {
// contains filtered or unexported fields
}
GCEBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCEBackendServices) Get ¶
func (g *GCEBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
Get the BackendService named by key.
func (*GCEBackendServices) GetHealth ¶
func (g *GCEBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
GetHealth is a method on GCEBackendServices.
func (*GCEBackendServices) Insert ¶
func (g *GCEBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
Insert BackendService with key of value obj.
func (*GCEBackendServices) List ¶
func (g *GCEBackendServices) List(ctx context.Context, fl *filter.F) ([]*ga.BackendService, error)
List all BackendService objects.
func (*GCEBackendServices) Patch ¶
func (g *GCEBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Patch is a method on GCEBackendServices.
func (*GCEBackendServices) Update ¶
func (g *GCEBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Update is a method on GCEBackendServices.
type GCEBetaAddresses ¶
type GCEBetaAddresses struct {
// contains filtered or unexported fields
}
GCEBetaAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEBetaAddresses) AggregatedList ¶
func (g *GCEBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaAddresses) Delete ¶
Delete the Address referenced by key.
func (*GCEBetaAddresses) Get ¶
Get the Address named by key.
func (*GCEBetaAddresses) Insert ¶
Insert Address with key of value obj.
type GCEBetaBackendServices ¶
type GCEBetaBackendServices struct {
// contains filtered or unexported fields
}
GCEBetaBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEBetaBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCEBetaBackendServices) Get ¶
func (g *GCEBetaBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
Get the BackendService named by key.
func (*GCEBetaBackendServices) Insert ¶
func (g *GCEBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
Insert BackendService with key of value obj.
func (*GCEBetaBackendServices) List ¶
func (g *GCEBetaBackendServices) List(ctx context.Context, fl *filter.F) ([]*beta.BackendService, error)
List all BackendService objects.
func (*GCEBetaBackendServices) SetSecurityPolicy ¶
func (g *GCEBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyReference) error
SetSecurityPolicy is a method on GCEBetaBackendServices.
func (*GCEBetaBackendServices) Update ¶
func (g *GCEBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
Update is a method on GCEBetaBackendServices.
type GCEBetaForwardingRules ¶
type GCEBetaForwardingRules struct {
// contains filtered or unexported fields
}
GCEBetaForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEBetaForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEBetaForwardingRules) Get ¶
func (g *GCEBetaForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEBetaForwardingRules) Insert ¶
func (g *GCEBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEBetaForwardingRules) List ¶
func (g *GCEBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*beta.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEBetaForwardingRules) SetTarget ¶
func (g *GCEBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
SetTarget is a method on GCEBetaForwardingRules.
type GCEBetaGlobalForwardingRules ¶
type GCEBetaGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEBetaGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEBetaGlobalForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEBetaGlobalForwardingRules) Get ¶
func (g *GCEBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEBetaGlobalForwardingRules) Insert ¶
func (g *GCEBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEBetaGlobalForwardingRules) List ¶
func (g *GCEBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*beta.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEBetaGlobalForwardingRules) SetTarget ¶
func (g *GCEBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
SetTarget is a method on GCEBetaGlobalForwardingRules.
type GCEBetaHealthChecks ¶
type GCEBetaHealthChecks struct {
// contains filtered or unexported fields
}
GCEBetaHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEBetaHealthChecks) Delete ¶
Delete the HealthCheck referenced by key.
func (*GCEBetaHealthChecks) Get ¶
func (g *GCEBetaHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEBetaHealthChecks) Insert ¶
func (g *GCEBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
Insert HealthCheck with key of value obj.
func (*GCEBetaHealthChecks) List ¶
func (g *GCEBetaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*beta.HealthCheck, error)
List all HealthCheck objects.
func (*GCEBetaHealthChecks) Update ¶
func (g *GCEBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
Update is a method on GCEBetaHealthChecks.
type GCEBetaInstances ¶
type GCEBetaInstances struct {
// contains filtered or unexported fields
}
GCEBetaInstances is a simplifying adapter for the GCE Instances.
func (*GCEBetaInstances) AttachDisk ¶
func (g *GCEBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *beta.AttachedDisk) error
AttachDisk is a method on GCEBetaInstances.
func (*GCEBetaInstances) Delete ¶
Delete the Instance referenced by key.
func (*GCEBetaInstances) DetachDisk ¶
DetachDisk is a method on GCEBetaInstances.
func (*GCEBetaInstances) Get ¶
Get the Instance named by key.
func (*GCEBetaInstances) Insert ¶
Insert Instance with key of value obj.
func (*GCEBetaInstances) List ¶
func (g *GCEBetaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.Instance, error)
List all Instance objects.
func (*GCEBetaInstances) UpdateNetworkInterface ¶
func (g *GCEBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *beta.NetworkInterface) error
UpdateNetworkInterface is a method on GCEBetaInstances.
type GCEBetaNetworkEndpointGroups ¶
type GCEBetaNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEBetaNetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) AggregatedList ¶
func (g *GCEBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) Delete ¶
Delete the NetworkEndpointGroup referenced by key.
func (*GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) Get ¶
func (g *GCEBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*beta.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEBetaNetworkEndpointGroups) Insert ¶
func (g *GCEBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEBetaNetworkEndpointGroups) List ¶
func (g *GCEBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEBetaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*beta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
type GCEBetaNetworks ¶
type GCEBetaNetworks struct {
// contains filtered or unexported fields
}
GCEBetaNetworks is a simplifying adapter for the GCE Networks.
func (*GCEBetaNetworks) Delete ¶
Delete the Network referenced by key.
func (*GCEBetaNetworks) Get ¶
Get the Network named by key.
func (*GCEBetaNetworks) Insert ¶
Insert Network with key of value obj.
type GCEBetaRegionBackendServices ¶
type GCEBetaRegionBackendServices struct {
// contains filtered or unexported fields
}
GCEBetaRegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCEBetaRegionBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCEBetaRegionBackendServices) Get ¶
func (g *GCEBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
Get the BackendService named by key.
func (*GCEBetaRegionBackendServices) GetHealth ¶
func (g *GCEBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *beta.ResourceGroupReference) (*beta.BackendServiceGroupHealth, error)
GetHealth is a method on GCEBetaRegionBackendServices.
func (*GCEBetaRegionBackendServices) Insert ¶
func (g *GCEBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
Insert BackendService with key of value obj.
func (*GCEBetaRegionBackendServices) List ¶
func (g *GCEBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*beta.BackendService, error)
List all BackendService objects.
func (*GCEBetaRegionBackendServices) Update ¶
func (g *GCEBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
Update is a method on GCEBetaRegionBackendServices.
type GCEBetaRegionHealthChecks ¶
type GCEBetaRegionHealthChecks struct {
// contains filtered or unexported fields
}
GCEBetaRegionHealthChecks is a simplifying adapter for the GCE RegionHealthChecks.
func (*GCEBetaRegionHealthChecks) Delete ¶
Delete the HealthCheck referenced by key.
func (*GCEBetaRegionHealthChecks) Get ¶
func (g *GCEBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEBetaRegionHealthChecks) Insert ¶
func (g *GCEBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
Insert HealthCheck with key of value obj.
func (*GCEBetaRegionHealthChecks) List ¶
func (g *GCEBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.HealthCheck, error)
List all HealthCheck objects.
func (*GCEBetaRegionHealthChecks) Update ¶
func (g *GCEBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
Update is a method on GCEBetaRegionHealthChecks.
type GCEBetaRegionSslCertificates ¶
type GCEBetaRegionSslCertificates struct {
// contains filtered or unexported fields
}
GCEBetaRegionSslCertificates is a simplifying adapter for the GCE RegionSslCertificates.
func (*GCEBetaRegionSslCertificates) Delete ¶
Delete the SslCertificate referenced by key.
func (*GCEBetaRegionSslCertificates) Get ¶
func (g *GCEBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEBetaRegionSslCertificates) Insert ¶
func (g *GCEBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
Insert SslCertificate with key of value obj.
func (*GCEBetaRegionSslCertificates) List ¶
func (g *GCEBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*beta.SslCertificate, error)
List all SslCertificate objects.
type GCEBetaRegionTargetHttpProxies ¶
type GCEBetaRegionTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEBetaRegionTargetHttpProxies is a simplifying adapter for the GCE RegionTargetHttpProxies.
func (*GCEBetaRegionTargetHttpProxies) Delete ¶
Delete the TargetHttpProxy referenced by key.
func (*GCEBetaRegionTargetHttpProxies) Get ¶
func (g *GCEBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEBetaRegionTargetHttpProxies) Insert ¶
func (g *GCEBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
Insert TargetHttpProxy with key of value obj.
func (*GCEBetaRegionTargetHttpProxies) List ¶
func (g *GCEBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEBetaRegionTargetHttpProxies) SetUrlMap ¶
func (g *GCEBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a method on GCEBetaRegionTargetHttpProxies.
type GCEBetaRegionTargetHttpsProxies ¶
type GCEBetaRegionTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEBetaRegionTargetHttpsProxies is a simplifying adapter for the GCE RegionTargetHttpsProxies.
func (*GCEBetaRegionTargetHttpsProxies) Delete ¶
Delete the TargetHttpsProxy referenced by key.
func (*GCEBetaRegionTargetHttpsProxies) Get ¶
func (g *GCEBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEBetaRegionTargetHttpsProxies) Insert ¶
func (g *GCEBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEBetaRegionTargetHttpsProxies) List ¶
func (g *GCEBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEBetaRegionTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *beta.RegionTargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a method on GCEBetaRegionTargetHttpsProxies.
func (*GCEBetaRegionTargetHttpsProxies) SetUrlMap ¶
func (g *GCEBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a method on GCEBetaRegionTargetHttpsProxies.
type GCEBetaRegionUrlMaps ¶
type GCEBetaRegionUrlMaps struct {
// contains filtered or unexported fields
}
GCEBetaRegionUrlMaps is a simplifying adapter for the GCE RegionUrlMaps.
func (*GCEBetaRegionUrlMaps) Delete ¶
Delete the UrlMap referenced by key.
func (*GCEBetaRegionUrlMaps) Get ¶
Get the UrlMap named by key.
func (*GCEBetaRegionUrlMaps) Insert ¶
Insert UrlMap with key of value obj.
type GCEBetaSecurityPolicies ¶
type GCEBetaSecurityPolicies struct {
// contains filtered or unexported fields
}
GCEBetaSecurityPolicies is a simplifying adapter for the GCE SecurityPolicies.
func (*GCEBetaSecurityPolicies) AddRule ¶
func (g *GCEBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
AddRule is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) Delete ¶
Delete the SecurityPolicy referenced by key.
func (*GCEBetaSecurityPolicies) Get ¶
func (g *GCEBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key) (*beta.SecurityPolicy, error)
Get the SecurityPolicy named by key.
func (*GCEBetaSecurityPolicies) GetRule ¶
func (g *GCEBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key) (*beta.SecurityPolicyRule, error)
GetRule is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) Insert ¶
func (g *GCEBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy) error
Insert SecurityPolicy with key of value obj.
func (*GCEBetaSecurityPolicies) List ¶
func (g *GCEBetaSecurityPolicies) List(ctx context.Context, fl *filter.F) ([]*beta.SecurityPolicy, error)
List all SecurityPolicy objects.
func (*GCEBetaSecurityPolicies) Patch ¶
func (g *GCEBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicy) error
Patch is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) PatchRule ¶
func (g *GCEBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
PatchRule is a method on GCEBetaSecurityPolicies.
type GCEBetaSslCertificates ¶
type GCEBetaSslCertificates struct {
// contains filtered or unexported fields
}
GCEBetaSslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCEBetaSslCertificates) Delete ¶
Delete the SslCertificate referenced by key.
func (*GCEBetaSslCertificates) Get ¶
func (g *GCEBetaSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEBetaSslCertificates) Insert ¶
func (g *GCEBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
Insert SslCertificate with key of value obj.
func (*GCEBetaSslCertificates) List ¶
func (g *GCEBetaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*beta.SslCertificate, error)
List all SslCertificate objects.
type GCEBetaSubnetworks ¶
type GCEBetaSubnetworks struct {
// contains filtered or unexported fields
}
GCEBetaSubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCEBetaSubnetworks) Delete ¶
Delete the Subnetwork referenced by key.
func (*GCEBetaSubnetworks) Get ¶
func (g *GCEBetaSubnetworks) Get(ctx context.Context, key *meta.Key) (*beta.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCEBetaSubnetworks) Insert ¶
func (g *GCEBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Subnetwork) error
Insert Subnetwork with key of value obj.
func (*GCEBetaSubnetworks) List ¶
func (g *GCEBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Subnetwork, error)
List all Subnetwork objects.
type GCEBetaTargetHttpProxies ¶
type GCEBetaTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEBetaTargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCEBetaTargetHttpProxies) Delete ¶
Delete the TargetHttpProxy referenced by key.
func (*GCEBetaTargetHttpProxies) Get ¶
func (g *GCEBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEBetaTargetHttpProxies) Insert ¶
func (g *GCEBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
Insert TargetHttpProxy with key of value obj.
func (*GCEBetaTargetHttpProxies) List ¶
func (g *GCEBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEBetaTargetHttpProxies) SetUrlMap ¶
func (g *GCEBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a method on GCEBetaTargetHttpProxies.
type GCEBetaTargetHttpsProxies ¶
type GCEBetaTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEBetaTargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) Delete ¶
Delete the TargetHttpsProxy referenced by key.
func (*GCEBetaTargetHttpsProxies) Get ¶
func (g *GCEBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEBetaTargetHttpsProxies) Insert ¶
func (g *GCEBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEBetaTargetHttpsProxies) List ¶
func (g *GCEBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEBetaTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *beta.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a method on GCEBetaTargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) SetUrlMap ¶
func (g *GCEBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a method on GCEBetaTargetHttpsProxies.
type GCEBetaUrlMaps ¶
type GCEBetaUrlMaps struct {
// contains filtered or unexported fields
}
GCEBetaUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEBetaUrlMaps) Delete ¶
Delete the UrlMap referenced by key.
func (*GCEBetaUrlMaps) Get ¶
Get the UrlMap named by key.
func (*GCEBetaUrlMaps) Insert ¶
Insert UrlMap with key of value obj.
func (*GCEBetaUrlMaps) List ¶
List all UrlMap objects.
type GCEDisks ¶
type GCEDisks struct {
// contains filtered or unexported fields
}
GCEDisks is a simplifying adapter for the GCE Disks.
func (*GCEDisks) Delete ¶
Delete the Disk referenced by key.
func (*GCEDisks) Get ¶
Get the Disk named by key.
func (*GCEDisks) Insert ¶
Insert Disk with key of value obj.
func (*GCEDisks) List ¶
List all Disk objects.
type GCEFirewalls ¶
type GCEFirewalls struct {
// contains filtered or unexported fields
}
GCEFirewalls is a simplifying adapter for the GCE Firewalls.
func (*GCEFirewalls) Delete ¶
Delete the Firewall referenced by key.
func (*GCEFirewalls) Get ¶
Get the Firewall named by key.
func (*GCEFirewalls) Insert ¶
Insert Firewall with key of value obj.
func (*GCEFirewalls) List ¶
List all Firewall objects.
type GCEForwardingRules ¶
type GCEForwardingRules struct {
// contains filtered or unexported fields
}
GCEForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEForwardingRules) Get ¶
func (g *GCEForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEForwardingRules) Insert ¶
func (g *GCEForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEForwardingRules) List ¶
func (g *GCEForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*ga.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEForwardingRules) SetTarget ¶
func (g *GCEForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
SetTarget is a method on GCEForwardingRules.
type GCEGlobalAddresses ¶
type GCEGlobalAddresses struct {
// contains filtered or unexported fields
}
GCEGlobalAddresses is a simplifying adapter for the GCE GlobalAddresses.
func (*GCEGlobalAddresses) Delete ¶
Delete the Address referenced by key.
func (*GCEGlobalAddresses) Get ¶
Get the Address named by key.
func (*GCEGlobalAddresses) Insert ¶
Insert Address with key of value obj.
type GCEGlobalForwardingRules ¶
type GCEGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEGlobalForwardingRules) Delete ¶
Delete the ForwardingRule referenced by key.
func (*GCEGlobalForwardingRules) Get ¶
func (g *GCEGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEGlobalForwardingRules) Insert ¶
func (g *GCEGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
Insert ForwardingRule with key of value obj.
func (*GCEGlobalForwardingRules) List ¶
func (g *GCEGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*ga.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEGlobalForwardingRules) SetTarget ¶
func (g *GCEGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
SetTarget is a method on GCEGlobalForwardingRules.
type GCEHealthChecks ¶
type GCEHealthChecks struct {
// contains filtered or unexported fields
}
GCEHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEHealthChecks) Delete ¶
Delete the HealthCheck referenced by key.
func (*GCEHealthChecks) Get ¶
func (g *GCEHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEHealthChecks) Insert ¶
func (g *GCEHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HealthCheck) error
Insert HealthCheck with key of value obj.
func (*GCEHealthChecks) List ¶
func (g *GCEHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HealthCheck, error)
List all HealthCheck objects.
func (*GCEHealthChecks) Update ¶
func (g *GCEHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HealthCheck) error
Update is a method on GCEHealthChecks.
type GCEHttpHealthChecks ¶
type GCEHttpHealthChecks struct {
// contains filtered or unexported fields
}
GCEHttpHealthChecks is a simplifying adapter for the GCE HttpHealthChecks.
func (*GCEHttpHealthChecks) Delete ¶
Delete the HttpHealthCheck referenced by key.
func (*GCEHttpHealthChecks) Get ¶
func (g *GCEHttpHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpHealthCheck, error)
Get the HttpHealthCheck named by key.
func (*GCEHttpHealthChecks) Insert ¶
func (g *GCEHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck) error
Insert HttpHealthCheck with key of value obj.
func (*GCEHttpHealthChecks) List ¶
func (g *GCEHttpHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpHealthCheck, error)
List all HttpHealthCheck objects.
func (*GCEHttpHealthChecks) Update ¶
func (g *GCEHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpHealthCheck) error
Update is a method on GCEHttpHealthChecks.
type GCEHttpsHealthChecks ¶
type GCEHttpsHealthChecks struct {
// contains filtered or unexported fields
}
GCEHttpsHealthChecks is a simplifying adapter for the GCE HttpsHealthChecks.
func (*GCEHttpsHealthChecks) Delete ¶
Delete the HttpsHealthCheck referenced by key.
func (*GCEHttpsHealthChecks) Get ¶
func (g *GCEHttpsHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpsHealthCheck, error)
Get the HttpsHealthCheck named by key.
func (*GCEHttpsHealthChecks) Insert ¶
func (g *GCEHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck) error
Insert HttpsHealthCheck with key of value obj.
func (*GCEHttpsHealthChecks) List ¶
func (g *GCEHttpsHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpsHealthCheck, error)
List all HttpsHealthCheck objects.
func (*GCEHttpsHealthChecks) Update ¶
func (g *GCEHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpsHealthCheck) error
Update is a method on GCEHttpsHealthChecks.
type GCEInstanceGroups ¶
type GCEInstanceGroups struct {
// contains filtered or unexported fields
}
GCEInstanceGroups is a simplifying adapter for the GCE InstanceGroups.
func (*GCEInstanceGroups) AddInstances ¶
func (g *GCEInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsAddInstancesRequest) error
AddInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) Delete ¶
Delete the InstanceGroup referenced by key.
func (*GCEInstanceGroups) Get ¶
func (g *GCEInstanceGroups) Get(ctx context.Context, key *meta.Key) (*ga.InstanceGroup, error)
Get the InstanceGroup named by key.
func (*GCEInstanceGroups) Insert ¶
func (g *GCEInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup) error
Insert InstanceGroup with key of value obj.
func (*GCEInstanceGroups) List ¶
func (g *GCEInstanceGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.InstanceGroup, error)
List all InstanceGroup objects.
func (*GCEInstanceGroups) ListInstances ¶
func (g *GCEInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsListInstancesRequest, fl *filter.F) ([]*ga.InstanceWithNamedPorts, error)
ListInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) RemoveInstances ¶
func (g *GCEInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsRemoveInstancesRequest) error
RemoveInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) SetNamedPorts ¶
func (g *GCEInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsSetNamedPortsRequest) error
SetNamedPorts is a method on GCEInstanceGroups.
type GCEInstances ¶
type GCEInstances struct {
// contains filtered or unexported fields
}
GCEInstances is a simplifying adapter for the GCE Instances.
func (*GCEInstances) AttachDisk ¶
func (g *GCEInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *ga.AttachedDisk) error
AttachDisk is a method on GCEInstances.
func (*GCEInstances) Delete ¶
Delete the Instance referenced by key.
func (*GCEInstances) DetachDisk ¶
DetachDisk is a method on GCEInstances.
func (*GCEInstances) Get ¶
Get the Instance named by key.
func (*GCEInstances) Insert ¶
Insert Instance with key of value obj.
type GCENetworkEndpointGroups ¶
type GCENetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCENetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCENetworkEndpointGroups) AggregatedList ¶
func (g *GCENetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCENetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a method on GCENetworkEndpointGroups.
func (*GCENetworkEndpointGroups) Delete ¶
Delete the NetworkEndpointGroup referenced by key.
func (*GCENetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a method on GCENetworkEndpointGroups.
func (*GCENetworkEndpointGroups) Get ¶
func (g *GCENetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*ga.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCENetworkEndpointGroups) Insert ¶
func (g *GCENetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCENetworkEndpointGroups) List ¶
func (g *GCENetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCENetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*ga.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCENetworkEndpointGroups.
type GCENetworks ¶
type GCENetworks struct {
// contains filtered or unexported fields
}
GCENetworks is a simplifying adapter for the GCE Networks.
func (*GCENetworks) Delete ¶
Delete the Network referenced by key.
func (*GCENetworks) Get ¶
Get the Network named by key.
func (*GCENetworks) Insert ¶
Insert Network with key of value obj.
type GCEProjects ¶
type GCEProjects struct {
// contains filtered or unexported fields
}
GCEProjects is a simplifying adapter for the GCE Projects.
func (*GCEProjects) Get ¶
Get a project by projectID.
type GCERegionBackendServices ¶
type GCERegionBackendServices struct {
// contains filtered or unexported fields
}
GCERegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCERegionBackendServices) Delete ¶
Delete the BackendService referenced by key.
func (*GCERegionBackendServices) Get ¶
func (g *GCERegionBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
Get the BackendService named by key.
func (*GCERegionBackendServices) GetHealth ¶
func (g *GCERegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
GetHealth is a method on GCERegionBackendServices.
func (*GCERegionBackendServices) Insert ¶
func (g *GCERegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
Insert BackendService with key of value obj.
func (*GCERegionBackendServices) List ¶
func (g *GCERegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*ga.BackendService, error)
List all BackendService objects.
func (*GCERegionBackendServices) Update ¶
func (g *GCERegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Update is a method on GCERegionBackendServices.
type GCERegionDisks ¶
type GCERegionDisks struct {
// contains filtered or unexported fields
}
GCERegionDisks is a simplifying adapter for the GCE RegionDisks.
func (*GCERegionDisks) Delete ¶
Delete the Disk referenced by key.
func (*GCERegionDisks) Get ¶
Get the Disk named by key.
func (*GCERegionDisks) Insert ¶
Insert Disk with key of value obj.
func (*GCERegionDisks) List ¶
List all Disk objects.
func (*GCERegionDisks) Resize ¶
func (g *GCERegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.RegionDisksResizeRequest) error
Resize is a method on GCERegionDisks.
type GCERegions ¶
type GCERegions struct {
// contains filtered or unexported fields
}
GCERegions is a simplifying adapter for the GCE Regions.
func (*GCERegions) Get ¶
Get the Region named by key.
type GCERoutes ¶
type GCERoutes struct {
// contains filtered or unexported fields
}
GCERoutes is a simplifying adapter for the GCE Routes.
func (*GCERoutes) Delete ¶
Delete the Route referenced by key.
func (*GCERoutes) Get ¶
Get the Route named by key.
func (*GCERoutes) Insert ¶
Insert Route with key of value obj.
type GCESslCertificates ¶
type GCESslCertificates struct {
// contains filtered or unexported fields
}
GCESslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCESslCertificates) Delete ¶
Delete the SslCertificate referenced by key.
func (*GCESslCertificates) Get ¶
func (g *GCESslCertificates) Get(ctx context.Context, key *meta.Key) (*ga.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCESslCertificates) Insert ¶
func (g *GCESslCertificates) Insert(ctx context.Context, key *meta.Key, obj *ga.SslCertificate) error
Insert SslCertificate with key of value obj.
func (*GCESslCertificates) List ¶
func (g *GCESslCertificates) List(ctx context.Context, fl *filter.F) ([]*ga.SslCertificate, error)
List all SslCertificate objects.
type GCESubnetworks ¶
type GCESubnetworks struct {
// contains filtered or unexported fields
}
GCESubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCESubnetworks) Delete ¶
Delete the Subnetwork referenced by key.
func (*GCESubnetworks) Get ¶
func (g *GCESubnetworks) Get(ctx context.Context, key *meta.Key) (*ga.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCESubnetworks) Insert ¶
func (g *GCESubnetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Subnetwork) error
Insert Subnetwork with key of value obj.
func (*GCESubnetworks) List ¶
func (g *GCESubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Subnetwork, error)
List all Subnetwork objects.
type GCETargetHttpProxies ¶
type GCETargetHttpProxies struct {
// contains filtered or unexported fields
}
GCETargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCETargetHttpProxies) Delete ¶
Delete the TargetHttpProxy referenced by key.
func (*GCETargetHttpProxies) Get ¶
func (g *GCETargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCETargetHttpProxies) Insert ¶
func (g *GCETargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy) error
Insert TargetHttpProxy with key of value obj.
func (*GCETargetHttpProxies) List ¶
func (g *GCETargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCETargetHttpProxies) SetUrlMap ¶
func (g *GCETargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
SetUrlMap is a method on GCETargetHttpProxies.
type GCETargetHttpsProxies ¶
type GCETargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCETargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCETargetHttpsProxies) Delete ¶
Delete the TargetHttpsProxy referenced by key.
func (*GCETargetHttpsProxies) Get ¶
func (g *GCETargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCETargetHttpsProxies) Insert ¶
func (g *GCETargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy) error
Insert TargetHttpsProxy with key of value obj.
func (*GCETargetHttpsProxies) List ¶
func (g *GCETargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCETargetHttpsProxies) SetSslCertificates ¶
func (g *GCETargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *ga.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a method on GCETargetHttpsProxies.
func (*GCETargetHttpsProxies) SetUrlMap ¶
func (g *GCETargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
SetUrlMap is a method on GCETargetHttpsProxies.
type GCETargetPools ¶
type GCETargetPools struct {
// contains filtered or unexported fields
}
GCETargetPools is a simplifying adapter for the GCE TargetPools.
func (*GCETargetPools) AddInstance ¶
func (g *GCETargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsAddInstanceRequest) error
AddInstance is a method on GCETargetPools.
func (*GCETargetPools) Delete ¶
Delete the TargetPool referenced by key.
func (*GCETargetPools) Get ¶
func (g *GCETargetPools) Get(ctx context.Context, key *meta.Key) (*ga.TargetPool, error)
Get the TargetPool named by key.
func (*GCETargetPools) Insert ¶
func (g *GCETargetPools) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetPool) error
Insert TargetPool with key of value obj.
func (*GCETargetPools) List ¶
func (g *GCETargetPools) List(ctx context.Context, region string, fl *filter.F) ([]*ga.TargetPool, error)
List all TargetPool objects.
func (*GCETargetPools) RemoveInstance ¶
func (g *GCETargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsRemoveInstanceRequest) error
RemoveInstance is a method on GCETargetPools.
type GCEUrlMaps ¶
type GCEUrlMaps struct {
// contains filtered or unexported fields
}
GCEUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEUrlMaps) Delete ¶
Delete the UrlMap referenced by key.
func (*GCEUrlMaps) Get ¶
Get the UrlMap named by key.
func (*GCEUrlMaps) Insert ¶
Insert UrlMap with key of value obj.
func (*GCEUrlMaps) List ¶
List all UrlMap objects.
type GCEZones ¶
type GCEZones struct {
// contains filtered or unexported fields
}
GCEZones is a simplifying adapter for the GCE Zones.
func (*GCEZones) Get ¶
Get the Zone named by key.
type GlobalAddresses ¶
type GlobalAddresses interface { Get(ctx context.Context, key *meta.Key) (*ga.Address, error) List(ctx context.Context, fl *filter.F) ([]*ga.Address, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error Delete(ctx context.Context, key *meta.Key) error }
GlobalAddresses is an interface that allows for mocking of GlobalAddresses.
type GlobalForwardingRules ¶
type GlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error) List(ctx context.Context, fl *filter.F) ([]*ga.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error Delete(ctx context.Context, key *meta.Key) error SetTarget(context.Context, *meta.Key, *ga.TargetReference) error }
GlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type HealthChecks ¶
type HealthChecks interface { Get(ctx context.Context, key *meta.Key) (*ga.HealthCheck, error) List(ctx context.Context, fl *filter.F) ([]*ga.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *ga.HealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *ga.HealthCheck) error }
HealthChecks is an interface that allows for mocking of HealthChecks.
type HttpHealthChecks ¶
type HttpHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*ga.HttpHealthCheck, error) List(ctx context.Context, fl *filter.F) ([]*ga.HttpHealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *ga.HttpHealthCheck) error }
HttpHealthChecks is an interface that allows for mocking of HttpHealthChecks.
type HttpsHealthChecks ¶
type HttpsHealthChecks interface { Get(ctx context.Context, key *meta.Key) (*ga.HttpsHealthCheck, error) List(ctx context.Context, fl *filter.F) ([]*ga.HttpsHealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *ga.HttpsHealthCheck) error }
HttpsHealthChecks is an interface that allows for mocking of HttpsHealthChecks.
type InstanceGroups ¶
type InstanceGroups interface { Get(ctx context.Context, key *meta.Key) (*ga.InstanceGroup, error) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.InstanceGroup, error) Insert(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup) error Delete(ctx context.Context, key *meta.Key) error AddInstances(context.Context, *meta.Key, *ga.InstanceGroupsAddInstancesRequest) error ListInstances(context.Context, *meta.Key, *ga.InstanceGroupsListInstancesRequest, *filter.F) ([]*ga.InstanceWithNamedPorts, error) RemoveInstances(context.Context, *meta.Key, *ga.InstanceGroupsRemoveInstancesRequest) error SetNamedPorts(context.Context, *meta.Key, *ga.InstanceGroupsSetNamedPortsRequest) error }
InstanceGroups is an interface that allows for mocking of InstanceGroups.
type Instances ¶
type Instances interface { Get(ctx context.Context, key *meta.Key) (*ga.Instance, error) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Instance) error Delete(ctx context.Context, key *meta.Key) error AttachDisk(context.Context, *meta.Key, *ga.AttachedDisk) error DetachDisk(context.Context, *meta.Key, string) error }
Instances is an interface that allows for mocking of Instances.
type MinimumRateLimiter ¶
type MinimumRateLimiter struct { // RateLimiter is the underlying ratelimiter which is called after the mininum time is reacehd. RateLimiter RateLimiter // Minimum is the minimum wait time before the underlying ratelimiter is called. Minimum time.Duration }
MinimumRateLimiter wraps a RateLimiter and will only call its Accept until the minimum duration has been met or the context is cancelled.
func (*MinimumRateLimiter) Accept ¶
func (m *MinimumRateLimiter) Accept(ctx context.Context, key *RateLimitKey) error
Accept blocks on the minimum duration and context. Once the minimum duration is met, the func is blocked on the underlying ratelimiter.
type MockAddresses ¶
type MockAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAddresses) (bool, *ga.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAddresses) (bool, []*ga.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Address, m *MockAddresses) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAddresses) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAddresses) (bool, map[string][]*ga.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAddresses is the mock for Addresses.
func NewMockAddresses ¶
func NewMockAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockAddresses
NewMockAddresses returns a new mock for Addresses.
func (*MockAddresses) AggregatedList ¶
func (m *MockAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockAddresses) Delete ¶
Delete is a mock for deleting the object.
func (*MockAddresses) Get ¶
Get returns the object from the mock.
func (*MockAddresses) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockAddresses) List ¶
func (m *MockAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Address, error)
List all of the objects in the mock in the given region.
func (*MockAddresses) Obj ¶
func (m *MockAddresses) Obj(o *ga.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockAddressesObj ¶
type MockAddressesObj struct {
Obj interface{}
}
MockAddressesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockAddressesObj) ToAlpha ¶
func (m *MockAddressesObj) ToAlpha() *alpha.Address
ToAlpha retrieves the given version of the object.
func (*MockAddressesObj) ToBeta ¶
func (m *MockAddressesObj) ToBeta() *beta.Address
ToBeta retrieves the given version of the object.
func (*MockAddressesObj) ToGA ¶
func (m *MockAddressesObj) ToGA() *ga.Address
ToGA retrieves the given version of the object.
type MockAlphaAddresses ¶
type MockAlphaAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaAddresses) (bool, *alpha.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaAddresses) (bool, []*alpha.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.Address, m *MockAlphaAddresses) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaAddresses) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaAddresses) (bool, map[string][]*alpha.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaAddresses is the mock for Addresses.
func NewMockAlphaAddresses ¶
func NewMockAlphaAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockAlphaAddresses
NewMockAlphaAddresses returns a new mock for Addresses.
func (*MockAlphaAddresses) AggregatedList ¶
func (m *MockAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaAddresses) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaAddresses) Get ¶
Get returns the object from the mock.
func (*MockAlphaAddresses) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockAlphaAddresses) List ¶
func (m *MockAlphaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Address, error)
List all of the objects in the mock in the given region.
func (*MockAlphaAddresses) Obj ¶
func (m *MockAlphaAddresses) Obj(o *alpha.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockAlphaBackendServices ¶
type MockAlphaBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaBackendServices) (bool, *alpha.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaBackendServices) (bool, []*alpha.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.BackendService, m *MockAlphaBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaBackendServices) (bool, error) SetSecurityPolicyHook func(context.Context, *meta.Key, *alpha.SecurityPolicyReference, *MockAlphaBackendServices) error UpdateHook func(context.Context, *meta.Key, *alpha.BackendService, *MockAlphaBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaBackendServices is the mock for BackendServices.
func NewMockAlphaBackendServices ¶
func NewMockAlphaBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockAlphaBackendServices
NewMockAlphaBackendServices returns a new mock for BackendServices.
func (*MockAlphaBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaBackendServices) Get ¶
func (m *MockAlphaBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
Get returns the object from the mock.
func (*MockAlphaBackendServices) Insert ¶
func (m *MockAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaBackendServices) List ¶
func (m *MockAlphaBackendServices) List(ctx context.Context, fl *filter.F) ([]*alpha.BackendService, error)
List all of the objects in the mock.
func (*MockAlphaBackendServices) Obj ¶
func (m *MockAlphaBackendServices) Obj(o *alpha.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockAlphaBackendServices) SetSecurityPolicy ¶
func (m *MockAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *alpha.SecurityPolicyReference) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockAlphaBackendServices) Update ¶
func (m *MockAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
Update is a mock for the corresponding method.
type MockAlphaForwardingRules ¶
type MockAlphaForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaForwardingRules) (bool, *alpha.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaForwardingRules) (bool, []*alpha.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule, m *MockAlphaForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *alpha.TargetReference, *MockAlphaForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaForwardingRules is the mock for ForwardingRules.
func NewMockAlphaForwardingRules ¶
func NewMockAlphaForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockAlphaForwardingRules
NewMockAlphaForwardingRules returns a new mock for ForwardingRules.
func (*MockAlphaForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaForwardingRules) Get ¶
func (m *MockAlphaForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
Get returns the object from the mock.
func (*MockAlphaForwardingRules) Insert ¶
func (m *MockAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaForwardingRules) List ¶
func (m *MockAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockAlphaForwardingRules) Obj ¶
func (m *MockAlphaForwardingRules) Obj(o *alpha.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockAlphaForwardingRules) SetTarget ¶
func (m *MockAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockAlphaGlobalAddresses ¶
type MockAlphaGlobalAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalAddresses) (bool, *alpha.Address, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaGlobalAddresses) (bool, []*alpha.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.Address, m *MockAlphaGlobalAddresses) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalAddresses) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaGlobalAddresses is the mock for GlobalAddresses.
func NewMockAlphaGlobalAddresses ¶
func NewMockAlphaGlobalAddresses(pr ProjectRouter, objs map[meta.Key]*MockGlobalAddressesObj) *MockAlphaGlobalAddresses
NewMockAlphaGlobalAddresses returns a new mock for GlobalAddresses.
func (*MockAlphaGlobalAddresses) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaGlobalAddresses) Get ¶
Get returns the object from the mock.
func (*MockAlphaGlobalAddresses) Insert ¶
func (m *MockAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaGlobalAddresses) List ¶
func (m *MockAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F) ([]*alpha.Address, error)
List all of the objects in the mock.
func (*MockAlphaGlobalAddresses) Obj ¶
func (m *MockAlphaGlobalAddresses) Obj(o *alpha.Address) *MockGlobalAddressesObj
Obj wraps the object for use in the mock.
type MockAlphaGlobalForwardingRules ¶
type MockAlphaGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalForwardingRules) (bool, *alpha.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaGlobalForwardingRules) (bool, []*alpha.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule, m *MockAlphaGlobalForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *alpha.TargetReference, *MockAlphaGlobalForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockAlphaGlobalForwardingRules ¶
func NewMockAlphaGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockAlphaGlobalForwardingRules
NewMockAlphaGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockAlphaGlobalForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaGlobalForwardingRules) Get ¶
func (m *MockAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*alpha.ForwardingRule, error)
Get returns the object from the mock.
func (*MockAlphaGlobalForwardingRules) Insert ¶
func (m *MockAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *alpha.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaGlobalForwardingRules) List ¶
func (m *MockAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*alpha.ForwardingRule, error)
List all of the objects in the mock.
func (*MockAlphaGlobalForwardingRules) Obj ¶
func (m *MockAlphaGlobalForwardingRules) Obj(o *alpha.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockAlphaGlobalForwardingRules) SetTarget ¶
func (m *MockAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *alpha.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockAlphaHealthChecks ¶
type MockAlphaHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaHealthChecks) (bool, *alpha.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaHealthChecks) (bool, []*alpha.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck, m *MockAlphaHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *alpha.HealthCheck, *MockAlphaHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaHealthChecks is the mock for HealthChecks.
func NewMockAlphaHealthChecks ¶
func NewMockAlphaHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockAlphaHealthChecks
NewMockAlphaHealthChecks returns a new mock for HealthChecks.
func (*MockAlphaHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaHealthChecks) Get ¶
func (m *MockAlphaHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
Get returns the object from the mock.
func (*MockAlphaHealthChecks) Insert ¶
func (m *MockAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaHealthChecks) List ¶
func (m *MockAlphaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*alpha.HealthCheck, error)
List all of the objects in the mock.
func (*MockAlphaHealthChecks) Obj ¶
func (m *MockAlphaHealthChecks) Obj(o *alpha.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockAlphaHealthChecks) Update ¶
func (m *MockAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
Update is a mock for the corresponding method.
type MockAlphaInstances ¶
type MockAlphaInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaInstances) (bool, *alpha.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockAlphaInstances) (bool, []*alpha.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.Instance, m *MockAlphaInstances) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaInstances) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *alpha.AttachedDisk, *MockAlphaInstances) error DetachDiskHook func(context.Context, *meta.Key, string, *MockAlphaInstances) error UpdateNetworkInterfaceHook func(context.Context, *meta.Key, string, *alpha.NetworkInterface, *MockAlphaInstances) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaInstances is the mock for Instances.
func NewMockAlphaInstances ¶
func NewMockAlphaInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockAlphaInstances
NewMockAlphaInstances returns a new mock for Instances.
func (*MockAlphaInstances) AttachDisk ¶
func (m *MockAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *alpha.AttachedDisk) error
AttachDisk is a mock for the corresponding method.
func (*MockAlphaInstances) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaInstances) DetachDisk ¶
DetachDisk is a mock for the corresponding method.
func (*MockAlphaInstances) Get ¶
Get returns the object from the mock.
func (*MockAlphaInstances) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockAlphaInstances) List ¶
func (m *MockAlphaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockAlphaInstances) Obj ¶
func (m *MockAlphaInstances) Obj(o *alpha.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
func (*MockAlphaInstances) UpdateNetworkInterface ¶
func (m *MockAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *alpha.NetworkInterface) error
UpdateNetworkInterface is a mock for the corresponding method.
type MockAlphaNetworkEndpointGroups ¶
type MockAlphaNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkEndpointGroups) (bool, *alpha.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockAlphaNetworkEndpointGroups) (bool, []*alpha.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup, m *MockAlphaNetworkEndpointGroups) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkEndpointGroups) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaNetworkEndpointGroups) (bool, map[string][]*alpha.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsAttachEndpointsRequest, *MockAlphaNetworkEndpointGroups) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsDetachEndpointsRequest, *MockAlphaNetworkEndpointGroups) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *alpha.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockAlphaNetworkEndpointGroups) ([]*alpha.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockAlphaNetworkEndpointGroups ¶
func NewMockAlphaNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockAlphaNetworkEndpointGroups
NewMockAlphaNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockAlphaNetworkEndpointGroups) AggregatedList ¶
func (m *MockAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*alpha.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Get ¶
func (m *MockAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*alpha.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockAlphaNetworkEndpointGroups) Insert ¶
func (m *MockAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *alpha.NetworkEndpointGroup) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaNetworkEndpointGroups) List ¶
func (m *MockAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*alpha.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockAlphaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *alpha.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*alpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Obj ¶
func (m *MockAlphaNetworkEndpointGroups) Obj(o *alpha.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockAlphaNetworks ¶
type MockAlphaNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworks) (bool, *alpha.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaNetworks) (bool, []*alpha.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.Network, m *MockAlphaNetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaNetworks is the mock for Networks.
func NewMockAlphaNetworks ¶
func NewMockAlphaNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockAlphaNetworks
NewMockAlphaNetworks returns a new mock for Networks.
func (*MockAlphaNetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaNetworks) Get ¶
Get returns the object from the mock.
func (*MockAlphaNetworks) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockAlphaNetworks) List ¶
List all of the objects in the mock.
func (*MockAlphaNetworks) Obj ¶
func (m *MockAlphaNetworks) Obj(o *alpha.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockAlphaRegionBackendServices ¶
type MockAlphaRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionBackendServices) (bool, *alpha.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionBackendServices) (bool, []*alpha.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.BackendService, m *MockAlphaRegionBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionBackendServices) (bool, error) GetHealthHook func(context.Context, *meta.Key, *alpha.ResourceGroupReference, *MockAlphaRegionBackendServices) (*alpha.BackendServiceGroupHealth, error) UpdateHook func(context.Context, *meta.Key, *alpha.BackendService, *MockAlphaRegionBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionBackendServices is the mock for RegionBackendServices.
func NewMockAlphaRegionBackendServices ¶
func NewMockAlphaRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockAlphaRegionBackendServices
NewMockAlphaRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockAlphaRegionBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionBackendServices) Get ¶
func (m *MockAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*alpha.BackendService, error)
Get returns the object from the mock.
func (*MockAlphaRegionBackendServices) GetHealth ¶
func (m *MockAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *alpha.ResourceGroupReference) (*alpha.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockAlphaRegionBackendServices) Insert ¶
func (m *MockAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *alpha.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionBackendServices) List ¶
func (m *MockAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionBackendServices) Obj ¶
func (m *MockAlphaRegionBackendServices) Obj(o *alpha.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionBackendServices) Update ¶
func (m *MockAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *alpha.BackendService) error
Update is a mock for the corresponding method.
type MockAlphaRegionHealthChecks ¶
type MockAlphaRegionHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionHealthChecks) (bool, *alpha.HealthCheck, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionHealthChecks) (bool, []*alpha.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck, m *MockAlphaRegionHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *alpha.HealthCheck, *MockAlphaRegionHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionHealthChecks is the mock for RegionHealthChecks.
func NewMockAlphaRegionHealthChecks ¶
func NewMockAlphaRegionHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockRegionHealthChecksObj) *MockAlphaRegionHealthChecks
NewMockAlphaRegionHealthChecks returns a new mock for RegionHealthChecks.
func (*MockAlphaRegionHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionHealthChecks) Get ¶
func (m *MockAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*alpha.HealthCheck, error)
Get returns the object from the mock.
func (*MockAlphaRegionHealthChecks) Insert ¶
func (m *MockAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *alpha.HealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionHealthChecks) List ¶
func (m *MockAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.HealthCheck, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionHealthChecks) Obj ¶
func (m *MockAlphaRegionHealthChecks) Obj(o *alpha.HealthCheck) *MockRegionHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionHealthChecks) Update ¶
func (m *MockAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *alpha.HealthCheck) error
Update is a mock for the corresponding method.
type MockAlphaRegionSslCertificates ¶
type MockAlphaRegionSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionSslCertificates) (bool, *alpha.SslCertificate, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionSslCertificates) (bool, []*alpha.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate, m *MockAlphaRegionSslCertificates) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionSslCertificates) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionSslCertificates is the mock for RegionSslCertificates.
func NewMockAlphaRegionSslCertificates ¶
func NewMockAlphaRegionSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockRegionSslCertificatesObj) *MockAlphaRegionSslCertificates
NewMockAlphaRegionSslCertificates returns a new mock for RegionSslCertificates.
func (*MockAlphaRegionSslCertificates) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionSslCertificates) Get ¶
func (m *MockAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
Get returns the object from the mock.
func (*MockAlphaRegionSslCertificates) Insert ¶
func (m *MockAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionSslCertificates) List ¶
func (m *MockAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.SslCertificate, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionSslCertificates) Obj ¶
func (m *MockAlphaRegionSslCertificates) Obj(o *alpha.SslCertificate) *MockRegionSslCertificatesObj
Obj wraps the object for use in the mock.
type MockAlphaRegionTargetHttpProxies ¶
type MockAlphaRegionTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpProxies) (bool, *alpha.TargetHttpProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionTargetHttpProxies) (bool, []*alpha.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy, m *MockAlphaRegionTargetHttpProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpProxies) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *alpha.UrlMapReference, *MockAlphaRegionTargetHttpProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionTargetHttpProxies is the mock for RegionTargetHttpProxies.
func NewMockAlphaRegionTargetHttpProxies ¶
func NewMockAlphaRegionTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpProxiesObj) *MockAlphaRegionTargetHttpProxies
NewMockAlphaRegionTargetHttpProxies returns a new mock for RegionTargetHttpProxies.
func (*MockAlphaRegionTargetHttpProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionTargetHttpProxies) Get ¶
func (m *MockAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockAlphaRegionTargetHttpProxies) Insert ¶
func (m *MockAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionTargetHttpProxies) List ¶
func (m *MockAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionTargetHttpProxies) Obj ¶
func (m *MockAlphaRegionTargetHttpProxies) Obj(o *alpha.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionTargetHttpProxies) SetUrlMap ¶
func (m *MockAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaRegionTargetHttpsProxies ¶
type MockAlphaRegionTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpsProxies) (bool, *alpha.TargetHttpsProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionTargetHttpsProxies) (bool, []*alpha.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy, m *MockAlphaRegionTargetHttpsProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpsProxies) (bool, error) SetSslCertificatesHook func(context.Context, *meta.Key, *alpha.RegionTargetHttpsProxiesSetSslCertificatesRequest, *MockAlphaRegionTargetHttpsProxies) error SetUrlMapHook func(context.Context, *meta.Key, *alpha.UrlMapReference, *MockAlphaRegionTargetHttpsProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionTargetHttpsProxies is the mock for RegionTargetHttpsProxies.
func NewMockAlphaRegionTargetHttpsProxies ¶
func NewMockAlphaRegionTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpsProxiesObj) *MockAlphaRegionTargetHttpsProxies
NewMockAlphaRegionTargetHttpsProxies returns a new mock for RegionTargetHttpsProxies.
func (*MockAlphaRegionTargetHttpsProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionTargetHttpsProxies) Get ¶
func (m *MockAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockAlphaRegionTargetHttpsProxies) Insert ¶
func (m *MockAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionTargetHttpsProxies) List ¶
func (m *MockAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionTargetHttpsProxies) Obj ¶
func (m *MockAlphaRegionTargetHttpsProxies) Obj(o *alpha.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionTargetHttpsProxies) SetSslCertificates ¶
func (m *MockAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *alpha.RegionTargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a mock for the corresponding method.
func (*MockAlphaRegionTargetHttpsProxies) SetUrlMap ¶
func (m *MockAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaRegionUrlMaps ¶
type MockAlphaRegionUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionUrlMaps) (bool, *alpha.UrlMap, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionUrlMaps) (bool, []*alpha.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.UrlMap, m *MockAlphaRegionUrlMaps) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionUrlMaps) (bool, error) UpdateHook func(context.Context, *meta.Key, *alpha.UrlMap, *MockAlphaRegionUrlMaps) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionUrlMaps is the mock for RegionUrlMaps.
func NewMockAlphaRegionUrlMaps ¶
func NewMockAlphaRegionUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockRegionUrlMapsObj) *MockAlphaRegionUrlMaps
NewMockAlphaRegionUrlMaps returns a new mock for RegionUrlMaps.
func (*MockAlphaRegionUrlMaps) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaRegionUrlMaps) Get ¶
Get returns the object from the mock.
func (*MockAlphaRegionUrlMaps) Insert ¶
func (m *MockAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionUrlMaps) List ¶
func (m *MockAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.UrlMap, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionUrlMaps) Obj ¶
func (m *MockAlphaRegionUrlMaps) Obj(o *alpha.UrlMap) *MockRegionUrlMapsObj
Obj wraps the object for use in the mock.
type MockAlphaSslCertificates ¶
type MockAlphaSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaSslCertificates) (bool, *alpha.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaSslCertificates) (bool, []*alpha.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate, m *MockAlphaSslCertificates) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaSslCertificates) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaSslCertificates is the mock for SslCertificates.
func NewMockAlphaSslCertificates ¶
func NewMockAlphaSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockAlphaSslCertificates
NewMockAlphaSslCertificates returns a new mock for SslCertificates.
func (*MockAlphaSslCertificates) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaSslCertificates) Get ¶
func (m *MockAlphaSslCertificates) Get(ctx context.Context, key *meta.Key) (*alpha.SslCertificate, error)
Get returns the object from the mock.
func (*MockAlphaSslCertificates) Insert ¶
func (m *MockAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *alpha.SslCertificate) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaSslCertificates) List ¶
func (m *MockAlphaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*alpha.SslCertificate, error)
List all of the objects in the mock.
func (*MockAlphaSslCertificates) Obj ¶
func (m *MockAlphaSslCertificates) Obj(o *alpha.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockAlphaSubnetworks ¶
type MockAlphaSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaSubnetworks) (bool, *alpha.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaSubnetworks) (bool, []*alpha.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork, m *MockAlphaSubnetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaSubnetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaSubnetworks is the mock for Subnetworks.
func NewMockAlphaSubnetworks ¶
func NewMockAlphaSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockAlphaSubnetworks
NewMockAlphaSubnetworks returns a new mock for Subnetworks.
func (*MockAlphaSubnetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaSubnetworks) Get ¶
func (m *MockAlphaSubnetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Subnetwork, error)
Get returns the object from the mock.
func (*MockAlphaSubnetworks) Insert ¶
func (m *MockAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Subnetwork) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaSubnetworks) List ¶
func (m *MockAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockAlphaSubnetworks) Obj ¶
func (m *MockAlphaSubnetworks) Obj(o *alpha.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
type MockAlphaTargetHttpProxies ¶
type MockAlphaTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpProxies) (bool, *alpha.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaTargetHttpProxies) (bool, []*alpha.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy, m *MockAlphaTargetHttpProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpProxies) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *alpha.UrlMapReference, *MockAlphaTargetHttpProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockAlphaTargetHttpProxies ¶
func NewMockAlphaTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockAlphaTargetHttpProxies
NewMockAlphaTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockAlphaTargetHttpProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaTargetHttpProxies) Get ¶
func (m *MockAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockAlphaTargetHttpProxies) Insert ¶
func (m *MockAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaTargetHttpProxies) List ¶
func (m *MockAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockAlphaTargetHttpProxies) Obj ¶
func (m *MockAlphaTargetHttpProxies) Obj(o *alpha.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaTargetHttpProxies) SetUrlMap ¶
func (m *MockAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaTargetHttpsProxies ¶
type MockAlphaTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpsProxies) (bool, *alpha.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaTargetHttpsProxies) (bool, []*alpha.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy, m *MockAlphaTargetHttpsProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpsProxies) (bool, error) SetSslCertificatesHook func(context.Context, *meta.Key, *alpha.TargetHttpsProxiesSetSslCertificatesRequest, *MockAlphaTargetHttpsProxies) error SetUrlMapHook func(context.Context, *meta.Key, *alpha.UrlMapReference, *MockAlphaTargetHttpsProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockAlphaTargetHttpsProxies ¶
func NewMockAlphaTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockAlphaTargetHttpsProxies
NewMockAlphaTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockAlphaTargetHttpsProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaTargetHttpsProxies) Get ¶
func (m *MockAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*alpha.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockAlphaTargetHttpsProxies) Insert ¶
func (m *MockAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *alpha.TargetHttpsProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaTargetHttpsProxies) List ¶
func (m *MockAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*alpha.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockAlphaTargetHttpsProxies) Obj ¶
func (m *MockAlphaTargetHttpsProxies) Obj(o *alpha.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaTargetHttpsProxies) SetSslCertificates ¶
func (m *MockAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *alpha.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a mock for the corresponding method.
func (*MockAlphaTargetHttpsProxies) SetUrlMap ¶
func (m *MockAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaUrlMaps ¶
type MockAlphaUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaUrlMaps) (bool, *alpha.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaUrlMaps) (bool, []*alpha.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *alpha.UrlMap, m *MockAlphaUrlMaps) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaUrlMaps) (bool, error) UpdateHook func(context.Context, *meta.Key, *alpha.UrlMap, *MockAlphaUrlMaps) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaUrlMaps is the mock for UrlMaps.
func NewMockAlphaUrlMaps ¶
func NewMockAlphaUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockAlphaUrlMaps
NewMockAlphaUrlMaps returns a new mock for UrlMaps.
func (*MockAlphaUrlMaps) Delete ¶
Delete is a mock for deleting the object.
func (*MockAlphaUrlMaps) Get ¶
Get returns the object from the mock.
func (*MockAlphaUrlMaps) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockAlphaUrlMaps) List ¶
List all of the objects in the mock.
func (*MockAlphaUrlMaps) Obj ¶
func (m *MockAlphaUrlMaps) Obj(o *alpha.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockBackendServices ¶
type MockBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBackendServices) (bool, *ga.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBackendServices) (bool, []*ga.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.BackendService, m *MockBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBackendServices) (bool, error) GetHealthHook func(context.Context, *meta.Key, *ga.ResourceGroupReference, *MockBackendServices) (*ga.BackendServiceGroupHealth, error) PatchHook func(context.Context, *meta.Key, *ga.BackendService, *MockBackendServices) error UpdateHook func(context.Context, *meta.Key, *ga.BackendService, *MockBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBackendServices is the mock for BackendServices.
func NewMockBackendServices ¶
func NewMockBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockBackendServices
NewMockBackendServices returns a new mock for BackendServices.
func (*MockBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockBackendServices) Get ¶
func (m *MockBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
Get returns the object from the mock.
func (*MockBackendServices) GetHealth ¶
func (m *MockBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockBackendServices) Insert ¶
func (m *MockBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockBackendServices) List ¶
func (m *MockBackendServices) List(ctx context.Context, fl *filter.F) ([]*ga.BackendService, error)
List all of the objects in the mock.
func (*MockBackendServices) Obj ¶
func (m *MockBackendServices) Obj(o *ga.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBackendServices) Patch ¶
func (m *MockBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Patch is a mock for the corresponding method.
func (*MockBackendServices) Update ¶
func (m *MockBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Update is a mock for the corresponding method.
type MockBackendServicesObj ¶
type MockBackendServicesObj struct {
Obj interface{}
}
MockBackendServicesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockBackendServicesObj) ToAlpha ¶
func (m *MockBackendServicesObj) ToAlpha() *alpha.BackendService
ToAlpha retrieves the given version of the object.
func (*MockBackendServicesObj) ToBeta ¶
func (m *MockBackendServicesObj) ToBeta() *beta.BackendService
ToBeta retrieves the given version of the object.
func (*MockBackendServicesObj) ToGA ¶
func (m *MockBackendServicesObj) ToGA() *ga.BackendService
ToGA retrieves the given version of the object.
type MockBetaAddresses ¶
type MockBetaAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaAddresses) (bool, *beta.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaAddresses) (bool, []*beta.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.Address, m *MockBetaAddresses) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaAddresses) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaAddresses) (bool, map[string][]*beta.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaAddresses is the mock for Addresses.
func NewMockBetaAddresses ¶
func NewMockBetaAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockBetaAddresses
NewMockBetaAddresses returns a new mock for Addresses.
func (*MockBetaAddresses) AggregatedList ¶
func (m *MockBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaAddresses) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaAddresses) Get ¶
Get returns the object from the mock.
func (*MockBetaAddresses) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockBetaAddresses) List ¶
func (m *MockBetaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Address, error)
List all of the objects in the mock in the given region.
func (*MockBetaAddresses) Obj ¶
func (m *MockBetaAddresses) Obj(o *beta.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockBetaBackendServices ¶
type MockBetaBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaBackendServices) (bool, *beta.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaBackendServices) (bool, []*beta.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.BackendService, m *MockBetaBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaBackendServices) (bool, error) SetSecurityPolicyHook func(context.Context, *meta.Key, *beta.SecurityPolicyReference, *MockBetaBackendServices) error UpdateHook func(context.Context, *meta.Key, *beta.BackendService, *MockBetaBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaBackendServices is the mock for BackendServices.
func NewMockBetaBackendServices ¶
func NewMockBetaBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockBetaBackendServices
NewMockBetaBackendServices returns a new mock for BackendServices.
func (*MockBetaBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaBackendServices) Get ¶
func (m *MockBetaBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
Get returns the object from the mock.
func (*MockBetaBackendServices) Insert ¶
func (m *MockBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaBackendServices) List ¶
func (m *MockBetaBackendServices) List(ctx context.Context, fl *filter.F) ([]*beta.BackendService, error)
List all of the objects in the mock.
func (*MockBetaBackendServices) Obj ¶
func (m *MockBetaBackendServices) Obj(o *beta.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBetaBackendServices) SetSecurityPolicy ¶
func (m *MockBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyReference) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockBetaBackendServices) Update ¶
func (m *MockBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
Update is a mock for the corresponding method.
type MockBetaForwardingRules ¶
type MockBetaForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaForwardingRules) (bool, *beta.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaForwardingRules) (bool, []*beta.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule, m *MockBetaForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *beta.TargetReference, *MockBetaForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaForwardingRules is the mock for ForwardingRules.
func NewMockBetaForwardingRules ¶
func NewMockBetaForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockBetaForwardingRules
NewMockBetaForwardingRules returns a new mock for ForwardingRules.
func (*MockBetaForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaForwardingRules) Get ¶
func (m *MockBetaForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
Get returns the object from the mock.
func (*MockBetaForwardingRules) Insert ¶
func (m *MockBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaForwardingRules) List ¶
func (m *MockBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*beta.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockBetaForwardingRules) Obj ¶
func (m *MockBetaForwardingRules) Obj(o *beta.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockBetaForwardingRules) SetTarget ¶
func (m *MockBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockBetaGlobalForwardingRules ¶
type MockBetaGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalForwardingRules) (bool, *beta.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaGlobalForwardingRules) (bool, []*beta.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule, m *MockBetaGlobalForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *beta.TargetReference, *MockBetaGlobalForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockBetaGlobalForwardingRules ¶
func NewMockBetaGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockBetaGlobalForwardingRules
NewMockBetaGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockBetaGlobalForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaGlobalForwardingRules) Get ¶
func (m *MockBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*beta.ForwardingRule, error)
Get returns the object from the mock.
func (*MockBetaGlobalForwardingRules) Insert ¶
func (m *MockBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *beta.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaGlobalForwardingRules) List ¶
func (m *MockBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*beta.ForwardingRule, error)
List all of the objects in the mock.
func (*MockBetaGlobalForwardingRules) Obj ¶
func (m *MockBetaGlobalForwardingRules) Obj(o *beta.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockBetaGlobalForwardingRules) SetTarget ¶
func (m *MockBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *beta.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockBetaHealthChecks ¶
type MockBetaHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaHealthChecks) (bool, *beta.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaHealthChecks) (bool, []*beta.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.HealthCheck, m *MockBetaHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *beta.HealthCheck, *MockBetaHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaHealthChecks is the mock for HealthChecks.
func NewMockBetaHealthChecks ¶
func NewMockBetaHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockBetaHealthChecks
NewMockBetaHealthChecks returns a new mock for HealthChecks.
func (*MockBetaHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaHealthChecks) Get ¶
func (m *MockBetaHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
Get returns the object from the mock.
func (*MockBetaHealthChecks) Insert ¶
func (m *MockBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaHealthChecks) List ¶
func (m *MockBetaHealthChecks) List(ctx context.Context, fl *filter.F) ([]*beta.HealthCheck, error)
List all of the objects in the mock.
func (*MockBetaHealthChecks) Obj ¶
func (m *MockBetaHealthChecks) Obj(o *beta.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockBetaHealthChecks) Update ¶
func (m *MockBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
Update is a mock for the corresponding method.
type MockBetaInstances ¶
type MockBetaInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaInstances) (bool, *beta.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockBetaInstances) (bool, []*beta.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.Instance, m *MockBetaInstances) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaInstances) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *beta.AttachedDisk, *MockBetaInstances) error DetachDiskHook func(context.Context, *meta.Key, string, *MockBetaInstances) error UpdateNetworkInterfaceHook func(context.Context, *meta.Key, string, *beta.NetworkInterface, *MockBetaInstances) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaInstances is the mock for Instances.
func NewMockBetaInstances ¶
func NewMockBetaInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockBetaInstances
NewMockBetaInstances returns a new mock for Instances.
func (*MockBetaInstances) AttachDisk ¶
func (m *MockBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *beta.AttachedDisk) error
AttachDisk is a mock for the corresponding method.
func (*MockBetaInstances) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaInstances) DetachDisk ¶
DetachDisk is a mock for the corresponding method.
func (*MockBetaInstances) Get ¶
Get returns the object from the mock.
func (*MockBetaInstances) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockBetaInstances) List ¶
func (m *MockBetaInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockBetaInstances) Obj ¶
func (m *MockBetaInstances) Obj(o *beta.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
func (*MockBetaInstances) UpdateNetworkInterface ¶
func (m *MockBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *beta.NetworkInterface) error
UpdateNetworkInterface is a mock for the corresponding method.
type MockBetaNetworkEndpointGroups ¶
type MockBetaNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworkEndpointGroups) (bool, *beta.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockBetaNetworkEndpointGroups) (bool, []*beta.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup, m *MockBetaNetworkEndpointGroups) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworkEndpointGroups) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaNetworkEndpointGroups) (bool, map[string][]*beta.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *beta.NetworkEndpointGroupsAttachEndpointsRequest, *MockBetaNetworkEndpointGroups) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *beta.NetworkEndpointGroupsDetachEndpointsRequest, *MockBetaNetworkEndpointGroups) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *beta.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockBetaNetworkEndpointGroups) ([]*beta.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockBetaNetworkEndpointGroups ¶
func NewMockBetaNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockBetaNetworkEndpointGroups
NewMockBetaNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockBetaNetworkEndpointGroups) AggregatedList ¶
func (m *MockBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*beta.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Get ¶
func (m *MockBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*beta.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockBetaNetworkEndpointGroups) Insert ¶
func (m *MockBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *beta.NetworkEndpointGroup) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaNetworkEndpointGroups) List ¶
func (m *MockBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*beta.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockBetaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *beta.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*beta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Obj ¶
func (m *MockBetaNetworkEndpointGroups) Obj(o *beta.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockBetaNetworks ¶
type MockBetaNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworks) (bool, *beta.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaNetworks) (bool, []*beta.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.Network, m *MockBetaNetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaNetworks is the mock for Networks.
func NewMockBetaNetworks ¶
func NewMockBetaNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockBetaNetworks
NewMockBetaNetworks returns a new mock for Networks.
func (*MockBetaNetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaNetworks) Get ¶
Get returns the object from the mock.
func (*MockBetaNetworks) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockBetaNetworks) List ¶
List all of the objects in the mock.
func (*MockBetaNetworks) Obj ¶
func (m *MockBetaNetworks) Obj(o *beta.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockBetaRegionBackendServices ¶
type MockBetaRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionBackendServices) (bool, *beta.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionBackendServices) (bool, []*beta.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.BackendService, m *MockBetaRegionBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionBackendServices) (bool, error) GetHealthHook func(context.Context, *meta.Key, *beta.ResourceGroupReference, *MockBetaRegionBackendServices) (*beta.BackendServiceGroupHealth, error) UpdateHook func(context.Context, *meta.Key, *beta.BackendService, *MockBetaRegionBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionBackendServices is the mock for RegionBackendServices.
func NewMockBetaRegionBackendServices ¶
func NewMockBetaRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockBetaRegionBackendServices
NewMockBetaRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockBetaRegionBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionBackendServices) Get ¶
func (m *MockBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*beta.BackendService, error)
Get returns the object from the mock.
func (*MockBetaRegionBackendServices) GetHealth ¶
func (m *MockBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *beta.ResourceGroupReference) (*beta.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockBetaRegionBackendServices) Insert ¶
func (m *MockBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *beta.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionBackendServices) List ¶
func (m *MockBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*beta.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionBackendServices) Obj ¶
func (m *MockBetaRegionBackendServices) Obj(o *beta.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionBackendServices) Update ¶
func (m *MockBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *beta.BackendService) error
Update is a mock for the corresponding method.
type MockBetaRegionHealthChecks ¶
type MockBetaRegionHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionHealthChecks) (bool, *beta.HealthCheck, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionHealthChecks) (bool, []*beta.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.HealthCheck, m *MockBetaRegionHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *beta.HealthCheck, *MockBetaRegionHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionHealthChecks is the mock for RegionHealthChecks.
func NewMockBetaRegionHealthChecks ¶
func NewMockBetaRegionHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockRegionHealthChecksObj) *MockBetaRegionHealthChecks
NewMockBetaRegionHealthChecks returns a new mock for RegionHealthChecks.
func (*MockBetaRegionHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionHealthChecks) Get ¶
func (m *MockBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key) (*beta.HealthCheck, error)
Get returns the object from the mock.
func (*MockBetaRegionHealthChecks) Insert ¶
func (m *MockBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *beta.HealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionHealthChecks) List ¶
func (m *MockBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.HealthCheck, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionHealthChecks) Obj ¶
func (m *MockBetaRegionHealthChecks) Obj(o *beta.HealthCheck) *MockRegionHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionHealthChecks) Update ¶
func (m *MockBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *beta.HealthCheck) error
Update is a mock for the corresponding method.
type MockBetaRegionSslCertificates ¶
type MockBetaRegionSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionSslCertificates) (bool, *beta.SslCertificate, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionSslCertificates) (bool, []*beta.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.SslCertificate, m *MockBetaRegionSslCertificates) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionSslCertificates) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionSslCertificates is the mock for RegionSslCertificates.
func NewMockBetaRegionSslCertificates ¶
func NewMockBetaRegionSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockRegionSslCertificatesObj) *MockBetaRegionSslCertificates
NewMockBetaRegionSslCertificates returns a new mock for RegionSslCertificates.
func (*MockBetaRegionSslCertificates) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionSslCertificates) Get ¶
func (m *MockBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
Get returns the object from the mock.
func (*MockBetaRegionSslCertificates) Insert ¶
func (m *MockBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionSslCertificates) List ¶
func (m *MockBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F) ([]*beta.SslCertificate, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionSslCertificates) Obj ¶
func (m *MockBetaRegionSslCertificates) Obj(o *beta.SslCertificate) *MockRegionSslCertificatesObj
Obj wraps the object for use in the mock.
type MockBetaRegionTargetHttpProxies ¶
type MockBetaRegionTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpProxies) (bool, *beta.TargetHttpProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionTargetHttpProxies) (bool, []*beta.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy, m *MockBetaRegionTargetHttpProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpProxies) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *beta.UrlMapReference, *MockBetaRegionTargetHttpProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionTargetHttpProxies is the mock for RegionTargetHttpProxies.
func NewMockBetaRegionTargetHttpProxies ¶
func NewMockBetaRegionTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpProxiesObj) *MockBetaRegionTargetHttpProxies
NewMockBetaRegionTargetHttpProxies returns a new mock for RegionTargetHttpProxies.
func (*MockBetaRegionTargetHttpProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionTargetHttpProxies) Get ¶
func (m *MockBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockBetaRegionTargetHttpProxies) Insert ¶
func (m *MockBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionTargetHttpProxies) List ¶
func (m *MockBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpProxy, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionTargetHttpProxies) Obj ¶
func (m *MockBetaRegionTargetHttpProxies) Obj(o *beta.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionTargetHttpProxies) SetUrlMap ¶
func (m *MockBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockBetaRegionTargetHttpsProxies ¶
type MockBetaRegionTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpsProxies) (bool, *beta.TargetHttpsProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionTargetHttpsProxies) (bool, []*beta.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy, m *MockBetaRegionTargetHttpsProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpsProxies) (bool, error) SetSslCertificatesHook func(context.Context, *meta.Key, *beta.RegionTargetHttpsProxiesSetSslCertificatesRequest, *MockBetaRegionTargetHttpsProxies) error SetUrlMapHook func(context.Context, *meta.Key, *beta.UrlMapReference, *MockBetaRegionTargetHttpsProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionTargetHttpsProxies is the mock for RegionTargetHttpsProxies.
func NewMockBetaRegionTargetHttpsProxies ¶
func NewMockBetaRegionTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpsProxiesObj) *MockBetaRegionTargetHttpsProxies
NewMockBetaRegionTargetHttpsProxies returns a new mock for RegionTargetHttpsProxies.
func (*MockBetaRegionTargetHttpsProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionTargetHttpsProxies) Get ¶
func (m *MockBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockBetaRegionTargetHttpsProxies) Insert ¶
func (m *MockBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionTargetHttpsProxies) List ¶
func (m *MockBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionTargetHttpsProxies) Obj ¶
func (m *MockBetaRegionTargetHttpsProxies) Obj(o *beta.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionTargetHttpsProxies) SetSslCertificates ¶
func (m *MockBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *beta.RegionTargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a mock for the corresponding method.
func (*MockBetaRegionTargetHttpsProxies) SetUrlMap ¶
func (m *MockBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockBetaRegionUrlMaps ¶
type MockBetaRegionUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionUrlMaps) (bool, *beta.UrlMap, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionUrlMaps) (bool, []*beta.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.UrlMap, m *MockBetaRegionUrlMaps) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionUrlMaps) (bool, error) UpdateHook func(context.Context, *meta.Key, *beta.UrlMap, *MockBetaRegionUrlMaps) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionUrlMaps is the mock for RegionUrlMaps.
func NewMockBetaRegionUrlMaps ¶
func NewMockBetaRegionUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockRegionUrlMapsObj) *MockBetaRegionUrlMaps
NewMockBetaRegionUrlMaps returns a new mock for RegionUrlMaps.
func (*MockBetaRegionUrlMaps) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaRegionUrlMaps) Get ¶
Get returns the object from the mock.
func (*MockBetaRegionUrlMaps) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionUrlMaps) List ¶
func (m *MockBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*beta.UrlMap, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionUrlMaps) Obj ¶
func (m *MockBetaRegionUrlMaps) Obj(o *beta.UrlMap) *MockRegionUrlMapsObj
Obj wraps the object for use in the mock.
type MockBetaSecurityPolicies ¶
type MockBetaSecurityPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSecurityPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSecurityPolicies) (bool, *beta.SecurityPolicy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaSecurityPolicies) (bool, []*beta.SecurityPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy, m *MockBetaSecurityPolicies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSecurityPolicies) (bool, error) AddRuleHook func(context.Context, *meta.Key, *beta.SecurityPolicyRule, *MockBetaSecurityPolicies) error GetRuleHook func(context.Context, *meta.Key, *MockBetaSecurityPolicies) (*beta.SecurityPolicyRule, error) PatchHook func(context.Context, *meta.Key, *beta.SecurityPolicy, *MockBetaSecurityPolicies) error PatchRuleHook func(context.Context, *meta.Key, *beta.SecurityPolicyRule, *MockBetaSecurityPolicies) error RemoveRuleHook func(context.Context, *meta.Key, *MockBetaSecurityPolicies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSecurityPolicies is the mock for SecurityPolicies.
func NewMockBetaSecurityPolicies ¶
func NewMockBetaSecurityPolicies(pr ProjectRouter, objs map[meta.Key]*MockSecurityPoliciesObj) *MockBetaSecurityPolicies
NewMockBetaSecurityPolicies returns a new mock for SecurityPolicies.
func (*MockBetaSecurityPolicies) AddRule ¶
func (m *MockBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
AddRule is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaSecurityPolicies) Get ¶
func (m *MockBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key) (*beta.SecurityPolicy, error)
Get returns the object from the mock.
func (*MockBetaSecurityPolicies) GetRule ¶
func (m *MockBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key) (*beta.SecurityPolicyRule, error)
GetRule is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) Insert ¶
func (m *MockBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *beta.SecurityPolicy) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSecurityPolicies) List ¶
func (m *MockBetaSecurityPolicies) List(ctx context.Context, fl *filter.F) ([]*beta.SecurityPolicy, error)
List all of the objects in the mock.
func (*MockBetaSecurityPolicies) Obj ¶
func (m *MockBetaSecurityPolicies) Obj(o *beta.SecurityPolicy) *MockSecurityPoliciesObj
Obj wraps the object for use in the mock.
func (*MockBetaSecurityPolicies) Patch ¶
func (m *MockBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicy) error
Patch is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) PatchRule ¶
func (m *MockBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *beta.SecurityPolicyRule) error
PatchRule is a mock for the corresponding method.
type MockBetaSslCertificates ¶
type MockBetaSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSslCertificates) (bool, *beta.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaSslCertificates) (bool, []*beta.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.SslCertificate, m *MockBetaSslCertificates) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSslCertificates) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSslCertificates is the mock for SslCertificates.
func NewMockBetaSslCertificates ¶
func NewMockBetaSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockBetaSslCertificates
NewMockBetaSslCertificates returns a new mock for SslCertificates.
func (*MockBetaSslCertificates) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaSslCertificates) Get ¶
func (m *MockBetaSslCertificates) Get(ctx context.Context, key *meta.Key) (*beta.SslCertificate, error)
Get returns the object from the mock.
func (*MockBetaSslCertificates) Insert ¶
func (m *MockBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *beta.SslCertificate) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSslCertificates) List ¶
func (m *MockBetaSslCertificates) List(ctx context.Context, fl *filter.F) ([]*beta.SslCertificate, error)
List all of the objects in the mock.
func (*MockBetaSslCertificates) Obj ¶
func (m *MockBetaSslCertificates) Obj(o *beta.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockBetaSubnetworks ¶
type MockBetaSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSubnetworks) (bool, *beta.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaSubnetworks) (bool, []*beta.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.Subnetwork, m *MockBetaSubnetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSubnetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSubnetworks is the mock for Subnetworks.
func NewMockBetaSubnetworks ¶
func NewMockBetaSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockBetaSubnetworks
NewMockBetaSubnetworks returns a new mock for Subnetworks.
func (*MockBetaSubnetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaSubnetworks) Get ¶
func (m *MockBetaSubnetworks) Get(ctx context.Context, key *meta.Key) (*beta.Subnetwork, error)
Get returns the object from the mock.
func (*MockBetaSubnetworks) Insert ¶
func (m *MockBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *beta.Subnetwork) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSubnetworks) List ¶
func (m *MockBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*beta.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockBetaSubnetworks) Obj ¶
func (m *MockBetaSubnetworks) Obj(o *beta.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
type MockBetaTargetHttpProxies ¶
type MockBetaTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpProxies) (bool, *beta.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTargetHttpProxies) (bool, []*beta.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy, m *MockBetaTargetHttpProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpProxies) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *beta.UrlMapReference, *MockBetaTargetHttpProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockBetaTargetHttpProxies ¶
func NewMockBetaTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockBetaTargetHttpProxies
NewMockBetaTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockBetaTargetHttpProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaTargetHttpProxies) Get ¶
func (m *MockBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockBetaTargetHttpProxies) Insert ¶
func (m *MockBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTargetHttpProxies) List ¶
func (m *MockBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockBetaTargetHttpProxies) Obj ¶
func (m *MockBetaTargetHttpProxies) Obj(o *beta.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaTargetHttpProxies) SetUrlMap ¶
func (m *MockBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockBetaTargetHttpsProxies ¶
type MockBetaTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpsProxies) (bool, *beta.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTargetHttpsProxies) (bool, []*beta.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy, m *MockBetaTargetHttpsProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpsProxies) (bool, error) SetSslCertificatesHook func(context.Context, *meta.Key, *beta.TargetHttpsProxiesSetSslCertificatesRequest, *MockBetaTargetHttpsProxies) error SetUrlMapHook func(context.Context, *meta.Key, *beta.UrlMapReference, *MockBetaTargetHttpsProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockBetaTargetHttpsProxies ¶
func NewMockBetaTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockBetaTargetHttpsProxies
NewMockBetaTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockBetaTargetHttpsProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaTargetHttpsProxies) Get ¶
func (m *MockBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*beta.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockBetaTargetHttpsProxies) Insert ¶
func (m *MockBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *beta.TargetHttpsProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTargetHttpsProxies) List ¶
func (m *MockBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*beta.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockBetaTargetHttpsProxies) Obj ¶
func (m *MockBetaTargetHttpsProxies) Obj(o *beta.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaTargetHttpsProxies) SetSslCertificates ¶
func (m *MockBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *beta.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a mock for the corresponding method.
func (*MockBetaTargetHttpsProxies) SetUrlMap ¶
func (m *MockBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *beta.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockBetaUrlMaps ¶
type MockBetaUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaUrlMaps) (bool, *beta.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaUrlMaps) (bool, []*beta.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *beta.UrlMap, m *MockBetaUrlMaps) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaUrlMaps) (bool, error) UpdateHook func(context.Context, *meta.Key, *beta.UrlMap, *MockBetaUrlMaps) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaUrlMaps is the mock for UrlMaps.
func NewMockBetaUrlMaps ¶
func NewMockBetaUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockBetaUrlMaps
NewMockBetaUrlMaps returns a new mock for UrlMaps.
func (*MockBetaUrlMaps) Delete ¶
Delete is a mock for deleting the object.
func (*MockBetaUrlMaps) Get ¶
Get returns the object from the mock.
func (*MockBetaUrlMaps) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockBetaUrlMaps) List ¶
List all of the objects in the mock.
func (*MockBetaUrlMaps) Obj ¶
func (m *MockBetaUrlMaps) Obj(o *beta.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockDisks ¶
type MockDisks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockDisksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockDisks) (bool, *ga.Disk, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockDisks) (bool, []*ga.Disk, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Disk, m *MockDisks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockDisks) (bool, error) ResizeHook func(context.Context, *meta.Key, *ga.DisksResizeRequest, *MockDisks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockDisks is the mock for Disks.
func NewMockDisks ¶
func NewMockDisks(pr ProjectRouter, objs map[meta.Key]*MockDisksObj) *MockDisks
NewMockDisks returns a new mock for Disks.
func (*MockDisks) Delete ¶
Delete is a mock for deleting the object.
func (*MockDisks) Get ¶
Get returns the object from the mock.
func (*MockDisks) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockDisks) List ¶
List all of the objects in the mock in the given zone.
func (*MockDisks) Obj ¶
func (m *MockDisks) Obj(o *ga.Disk) *MockDisksObj
Obj wraps the object for use in the mock.
type MockDisksObj ¶
type MockDisksObj struct {
Obj interface{}
}
MockDisksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockDisksObj) ToGA ¶
func (m *MockDisksObj) ToGA() *ga.Disk
ToGA retrieves the given version of the object.
type MockFirewalls ¶
type MockFirewalls struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockFirewallsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockFirewalls) (bool, *ga.Firewall, error) ListHook func(ctx context.Context, fl *filter.F, m *MockFirewalls) (bool, []*ga.Firewall, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Firewall, m *MockFirewalls) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockFirewalls) (bool, error) UpdateHook func(context.Context, *meta.Key, *ga.Firewall, *MockFirewalls) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockFirewalls is the mock for Firewalls.
func NewMockFirewalls ¶
func NewMockFirewalls(pr ProjectRouter, objs map[meta.Key]*MockFirewallsObj) *MockFirewalls
NewMockFirewalls returns a new mock for Firewalls.
func (*MockFirewalls) Delete ¶
Delete is a mock for deleting the object.
func (*MockFirewalls) Get ¶
Get returns the object from the mock.
func (*MockFirewalls) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockFirewalls) List ¶
List all of the objects in the mock.
func (*MockFirewalls) Obj ¶
func (m *MockFirewalls) Obj(o *ga.Firewall) *MockFirewallsObj
Obj wraps the object for use in the mock.
type MockFirewallsObj ¶
type MockFirewallsObj struct {
Obj interface{}
}
MockFirewallsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockFirewallsObj) ToGA ¶
func (m *MockFirewallsObj) ToGA() *ga.Firewall
ToGA retrieves the given version of the object.
type MockForwardingRules ¶
type MockForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockForwardingRules) (bool, *ga.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockForwardingRules) (bool, []*ga.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule, m *MockForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *ga.TargetReference, *MockForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockForwardingRules is the mock for ForwardingRules.
func NewMockForwardingRules ¶
func NewMockForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockForwardingRules
NewMockForwardingRules returns a new mock for ForwardingRules.
func (*MockForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockForwardingRules) Get ¶
func (m *MockForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
Get returns the object from the mock.
func (*MockForwardingRules) Insert ¶
func (m *MockForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockForwardingRules) List ¶
func (m *MockForwardingRules) List(ctx context.Context, region string, fl *filter.F) ([]*ga.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockForwardingRules) Obj ¶
func (m *MockForwardingRules) Obj(o *ga.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockForwardingRules) SetTarget ¶
func (m *MockForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockForwardingRulesObj ¶
type MockForwardingRulesObj struct {
Obj interface{}
}
MockForwardingRulesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockForwardingRulesObj) ToAlpha ¶
func (m *MockForwardingRulesObj) ToAlpha() *alpha.ForwardingRule
ToAlpha retrieves the given version of the object.
func (*MockForwardingRulesObj) ToBeta ¶
func (m *MockForwardingRulesObj) ToBeta() *beta.ForwardingRule
ToBeta retrieves the given version of the object.
func (*MockForwardingRulesObj) ToGA ¶
func (m *MockForwardingRulesObj) ToGA() *ga.ForwardingRule
ToGA retrieves the given version of the object.
type MockGCE ¶
type MockGCE struct { MockAddresses *MockAddresses MockAlphaAddresses *MockAlphaAddresses MockBetaAddresses *MockBetaAddresses MockAlphaGlobalAddresses *MockAlphaGlobalAddresses MockGlobalAddresses *MockGlobalAddresses MockBackendServices *MockBackendServices MockBetaBackendServices *MockBetaBackendServices MockAlphaBackendServices *MockAlphaBackendServices MockRegionBackendServices *MockRegionBackendServices MockAlphaRegionBackendServices *MockAlphaRegionBackendServices MockBetaRegionBackendServices *MockBetaRegionBackendServices MockDisks *MockDisks MockRegionDisks *MockRegionDisks MockFirewalls *MockFirewalls MockForwardingRules *MockForwardingRules MockAlphaForwardingRules *MockAlphaForwardingRules MockBetaForwardingRules *MockBetaForwardingRules MockAlphaGlobalForwardingRules *MockAlphaGlobalForwardingRules MockBetaGlobalForwardingRules *MockBetaGlobalForwardingRules MockGlobalForwardingRules *MockGlobalForwardingRules MockHealthChecks *MockHealthChecks MockAlphaHealthChecks *MockAlphaHealthChecks MockBetaHealthChecks *MockBetaHealthChecks MockAlphaRegionHealthChecks *MockAlphaRegionHealthChecks MockBetaRegionHealthChecks *MockBetaRegionHealthChecks MockHttpHealthChecks *MockHttpHealthChecks MockHttpsHealthChecks *MockHttpsHealthChecks MockInstanceGroups *MockInstanceGroups MockInstances *MockInstances MockBetaInstances *MockBetaInstances MockAlphaInstances *MockAlphaInstances MockAlphaNetworks *MockAlphaNetworks MockBetaNetworks *MockBetaNetworks MockNetworks *MockNetworks MockAlphaNetworkEndpointGroups *MockAlphaNetworkEndpointGroups MockBetaNetworkEndpointGroups *MockBetaNetworkEndpointGroups MockNetworkEndpointGroups *MockNetworkEndpointGroups MockProjects *MockProjects MockRegions *MockRegions MockRoutes *MockRoutes MockBetaSecurityPolicies *MockBetaSecurityPolicies MockSslCertificates *MockSslCertificates MockBetaSslCertificates *MockBetaSslCertificates MockAlphaSslCertificates *MockAlphaSslCertificates MockAlphaRegionSslCertificates *MockAlphaRegionSslCertificates MockBetaRegionSslCertificates *MockBetaRegionSslCertificates MockAlphaSubnetworks *MockAlphaSubnetworks MockBetaSubnetworks *MockBetaSubnetworks MockSubnetworks *MockSubnetworks MockAlphaTargetHttpProxies *MockAlphaTargetHttpProxies MockBetaTargetHttpProxies *MockBetaTargetHttpProxies MockTargetHttpProxies *MockTargetHttpProxies MockAlphaRegionTargetHttpProxies *MockAlphaRegionTargetHttpProxies MockBetaRegionTargetHttpProxies *MockBetaRegionTargetHttpProxies MockTargetHttpsProxies *MockTargetHttpsProxies MockAlphaTargetHttpsProxies *MockAlphaTargetHttpsProxies MockBetaTargetHttpsProxies *MockBetaTargetHttpsProxies MockAlphaRegionTargetHttpsProxies *MockAlphaRegionTargetHttpsProxies MockBetaRegionTargetHttpsProxies *MockBetaRegionTargetHttpsProxies MockTargetPools *MockTargetPools MockAlphaUrlMaps *MockAlphaUrlMaps MockBetaUrlMaps *MockBetaUrlMaps MockUrlMaps *MockUrlMaps MockAlphaRegionUrlMaps *MockAlphaRegionUrlMaps MockBetaRegionUrlMaps *MockBetaRegionUrlMaps MockZones *MockZones }
MockGCE is the mock for the compute API.
func NewMockGCE ¶
func NewMockGCE(projectRouter ProjectRouter) *MockGCE
NewMockGCE returns a new mock for GCE.
func (*MockGCE) Addresses ¶
Addresses returns the interface for the ga Addresses.
func (*MockGCE) AlphaAddresses ¶
func (mock *MockGCE) AlphaAddresses() AlphaAddresses
AlphaAddresses returns the interface for the alpha Addresses.
func (*MockGCE) AlphaBackendServices ¶
func (mock *MockGCE) AlphaBackendServices() AlphaBackendServices
AlphaBackendServices returns the interface for the alpha BackendServices.
func (*MockGCE) AlphaForwardingRules ¶
func (mock *MockGCE) AlphaForwardingRules() AlphaForwardingRules
AlphaForwardingRules returns the interface for the alpha ForwardingRules.
func (*MockGCE) AlphaGlobalAddresses ¶
func (mock *MockGCE) AlphaGlobalAddresses() AlphaGlobalAddresses
AlphaGlobalAddresses returns the interface for the alpha GlobalAddresses.
func (*MockGCE) AlphaGlobalForwardingRules ¶
func (mock *MockGCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
AlphaGlobalForwardingRules returns the interface for the alpha GlobalForwardingRules.
func (*MockGCE) AlphaHealthChecks ¶
func (mock *MockGCE) AlphaHealthChecks() AlphaHealthChecks
AlphaHealthChecks returns the interface for the alpha HealthChecks.
func (*MockGCE) AlphaInstances ¶
func (mock *MockGCE) AlphaInstances() AlphaInstances
AlphaInstances returns the interface for the alpha Instances.
func (*MockGCE) AlphaNetworkEndpointGroups ¶
func (mock *MockGCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
AlphaNetworkEndpointGroups returns the interface for the alpha NetworkEndpointGroups.
func (*MockGCE) AlphaNetworks ¶
func (mock *MockGCE) AlphaNetworks() AlphaNetworks
AlphaNetworks returns the interface for the alpha Networks.
func (*MockGCE) AlphaRegionBackendServices ¶
func (mock *MockGCE) AlphaRegionBackendServices() AlphaRegionBackendServices
AlphaRegionBackendServices returns the interface for the alpha RegionBackendServices.
func (*MockGCE) AlphaRegionHealthChecks ¶
func (mock *MockGCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
AlphaRegionHealthChecks returns the interface for the alpha RegionHealthChecks.
func (*MockGCE) AlphaRegionSslCertificates ¶
func (mock *MockGCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
AlphaRegionSslCertificates returns the interface for the alpha RegionSslCertificates.
func (*MockGCE) AlphaRegionTargetHttpProxies ¶
func (mock *MockGCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
AlphaRegionTargetHttpProxies returns the interface for the alpha RegionTargetHttpProxies.
func (*MockGCE) AlphaRegionTargetHttpsProxies ¶
func (mock *MockGCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
AlphaRegionTargetHttpsProxies returns the interface for the alpha RegionTargetHttpsProxies.
func (*MockGCE) AlphaRegionUrlMaps ¶
func (mock *MockGCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
AlphaRegionUrlMaps returns the interface for the alpha RegionUrlMaps.
func (*MockGCE) AlphaSslCertificates ¶
func (mock *MockGCE) AlphaSslCertificates() AlphaSslCertificates
AlphaSslCertificates returns the interface for the alpha SslCertificates.
func (*MockGCE) AlphaSubnetworks ¶
func (mock *MockGCE) AlphaSubnetworks() AlphaSubnetworks
AlphaSubnetworks returns the interface for the alpha Subnetworks.
func (*MockGCE) AlphaTargetHttpProxies ¶
func (mock *MockGCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
AlphaTargetHttpProxies returns the interface for the alpha TargetHttpProxies.
func (*MockGCE) AlphaTargetHttpsProxies ¶
func (mock *MockGCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
AlphaTargetHttpsProxies returns the interface for the alpha TargetHttpsProxies.
func (*MockGCE) AlphaUrlMaps ¶
func (mock *MockGCE) AlphaUrlMaps() AlphaUrlMaps
AlphaUrlMaps returns the interface for the alpha UrlMaps.
func (*MockGCE) BackendServices ¶
func (mock *MockGCE) BackendServices() BackendServices
BackendServices returns the interface for the ga BackendServices.
func (*MockGCE) BetaAddresses ¶
func (mock *MockGCE) BetaAddresses() BetaAddresses
BetaAddresses returns the interface for the beta Addresses.
func (*MockGCE) BetaBackendServices ¶
func (mock *MockGCE) BetaBackendServices() BetaBackendServices
BetaBackendServices returns the interface for the beta BackendServices.
func (*MockGCE) BetaForwardingRules ¶
func (mock *MockGCE) BetaForwardingRules() BetaForwardingRules
BetaForwardingRules returns the interface for the beta ForwardingRules.
func (*MockGCE) BetaGlobalForwardingRules ¶
func (mock *MockGCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
BetaGlobalForwardingRules returns the interface for the beta GlobalForwardingRules.
func (*MockGCE) BetaHealthChecks ¶
func (mock *MockGCE) BetaHealthChecks() BetaHealthChecks
BetaHealthChecks returns the interface for the beta HealthChecks.
func (*MockGCE) BetaInstances ¶
func (mock *MockGCE) BetaInstances() BetaInstances
BetaInstances returns the interface for the beta Instances.
func (*MockGCE) BetaNetworkEndpointGroups ¶
func (mock *MockGCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
BetaNetworkEndpointGroups returns the interface for the beta NetworkEndpointGroups.
func (*MockGCE) BetaNetworks ¶
func (mock *MockGCE) BetaNetworks() BetaNetworks
BetaNetworks returns the interface for the beta Networks.
func (*MockGCE) BetaRegionBackendServices ¶
func (mock *MockGCE) BetaRegionBackendServices() BetaRegionBackendServices
BetaRegionBackendServices returns the interface for the beta RegionBackendServices.
func (*MockGCE) BetaRegionHealthChecks ¶
func (mock *MockGCE) BetaRegionHealthChecks() BetaRegionHealthChecks
BetaRegionHealthChecks returns the interface for the beta RegionHealthChecks.
func (*MockGCE) BetaRegionSslCertificates ¶
func (mock *MockGCE) BetaRegionSslCertificates() BetaRegionSslCertificates
BetaRegionSslCertificates returns the interface for the beta RegionSslCertificates.
func (*MockGCE) BetaRegionTargetHttpProxies ¶
func (mock *MockGCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
BetaRegionTargetHttpProxies returns the interface for the beta RegionTargetHttpProxies.
func (*MockGCE) BetaRegionTargetHttpsProxies ¶
func (mock *MockGCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
BetaRegionTargetHttpsProxies returns the interface for the beta RegionTargetHttpsProxies.
func (*MockGCE) BetaRegionUrlMaps ¶
func (mock *MockGCE) BetaRegionUrlMaps() BetaRegionUrlMaps
BetaRegionUrlMaps returns the interface for the beta RegionUrlMaps.
func (*MockGCE) BetaSecurityPolicies ¶
func (mock *MockGCE) BetaSecurityPolicies() BetaSecurityPolicies
BetaSecurityPolicies returns the interface for the beta SecurityPolicies.
func (*MockGCE) BetaSslCertificates ¶
func (mock *MockGCE) BetaSslCertificates() BetaSslCertificates
BetaSslCertificates returns the interface for the beta SslCertificates.
func (*MockGCE) BetaSubnetworks ¶
func (mock *MockGCE) BetaSubnetworks() BetaSubnetworks
BetaSubnetworks returns the interface for the beta Subnetworks.
func (*MockGCE) BetaTargetHttpProxies ¶
func (mock *MockGCE) BetaTargetHttpProxies() BetaTargetHttpProxies
BetaTargetHttpProxies returns the interface for the beta TargetHttpProxies.
func (*MockGCE) BetaTargetHttpsProxies ¶
func (mock *MockGCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
BetaTargetHttpsProxies returns the interface for the beta TargetHttpsProxies.
func (*MockGCE) BetaUrlMaps ¶
func (mock *MockGCE) BetaUrlMaps() BetaUrlMaps
BetaUrlMaps returns the interface for the beta UrlMaps.
func (*MockGCE) Disks ¶
Disks returns the interface for the ga Disks.
func (*MockGCE) Firewalls ¶
Firewalls returns the interface for the ga Firewalls.
func (*MockGCE) ForwardingRules ¶
func (mock *MockGCE) ForwardingRules() ForwardingRules
ForwardingRules returns the interface for the ga ForwardingRules.
func (*MockGCE) GlobalAddresses ¶
func (mock *MockGCE) GlobalAddresses() GlobalAddresses
GlobalAddresses returns the interface for the ga GlobalAddresses.
func (*MockGCE) GlobalForwardingRules ¶
func (mock *MockGCE) GlobalForwardingRules() GlobalForwardingRules
GlobalForwardingRules returns the interface for the ga GlobalForwardingRules.
func (*MockGCE) HealthChecks ¶
func (mock *MockGCE) HealthChecks() HealthChecks
HealthChecks returns the interface for the ga HealthChecks.
func (*MockGCE) HttpHealthChecks ¶
func (mock *MockGCE) HttpHealthChecks() HttpHealthChecks
HttpHealthChecks returns the interface for the ga HttpHealthChecks.
func (*MockGCE) HttpsHealthChecks ¶
func (mock *MockGCE) HttpsHealthChecks() HttpsHealthChecks
HttpsHealthChecks returns the interface for the ga HttpsHealthChecks.
func (*MockGCE) InstanceGroups ¶
func (mock *MockGCE) InstanceGroups() InstanceGroups
InstanceGroups returns the interface for the ga InstanceGroups.
func (*MockGCE) Instances ¶
Instances returns the interface for the ga Instances.
func (*MockGCE) NetworkEndpointGroups ¶
func (mock *MockGCE) NetworkEndpointGroups() NetworkEndpointGroups
NetworkEndpointGroups returns the interface for the ga NetworkEndpointGroups.
func (*MockGCE) Networks ¶
Networks returns the interface for the ga Networks.
func (*MockGCE) Projects ¶
Projects returns the interface for the ga Projects.
func (*MockGCE) RegionBackendServices ¶
func (mock *MockGCE) RegionBackendServices() RegionBackendServices
RegionBackendServices returns the interface for the ga RegionBackendServices.
func (*MockGCE) RegionDisks ¶
func (mock *MockGCE) RegionDisks() RegionDisks
RegionDisks returns the interface for the ga RegionDisks.
func (*MockGCE) Regions ¶
Regions returns the interface for the ga Regions.
func (*MockGCE) Routes ¶
Routes returns the interface for the ga Routes.
func (*MockGCE) SslCertificates ¶
func (mock *MockGCE) SslCertificates() SslCertificates
SslCertificates returns the interface for the ga SslCertificates.
func (*MockGCE) Subnetworks ¶
func (mock *MockGCE) Subnetworks() Subnetworks
Subnetworks returns the interface for the ga Subnetworks.
func (*MockGCE) TargetHttpProxies ¶
func (mock *MockGCE) TargetHttpProxies() TargetHttpProxies
TargetHttpProxies returns the interface for the ga TargetHttpProxies.
func (*MockGCE) TargetHttpsProxies ¶
func (mock *MockGCE) TargetHttpsProxies() TargetHttpsProxies
TargetHttpsProxies returns the interface for the ga TargetHttpsProxies.
func (*MockGCE) TargetPools ¶
func (mock *MockGCE) TargetPools() TargetPools
TargetPools returns the interface for the ga TargetPools.
func (*MockGCE) UrlMaps ¶
UrlMaps returns the interface for the ga UrlMaps.
type MockGlobalAddresses ¶
type MockGlobalAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockGlobalAddresses) (bool, *ga.Address, error) ListHook func(ctx context.Context, fl *filter.F, m *MockGlobalAddresses) (bool, []*ga.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Address, m *MockGlobalAddresses) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockGlobalAddresses) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockGlobalAddresses is the mock for GlobalAddresses.
func NewMockGlobalAddresses ¶
func NewMockGlobalAddresses(pr ProjectRouter, objs map[meta.Key]*MockGlobalAddressesObj) *MockGlobalAddresses
NewMockGlobalAddresses returns a new mock for GlobalAddresses.
func (*MockGlobalAddresses) Delete ¶
Delete is a mock for deleting the object.
func (*MockGlobalAddresses) Get ¶
Get returns the object from the mock.
func (*MockGlobalAddresses) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockGlobalAddresses) List ¶
List all of the objects in the mock.
func (*MockGlobalAddresses) Obj ¶
func (m *MockGlobalAddresses) Obj(o *ga.Address) *MockGlobalAddressesObj
Obj wraps the object for use in the mock.
type MockGlobalAddressesObj ¶
type MockGlobalAddressesObj struct {
Obj interface{}
}
MockGlobalAddressesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockGlobalAddressesObj) ToAlpha ¶
func (m *MockGlobalAddressesObj) ToAlpha() *alpha.Address
ToAlpha retrieves the given version of the object.
func (*MockGlobalAddressesObj) ToGA ¶
func (m *MockGlobalAddressesObj) ToGA() *ga.Address
ToGA retrieves the given version of the object.
type MockGlobalForwardingRules ¶
type MockGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockGlobalForwardingRules) (bool, *ga.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockGlobalForwardingRules) (bool, []*ga.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule, m *MockGlobalForwardingRules) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockGlobalForwardingRules) (bool, error) SetTargetHook func(context.Context, *meta.Key, *ga.TargetReference, *MockGlobalForwardingRules) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockGlobalForwardingRules ¶
func NewMockGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockGlobalForwardingRules
NewMockGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockGlobalForwardingRules) Delete ¶
Delete is a mock for deleting the object.
func (*MockGlobalForwardingRules) Get ¶
func (m *MockGlobalForwardingRules) Get(ctx context.Context, key *meta.Key) (*ga.ForwardingRule, error)
Get returns the object from the mock.
func (*MockGlobalForwardingRules) Insert ¶
func (m *MockGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *ga.ForwardingRule) error
Insert is a mock for inserting/creating a new object.
func (*MockGlobalForwardingRules) List ¶
func (m *MockGlobalForwardingRules) List(ctx context.Context, fl *filter.F) ([]*ga.ForwardingRule, error)
List all of the objects in the mock.
func (*MockGlobalForwardingRules) Obj ¶
func (m *MockGlobalForwardingRules) Obj(o *ga.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockGlobalForwardingRules) SetTarget ¶
func (m *MockGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *ga.TargetReference) error
SetTarget is a mock for the corresponding method.
type MockGlobalForwardingRulesObj ¶
type MockGlobalForwardingRulesObj struct {
Obj interface{}
}
MockGlobalForwardingRulesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockGlobalForwardingRulesObj) ToAlpha ¶
func (m *MockGlobalForwardingRulesObj) ToAlpha() *alpha.ForwardingRule
ToAlpha retrieves the given version of the object.
func (*MockGlobalForwardingRulesObj) ToBeta ¶
func (m *MockGlobalForwardingRulesObj) ToBeta() *beta.ForwardingRule
ToBeta retrieves the given version of the object.
func (*MockGlobalForwardingRulesObj) ToGA ¶
func (m *MockGlobalForwardingRulesObj) ToGA() *ga.ForwardingRule
ToGA retrieves the given version of the object.
type MockHealthChecks ¶
type MockHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHealthChecks) (bool, *ga.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHealthChecks) (bool, []*ga.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.HealthCheck, m *MockHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *ga.HealthCheck, *MockHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHealthChecks is the mock for HealthChecks.
func NewMockHealthChecks ¶
func NewMockHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockHealthChecks
NewMockHealthChecks returns a new mock for HealthChecks.
func (*MockHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockHealthChecks) Get ¶
func (m *MockHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HealthCheck, error)
Get returns the object from the mock.
func (*MockHealthChecks) Insert ¶
func (m *MockHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockHealthChecks) List ¶
func (m *MockHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HealthCheck, error)
List all of the objects in the mock.
func (*MockHealthChecks) Obj ¶
func (m *MockHealthChecks) Obj(o *ga.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockHealthChecks) Update ¶
func (m *MockHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HealthCheck) error
Update is a mock for the corresponding method.
type MockHealthChecksObj ¶
type MockHealthChecksObj struct {
Obj interface{}
}
MockHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHealthChecksObj) ToAlpha ¶
func (m *MockHealthChecksObj) ToAlpha() *alpha.HealthCheck
ToAlpha retrieves the given version of the object.
func (*MockHealthChecksObj) ToBeta ¶
func (m *MockHealthChecksObj) ToBeta() *beta.HealthCheck
ToBeta retrieves the given version of the object.
func (*MockHealthChecksObj) ToGA ¶
func (m *MockHealthChecksObj) ToGA() *ga.HealthCheck
ToGA retrieves the given version of the object.
type MockHttpHealthChecks ¶
type MockHttpHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHttpHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHttpHealthChecks) (bool, *ga.HttpHealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHttpHealthChecks) (bool, []*ga.HttpHealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck, m *MockHttpHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHttpHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *ga.HttpHealthCheck, *MockHttpHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHttpHealthChecks is the mock for HttpHealthChecks.
func NewMockHttpHealthChecks ¶
func NewMockHttpHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHttpHealthChecksObj) *MockHttpHealthChecks
NewMockHttpHealthChecks returns a new mock for HttpHealthChecks.
func (*MockHttpHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockHttpHealthChecks) Get ¶
func (m *MockHttpHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpHealthCheck, error)
Get returns the object from the mock.
func (*MockHttpHealthChecks) Insert ¶
func (m *MockHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpHealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockHttpHealthChecks) List ¶
func (m *MockHttpHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpHealthCheck, error)
List all of the objects in the mock.
func (*MockHttpHealthChecks) Obj ¶
func (m *MockHttpHealthChecks) Obj(o *ga.HttpHealthCheck) *MockHttpHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockHttpHealthChecks) Update ¶
func (m *MockHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpHealthCheck) error
Update is a mock for the corresponding method.
type MockHttpHealthChecksObj ¶
type MockHttpHealthChecksObj struct {
Obj interface{}
}
MockHttpHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHttpHealthChecksObj) ToGA ¶
func (m *MockHttpHealthChecksObj) ToGA() *ga.HttpHealthCheck
ToGA retrieves the given version of the object.
type MockHttpsHealthChecks ¶
type MockHttpsHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHttpsHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHttpsHealthChecks) (bool, *ga.HttpsHealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHttpsHealthChecks) (bool, []*ga.HttpsHealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck, m *MockHttpsHealthChecks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHttpsHealthChecks) (bool, error) UpdateHook func(context.Context, *meta.Key, *ga.HttpsHealthCheck, *MockHttpsHealthChecks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHttpsHealthChecks is the mock for HttpsHealthChecks.
func NewMockHttpsHealthChecks ¶
func NewMockHttpsHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHttpsHealthChecksObj) *MockHttpsHealthChecks
NewMockHttpsHealthChecks returns a new mock for HttpsHealthChecks.
func (*MockHttpsHealthChecks) Delete ¶
Delete is a mock for deleting the object.
func (*MockHttpsHealthChecks) Get ¶
func (m *MockHttpsHealthChecks) Get(ctx context.Context, key *meta.Key) (*ga.HttpsHealthCheck, error)
Get returns the object from the mock.
func (*MockHttpsHealthChecks) Insert ¶
func (m *MockHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *ga.HttpsHealthCheck) error
Insert is a mock for inserting/creating a new object.
func (*MockHttpsHealthChecks) List ¶
func (m *MockHttpsHealthChecks) List(ctx context.Context, fl *filter.F) ([]*ga.HttpsHealthCheck, error)
List all of the objects in the mock.
func (*MockHttpsHealthChecks) Obj ¶
func (m *MockHttpsHealthChecks) Obj(o *ga.HttpsHealthCheck) *MockHttpsHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockHttpsHealthChecks) Update ¶
func (m *MockHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *ga.HttpsHealthCheck) error
Update is a mock for the corresponding method.
type MockHttpsHealthChecksObj ¶
type MockHttpsHealthChecksObj struct {
Obj interface{}
}
MockHttpsHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHttpsHealthChecksObj) ToGA ¶
func (m *MockHttpsHealthChecksObj) ToGA() *ga.HttpsHealthCheck
ToGA retrieves the given version of the object.
type MockInstanceGroups ¶
type MockInstanceGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstanceGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroups) (bool, *ga.InstanceGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockInstanceGroups) (bool, []*ga.InstanceGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup, m *MockInstanceGroups) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroups) (bool, error) AddInstancesHook func(context.Context, *meta.Key, *ga.InstanceGroupsAddInstancesRequest, *MockInstanceGroups) error ListInstancesHook func(context.Context, *meta.Key, *ga.InstanceGroupsListInstancesRequest, *filter.F, *MockInstanceGroups) ([]*ga.InstanceWithNamedPorts, error) RemoveInstancesHook func(context.Context, *meta.Key, *ga.InstanceGroupsRemoveInstancesRequest, *MockInstanceGroups) error SetNamedPortsHook func(context.Context, *meta.Key, *ga.InstanceGroupsSetNamedPortsRequest, *MockInstanceGroups) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstanceGroups is the mock for InstanceGroups.
func NewMockInstanceGroups ¶
func NewMockInstanceGroups(pr ProjectRouter, objs map[meta.Key]*MockInstanceGroupsObj) *MockInstanceGroups
NewMockInstanceGroups returns a new mock for InstanceGroups.
func (*MockInstanceGroups) AddInstances ¶
func (m *MockInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsAddInstancesRequest) error
AddInstances is a mock for the corresponding method.
func (*MockInstanceGroups) Delete ¶
Delete is a mock for deleting the object.
func (*MockInstanceGroups) Get ¶
func (m *MockInstanceGroups) Get(ctx context.Context, key *meta.Key) (*ga.InstanceGroup, error)
Get returns the object from the mock.
func (*MockInstanceGroups) Insert ¶
func (m *MockInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.InstanceGroup) error
Insert is a mock for inserting/creating a new object.
func (*MockInstanceGroups) List ¶
func (m *MockInstanceGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.InstanceGroup, error)
List all of the objects in the mock in the given zone.
func (*MockInstanceGroups) ListInstances ¶
func (m *MockInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsListInstancesRequest, fl *filter.F) ([]*ga.InstanceWithNamedPorts, error)
ListInstances is a mock for the corresponding method.
func (*MockInstanceGroups) Obj ¶
func (m *MockInstanceGroups) Obj(o *ga.InstanceGroup) *MockInstanceGroupsObj
Obj wraps the object for use in the mock.
func (*MockInstanceGroups) RemoveInstances ¶
func (m *MockInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsRemoveInstancesRequest) error
RemoveInstances is a mock for the corresponding method.
func (*MockInstanceGroups) SetNamedPorts ¶
func (m *MockInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, arg0 *ga.InstanceGroupsSetNamedPortsRequest) error
SetNamedPorts is a mock for the corresponding method.
type MockInstanceGroupsObj ¶
type MockInstanceGroupsObj struct {
Obj interface{}
}
MockInstanceGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstanceGroupsObj) ToGA ¶
func (m *MockInstanceGroupsObj) ToGA() *ga.InstanceGroup
ToGA retrieves the given version of the object.
type MockInstances ¶
type MockInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstances) (bool, *ga.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockInstances) (bool, []*ga.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Instance, m *MockInstances) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstances) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *ga.AttachedDisk, *MockInstances) error DetachDiskHook func(context.Context, *meta.Key, string, *MockInstances) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstances is the mock for Instances.
func NewMockInstances ¶
func NewMockInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockInstances
NewMockInstances returns a new mock for Instances.
func (*MockInstances) AttachDisk ¶
func (m *MockInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *ga.AttachedDisk) error
AttachDisk is a mock for the corresponding method.
func (*MockInstances) Delete ¶
Delete is a mock for deleting the object.
func (*MockInstances) DetachDisk ¶
DetachDisk is a mock for the corresponding method.
func (*MockInstances) Get ¶
Get returns the object from the mock.
func (*MockInstances) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockInstances) List ¶
func (m *MockInstances) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockInstances) Obj ¶
func (m *MockInstances) Obj(o *ga.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
type MockInstancesObj ¶
type MockInstancesObj struct {
Obj interface{}
}
MockInstancesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstancesObj) ToAlpha ¶
func (m *MockInstancesObj) ToAlpha() *alpha.Instance
ToAlpha retrieves the given version of the object.
func (*MockInstancesObj) ToBeta ¶
func (m *MockInstancesObj) ToBeta() *beta.Instance
ToBeta retrieves the given version of the object.
func (*MockInstancesObj) ToGA ¶
func (m *MockInstancesObj) ToGA() *ga.Instance
ToGA retrieves the given version of the object.
type MockNetworkEndpointGroups ¶
type MockNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockNetworkEndpointGroups) (bool, *ga.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockNetworkEndpointGroups) (bool, []*ga.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup, m *MockNetworkEndpointGroups) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockNetworkEndpointGroups) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockNetworkEndpointGroups) (bool, map[string][]*ga.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *ga.NetworkEndpointGroupsAttachEndpointsRequest, *MockNetworkEndpointGroups) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *ga.NetworkEndpointGroupsDetachEndpointsRequest, *MockNetworkEndpointGroups) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *ga.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockNetworkEndpointGroups) ([]*ga.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockNetworkEndpointGroups ¶
func NewMockNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockNetworkEndpointGroups
NewMockNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockNetworkEndpointGroups) AggregatedList ¶
func (m *MockNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsAttachEndpointsRequest) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Delete ¶
Delete is a mock for deleting the object.
func (*MockNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsDetachEndpointsRequest) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Get ¶
func (m *MockNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key) (*ga.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockNetworkEndpointGroups) Insert ¶
func (m *MockNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup) error
Insert is a mock for inserting/creating a new object.
func (*MockNetworkEndpointGroups) List ¶
func (m *MockNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *ga.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F) ([]*ga.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Obj ¶
func (m *MockNetworkEndpointGroups) Obj(o *ga.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockNetworkEndpointGroupsObj ¶
type MockNetworkEndpointGroupsObj struct {
Obj interface{}
}
MockNetworkEndpointGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockNetworkEndpointGroupsObj) ToAlpha ¶
func (m *MockNetworkEndpointGroupsObj) ToAlpha() *alpha.NetworkEndpointGroup
ToAlpha retrieves the given version of the object.
func (*MockNetworkEndpointGroupsObj) ToBeta ¶
func (m *MockNetworkEndpointGroupsObj) ToBeta() *beta.NetworkEndpointGroup
ToBeta retrieves the given version of the object.
func (*MockNetworkEndpointGroupsObj) ToGA ¶
func (m *MockNetworkEndpointGroupsObj) ToGA() *ga.NetworkEndpointGroup
ToGA retrieves the given version of the object.
type MockNetworks ¶
type MockNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockNetworks) (bool, *ga.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockNetworks) (bool, []*ga.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Network, m *MockNetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockNetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockNetworks is the mock for Networks.
func NewMockNetworks ¶
func NewMockNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockNetworks
NewMockNetworks returns a new mock for Networks.
func (*MockNetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockNetworks) Get ¶
Get returns the object from the mock.
func (*MockNetworks) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockNetworks) List ¶
List all of the objects in the mock.
func (*MockNetworks) Obj ¶
func (m *MockNetworks) Obj(o *ga.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockNetworksObj ¶
type MockNetworksObj struct {
Obj interface{}
}
MockNetworksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockNetworksObj) ToAlpha ¶
func (m *MockNetworksObj) ToAlpha() *alpha.Network
ToAlpha retrieves the given version of the object.
func (*MockNetworksObj) ToBeta ¶
func (m *MockNetworksObj) ToBeta() *beta.Network
ToBeta retrieves the given version of the object.
func (*MockNetworksObj) ToGA ¶
func (m *MockNetworksObj) ToGA() *ga.Network
ToGA retrieves the given version of the object.
type MockProjectOpsState ¶
type MockProjectOpsState struct {
// contains filtered or unexported fields
}
MockProjectOpsState is stored in the mock.X field.
type MockProjects ¶
type MockProjects struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockProjectsObj // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockProjects is the mock for Projects.
func NewMockProjects ¶
func NewMockProjects(pr ProjectRouter, objs map[meta.Key]*MockProjectsObj) *MockProjects
NewMockProjects returns a new mock for Projects.
func (*MockProjects) Get ¶
Get a project by projectID.
func (*MockProjects) Obj ¶
func (m *MockProjects) Obj(o *ga.Project) *MockProjectsObj
Obj wraps the object for use in the mock.
type MockProjectsObj ¶
type MockProjectsObj struct {
Obj interface{}
}
MockProjectsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockProjectsObj) ToGA ¶
func (m *MockProjectsObj) ToGA() *ga.Project
ToGA retrieves the given version of the object.
type MockRegionBackendServices ¶
type MockRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionBackendServices) (bool, *ga.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionBackendServices) (bool, []*ga.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.BackendService, m *MockRegionBackendServices) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionBackendServices) (bool, error) GetHealthHook func(context.Context, *meta.Key, *ga.ResourceGroupReference, *MockRegionBackendServices) (*ga.BackendServiceGroupHealth, error) UpdateHook func(context.Context, *meta.Key, *ga.BackendService, *MockRegionBackendServices) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionBackendServices is the mock for RegionBackendServices.
func NewMockRegionBackendServices ¶
func NewMockRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockRegionBackendServices
NewMockRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockRegionBackendServices) Delete ¶
Delete is a mock for deleting the object.
func (*MockRegionBackendServices) Get ¶
func (m *MockRegionBackendServices) Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error)
Get returns the object from the mock.
func (*MockRegionBackendServices) GetHealth ¶
func (m *MockRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockRegionBackendServices) Insert ¶
func (m *MockRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionBackendServices) List ¶
func (m *MockRegionBackendServices) List(ctx context.Context, region string, fl *filter.F) ([]*ga.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockRegionBackendServices) Obj ¶
func (m *MockRegionBackendServices) Obj(o *ga.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockRegionBackendServices) Update ¶
func (m *MockRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *ga.BackendService) error
Update is a mock for the corresponding method.
type MockRegionBackendServicesObj ¶
type MockRegionBackendServicesObj struct {
Obj interface{}
}
MockRegionBackendServicesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionBackendServicesObj) ToAlpha ¶
func (m *MockRegionBackendServicesObj) ToAlpha() *alpha.BackendService
ToAlpha retrieves the given version of the object.
func (*MockRegionBackendServicesObj) ToBeta ¶
func (m *MockRegionBackendServicesObj) ToBeta() *beta.BackendService
ToBeta retrieves the given version of the object.
func (*MockRegionBackendServicesObj) ToGA ¶
func (m *MockRegionBackendServicesObj) ToGA() *ga.BackendService
ToGA retrieves the given version of the object.
type MockRegionDisks ¶
type MockRegionDisks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionDisksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionDisks) (bool, *ga.Disk, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionDisks) (bool, []*ga.Disk, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Disk, m *MockRegionDisks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionDisks) (bool, error) ResizeHook func(context.Context, *meta.Key, *ga.RegionDisksResizeRequest, *MockRegionDisks) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionDisks is the mock for RegionDisks.
func NewMockRegionDisks ¶
func NewMockRegionDisks(pr ProjectRouter, objs map[meta.Key]*MockRegionDisksObj) *MockRegionDisks
NewMockRegionDisks returns a new mock for RegionDisks.
func (*MockRegionDisks) Delete ¶
Delete is a mock for deleting the object.
func (*MockRegionDisks) Get ¶
Get returns the object from the mock.
func (*MockRegionDisks) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockRegionDisks) List ¶
func (m *MockRegionDisks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Disk, error)
List all of the objects in the mock in the given region.
func (*MockRegionDisks) Obj ¶
func (m *MockRegionDisks) Obj(o *ga.Disk) *MockRegionDisksObj
Obj wraps the object for use in the mock.
func (*MockRegionDisks) Resize ¶
func (m *MockRegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *ga.RegionDisksResizeRequest) error
Resize is a mock for the corresponding method.
type MockRegionDisksObj ¶
type MockRegionDisksObj struct {
Obj interface{}
}
MockRegionDisksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionDisksObj) ToGA ¶
func (m *MockRegionDisksObj) ToGA() *ga.Disk
ToGA retrieves the given version of the object.
type MockRegionHealthChecksObj ¶
type MockRegionHealthChecksObj struct {
Obj interface{}
}
MockRegionHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionHealthChecksObj) ToAlpha ¶
func (m *MockRegionHealthChecksObj) ToAlpha() *alpha.HealthCheck
ToAlpha retrieves the given version of the object.
func (*MockRegionHealthChecksObj) ToBeta ¶
func (m *MockRegionHealthChecksObj) ToBeta() *beta.HealthCheck
ToBeta retrieves the given version of the object.
type MockRegionSslCertificatesObj ¶
type MockRegionSslCertificatesObj struct {
Obj interface{}
}
MockRegionSslCertificatesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionSslCertificatesObj) ToAlpha ¶
func (m *MockRegionSslCertificatesObj) ToAlpha() *alpha.SslCertificate
ToAlpha retrieves the given version of the object.
func (*MockRegionSslCertificatesObj) ToBeta ¶
func (m *MockRegionSslCertificatesObj) ToBeta() *beta.SslCertificate
ToBeta retrieves the given version of the object.
type MockRegionTargetHttpProxiesObj ¶
type MockRegionTargetHttpProxiesObj struct {
Obj interface{}
}
MockRegionTargetHttpProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionTargetHttpProxiesObj) ToAlpha ¶
func (m *MockRegionTargetHttpProxiesObj) ToAlpha() *alpha.TargetHttpProxy
ToAlpha retrieves the given version of the object.
func (*MockRegionTargetHttpProxiesObj) ToBeta ¶
func (m *MockRegionTargetHttpProxiesObj) ToBeta() *beta.TargetHttpProxy
ToBeta retrieves the given version of the object.
type MockRegionTargetHttpsProxiesObj ¶
type MockRegionTargetHttpsProxiesObj struct {
Obj interface{}
}
MockRegionTargetHttpsProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionTargetHttpsProxiesObj) ToAlpha ¶
func (m *MockRegionTargetHttpsProxiesObj) ToAlpha() *alpha.TargetHttpsProxy
ToAlpha retrieves the given version of the object.
func (*MockRegionTargetHttpsProxiesObj) ToBeta ¶
func (m *MockRegionTargetHttpsProxiesObj) ToBeta() *beta.TargetHttpsProxy
ToBeta retrieves the given version of the object.
type MockRegionUrlMapsObj ¶
type MockRegionUrlMapsObj struct {
Obj interface{}
}
MockRegionUrlMapsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionUrlMapsObj) ToAlpha ¶
func (m *MockRegionUrlMapsObj) ToAlpha() *alpha.UrlMap
ToAlpha retrieves the given version of the object.
func (*MockRegionUrlMapsObj) ToBeta ¶
func (m *MockRegionUrlMapsObj) ToBeta() *beta.UrlMap
ToBeta retrieves the given version of the object.
type MockRegions ¶
type MockRegions struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegions) (bool, *ga.Region, error) ListHook func(ctx context.Context, fl *filter.F, m *MockRegions) (bool, []*ga.Region, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegions is the mock for Regions.
func NewMockRegions ¶
func NewMockRegions(pr ProjectRouter, objs map[meta.Key]*MockRegionsObj) *MockRegions
NewMockRegions returns a new mock for Regions.
func (*MockRegions) Get ¶
Get returns the object from the mock.
func (*MockRegions) List ¶
List all of the objects in the mock.
func (*MockRegions) Obj ¶
func (m *MockRegions) Obj(o *ga.Region) *MockRegionsObj
Obj wraps the object for use in the mock.
type MockRegionsObj ¶
type MockRegionsObj struct {
Obj interface{}
}
MockRegionsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionsObj) ToGA ¶
func (m *MockRegionsObj) ToGA() *ga.Region
ToGA retrieves the given version of the object.
type MockRoutes ¶
type MockRoutes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRoutesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRoutes) (bool, *ga.Route, error) ListHook func(ctx context.Context, fl *filter.F, m *MockRoutes) (bool, []*ga.Route, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Route, m *MockRoutes) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRoutes) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRoutes is the mock for Routes.
func NewMockRoutes ¶
func NewMockRoutes(pr ProjectRouter, objs map[meta.Key]*MockRoutesObj) *MockRoutes
NewMockRoutes returns a new mock for Routes.
func (*MockRoutes) Delete ¶
Delete is a mock for deleting the object.
func (*MockRoutes) Get ¶
Get returns the object from the mock.
func (*MockRoutes) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockRoutes) List ¶
List all of the objects in the mock.
func (*MockRoutes) Obj ¶
func (m *MockRoutes) Obj(o *ga.Route) *MockRoutesObj
Obj wraps the object for use in the mock.
type MockRoutesObj ¶
type MockRoutesObj struct {
Obj interface{}
}
MockRoutesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRoutesObj) ToGA ¶
func (m *MockRoutesObj) ToGA() *ga.Route
ToGA retrieves the given version of the object.
type MockSecurityPoliciesObj ¶
type MockSecurityPoliciesObj struct {
Obj interface{}
}
MockSecurityPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSecurityPoliciesObj) ToBeta ¶
func (m *MockSecurityPoliciesObj) ToBeta() *beta.SecurityPolicy
ToBeta retrieves the given version of the object.
type MockSslCertificates ¶
type MockSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockSslCertificates) (bool, *ga.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockSslCertificates) (bool, []*ga.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.SslCertificate, m *MockSslCertificates) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockSslCertificates) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockSslCertificates is the mock for SslCertificates.
func NewMockSslCertificates ¶
func NewMockSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockSslCertificates
NewMockSslCertificates returns a new mock for SslCertificates.
func (*MockSslCertificates) Delete ¶
Delete is a mock for deleting the object.
func (*MockSslCertificates) Get ¶
func (m *MockSslCertificates) Get(ctx context.Context, key *meta.Key) (*ga.SslCertificate, error)
Get returns the object from the mock.
func (*MockSslCertificates) Insert ¶
func (m *MockSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *ga.SslCertificate) error
Insert is a mock for inserting/creating a new object.
func (*MockSslCertificates) List ¶
func (m *MockSslCertificates) List(ctx context.Context, fl *filter.F) ([]*ga.SslCertificate, error)
List all of the objects in the mock.
func (*MockSslCertificates) Obj ¶
func (m *MockSslCertificates) Obj(o *ga.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockSslCertificatesObj ¶
type MockSslCertificatesObj struct {
Obj interface{}
}
MockSslCertificatesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSslCertificatesObj) ToAlpha ¶
func (m *MockSslCertificatesObj) ToAlpha() *alpha.SslCertificate
ToAlpha retrieves the given version of the object.
func (*MockSslCertificatesObj) ToBeta ¶
func (m *MockSslCertificatesObj) ToBeta() *beta.SslCertificate
ToBeta retrieves the given version of the object.
func (*MockSslCertificatesObj) ToGA ¶
func (m *MockSslCertificatesObj) ToGA() *ga.SslCertificate
ToGA retrieves the given version of the object.
type MockSubnetworks ¶
type MockSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockSubnetworks) (bool, *ga.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockSubnetworks) (bool, []*ga.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.Subnetwork, m *MockSubnetworks) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockSubnetworks) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockSubnetworks is the mock for Subnetworks.
func NewMockSubnetworks ¶
func NewMockSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockSubnetworks
NewMockSubnetworks returns a new mock for Subnetworks.
func (*MockSubnetworks) Delete ¶
Delete is a mock for deleting the object.
func (*MockSubnetworks) Get ¶
func (m *MockSubnetworks) Get(ctx context.Context, key *meta.Key) (*ga.Subnetwork, error)
Get returns the object from the mock.
func (*MockSubnetworks) Insert ¶
func (m *MockSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *ga.Subnetwork) error
Insert is a mock for inserting/creating a new object.
func (*MockSubnetworks) List ¶
func (m *MockSubnetworks) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockSubnetworks) Obj ¶
func (m *MockSubnetworks) Obj(o *ga.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
type MockSubnetworksObj ¶
type MockSubnetworksObj struct {
Obj interface{}
}
MockSubnetworksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSubnetworksObj) ToAlpha ¶
func (m *MockSubnetworksObj) ToAlpha() *alpha.Subnetwork
ToAlpha retrieves the given version of the object.
func (*MockSubnetworksObj) ToBeta ¶
func (m *MockSubnetworksObj) ToBeta() *beta.Subnetwork
ToBeta retrieves the given version of the object.
func (*MockSubnetworksObj) ToGA ¶
func (m *MockSubnetworksObj) ToGA() *ga.Subnetwork
ToGA retrieves the given version of the object.
type MockTargetHttpProxies ¶
type MockTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpProxies) (bool, *ga.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTargetHttpProxies) (bool, []*ga.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy, m *MockTargetHttpProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpProxies) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *ga.UrlMapReference, *MockTargetHttpProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockTargetHttpProxies ¶
func NewMockTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockTargetHttpProxies
NewMockTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockTargetHttpProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockTargetHttpProxies) Get ¶
func (m *MockTargetHttpProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockTargetHttpProxies) Insert ¶
func (m *MockTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetHttpProxies) List ¶
func (m *MockTargetHttpProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockTargetHttpProxies) Obj ¶
func (m *MockTargetHttpProxies) Obj(o *ga.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockTargetHttpProxies) SetUrlMap ¶
func (m *MockTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockTargetHttpProxiesObj ¶
type MockTargetHttpProxiesObj struct {
Obj interface{}
}
MockTargetHttpProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetHttpProxiesObj) ToAlpha ¶
func (m *MockTargetHttpProxiesObj) ToAlpha() *alpha.TargetHttpProxy
ToAlpha retrieves the given version of the object.
func (*MockTargetHttpProxiesObj) ToBeta ¶
func (m *MockTargetHttpProxiesObj) ToBeta() *beta.TargetHttpProxy
ToBeta retrieves the given version of the object.
func (*MockTargetHttpProxiesObj) ToGA ¶
func (m *MockTargetHttpProxiesObj) ToGA() *ga.TargetHttpProxy
ToGA retrieves the given version of the object.
type MockTargetHttpsProxies ¶
type MockTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpsProxies) (bool, *ga.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTargetHttpsProxies) (bool, []*ga.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy, m *MockTargetHttpsProxies) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpsProxies) (bool, error) SetSslCertificatesHook func(context.Context, *meta.Key, *ga.TargetHttpsProxiesSetSslCertificatesRequest, *MockTargetHttpsProxies) error SetUrlMapHook func(context.Context, *meta.Key, *ga.UrlMapReference, *MockTargetHttpsProxies) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockTargetHttpsProxies ¶
func NewMockTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockTargetHttpsProxies
NewMockTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockTargetHttpsProxies) Delete ¶
Delete is a mock for deleting the object.
func (*MockTargetHttpsProxies) Get ¶
func (m *MockTargetHttpsProxies) Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockTargetHttpsProxies) Insert ¶
func (m *MockTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetHttpsProxies) List ¶
func (m *MockTargetHttpsProxies) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockTargetHttpsProxies) Obj ¶
func (m *MockTargetHttpsProxies) Obj(o *ga.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockTargetHttpsProxies) SetSslCertificates ¶
func (m *MockTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *ga.TargetHttpsProxiesSetSslCertificatesRequest) error
SetSslCertificates is a mock for the corresponding method.
func (*MockTargetHttpsProxies) SetUrlMap ¶
func (m *MockTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *ga.UrlMapReference) error
SetUrlMap is a mock for the corresponding method.
type MockTargetHttpsProxiesObj ¶
type MockTargetHttpsProxiesObj struct {
Obj interface{}
}
MockTargetHttpsProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetHttpsProxiesObj) ToAlpha ¶
func (m *MockTargetHttpsProxiesObj) ToAlpha() *alpha.TargetHttpsProxy
ToAlpha retrieves the given version of the object.
func (*MockTargetHttpsProxiesObj) ToBeta ¶
func (m *MockTargetHttpsProxiesObj) ToBeta() *beta.TargetHttpsProxy
ToBeta retrieves the given version of the object.
func (*MockTargetHttpsProxiesObj) ToGA ¶
func (m *MockTargetHttpsProxiesObj) ToGA() *ga.TargetHttpsProxy
ToGA retrieves the given version of the object.
type MockTargetPools ¶
type MockTargetPools struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetPoolsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetPools) (bool, *ga.TargetPool, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockTargetPools) (bool, []*ga.TargetPool, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.TargetPool, m *MockTargetPools) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetPools) (bool, error) AddInstanceHook func(context.Context, *meta.Key, *ga.TargetPoolsAddInstanceRequest, *MockTargetPools) error RemoveInstanceHook func(context.Context, *meta.Key, *ga.TargetPoolsRemoveInstanceRequest, *MockTargetPools) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetPools is the mock for TargetPools.
func NewMockTargetPools ¶
func NewMockTargetPools(pr ProjectRouter, objs map[meta.Key]*MockTargetPoolsObj) *MockTargetPools
NewMockTargetPools returns a new mock for TargetPools.
func (*MockTargetPools) AddInstance ¶
func (m *MockTargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsAddInstanceRequest) error
AddInstance is a mock for the corresponding method.
func (*MockTargetPools) Delete ¶
Delete is a mock for deleting the object.
func (*MockTargetPools) Get ¶
func (m *MockTargetPools) Get(ctx context.Context, key *meta.Key) (*ga.TargetPool, error)
Get returns the object from the mock.
func (*MockTargetPools) Insert ¶
func (m *MockTargetPools) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetPool) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetPools) List ¶
func (m *MockTargetPools) List(ctx context.Context, region string, fl *filter.F) ([]*ga.TargetPool, error)
List all of the objects in the mock in the given region.
func (*MockTargetPools) Obj ¶
func (m *MockTargetPools) Obj(o *ga.TargetPool) *MockTargetPoolsObj
Obj wraps the object for use in the mock.
func (*MockTargetPools) RemoveInstance ¶
func (m *MockTargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *ga.TargetPoolsRemoveInstanceRequest) error
RemoveInstance is a mock for the corresponding method.
type MockTargetPoolsObj ¶
type MockTargetPoolsObj struct {
Obj interface{}
}
MockTargetPoolsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetPoolsObj) ToGA ¶
func (m *MockTargetPoolsObj) ToGA() *ga.TargetPool
ToGA retrieves the given version of the object.
type MockUrlMaps ¶
type MockUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockUrlMaps) (bool, *ga.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockUrlMaps) (bool, []*ga.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *ga.UrlMap, m *MockUrlMaps) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockUrlMaps) (bool, error) UpdateHook func(context.Context, *meta.Key, *ga.UrlMap, *MockUrlMaps) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockUrlMaps is the mock for UrlMaps.
func NewMockUrlMaps ¶
func NewMockUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockUrlMaps
NewMockUrlMaps returns a new mock for UrlMaps.
func (*MockUrlMaps) Delete ¶
Delete is a mock for deleting the object.
func (*MockUrlMaps) Get ¶
Get returns the object from the mock.
func (*MockUrlMaps) Insert ¶
Insert is a mock for inserting/creating a new object.
func (*MockUrlMaps) List ¶
List all of the objects in the mock.
func (*MockUrlMaps) Obj ¶
func (m *MockUrlMaps) Obj(o *ga.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockUrlMapsObj ¶
type MockUrlMapsObj struct {
Obj interface{}
}
MockUrlMapsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockUrlMapsObj) ToAlpha ¶
func (m *MockUrlMapsObj) ToAlpha() *alpha.UrlMap
ToAlpha retrieves the given version of the object.
func (*MockUrlMapsObj) ToBeta ¶
func (m *MockUrlMapsObj) ToBeta() *beta.UrlMap
ToBeta retrieves the given version of the object.
func (*MockUrlMapsObj) ToGA ¶
func (m *MockUrlMapsObj) ToGA() *ga.UrlMap
ToGA retrieves the given version of the object.
type MockZones ¶
type MockZones struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockZonesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockZones) (bool, *ga.Zone, error) ListHook func(ctx context.Context, fl *filter.F, m *MockZones) (bool, []*ga.Zone, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockZones is the mock for Zones.
func NewMockZones ¶
func NewMockZones(pr ProjectRouter, objs map[meta.Key]*MockZonesObj) *MockZones
NewMockZones returns a new mock for Zones.
func (*MockZones) Get ¶
Get returns the object from the mock.
func (*MockZones) List ¶
List all of the objects in the mock.
func (*MockZones) Obj ¶
func (m *MockZones) Obj(o *ga.Zone) *MockZonesObj
Obj wraps the object for use in the mock.
type MockZonesObj ¶
type MockZonesObj struct {
Obj interface{}
}
MockZonesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockZonesObj) ToGA ¶
func (m *MockZonesObj) ToGA() *ga.Zone
ToGA retrieves the given version of the object.
type NetworkEndpointGroups ¶
type NetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key) (*ga.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F) ([]*ga.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *ga.NetworkEndpointGroup) error Delete(ctx context.Context, key *meta.Key) error AggregatedList(ctx context.Context, fl *filter.F) (map[string][]*ga.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *ga.NetworkEndpointGroupsAttachEndpointsRequest) error DetachNetworkEndpoints(context.Context, *meta.Key, *ga.NetworkEndpointGroupsDetachEndpointsRequest) error ListNetworkEndpoints(context.Context, *meta.Key, *ga.NetworkEndpointGroupsListEndpointsRequest, *filter.F) ([]*ga.NetworkEndpointWithHealthStatus, error) }
NetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type NetworkTier ¶
type NetworkTier string
NetworkTier represents the Network Service Tier used by a resource
func NetworkTierGCEValueToType ¶
func NetworkTierGCEValueToType(s string) NetworkTier
NetworkTierGCEValueToType converts the value of the NetworkTier field of a GCE object to the NetworkTier type.
func (NetworkTier) ToGCEValue ¶
func (n NetworkTier) ToGCEValue() string
ToGCEValue converts NetworkTier to a string that we can populate the NetworkTier field of GCE objects, including ForwardingRules and Addresses.
type Networks ¶
type Networks interface { Get(ctx context.Context, key *meta.Key) (*ga.Network, error) List(ctx context.Context, fl *filter.F) ([]*ga.Network, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Network) error Delete(ctx context.Context, key *meta.Key) error }
Networks is an interface that allows for mocking of Networks.
type NopRateLimiter ¶
type NopRateLimiter struct { }
NopRateLimiter is a rate limiter that performs no rate limiting.
func (*NopRateLimiter) Accept ¶
func (*NopRateLimiter) Accept(ctx context.Context, key *RateLimitKey) error
Accept everything immediately.
type ProjectRouter ¶
type ProjectRouter interface { // ProjectID returns the project ID (non-numeric) to be used for a call // to an API (version,service). Example tuples: ("ga", "ForwardingRules"), // ("alpha", "GlobalAddresses"). // // This allows for plumbing different service calls to the appropriate // project, for instance, networking services to a separate project // than instance management. ProjectID(ctx context.Context, version meta.Version, service string) string }
ProjectRouter routes service calls to the appropriate GCE project.
type Projects ¶
type Projects interface { // ProjectsOps is an interface with additional non-CRUD type methods. // This interface is expected to be implemented by hand (non-autogenerated). ProjectsOps }
Projects is an interface that allows for mocking of Projects.
type ProjectsOps ¶
type ProjectsOps interface { Get(ctx context.Context, projectID string) (*compute.Project, error) SetCommonInstanceMetadata(ctx context.Context, projectID string, m *compute.Metadata) error }
ProjectsOps is the manually implemented methods for the Projects service.
type RateLimitKey ¶
type RateLimitKey struct { // ProjectID is the non-numeric ID of the project. ProjectID string // Operation is the specific method being invoked (e.g. "Get", "List"). Operation string // Version is the API version of the call. Version meta.Version // Service is the service being invoked (e.g. "Firewalls", "BackendServices") Service string }
RateLimitKey is a key identifying the operation to be rate limited. The rate limit queue will be determined based on the contents of RateKey.
type RateLimiter ¶
type RateLimiter interface { // Accept uses the RateLimitKey to derive a sleep time for the calling // goroutine. This call will block until the operation is ready for // execution. // // Accept returns an error if the given context ctx was canceled // while waiting for acceptance into the queue. Accept(ctx context.Context, key *RateLimitKey) error }
RateLimiter is the interface for a rate limiting policy.
type RegionBackendServices ¶
type RegionBackendServices interface { Get(ctx context.Context, key *meta.Key) (*ga.BackendService, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *ga.BackendService) error Delete(ctx context.Context, key *meta.Key) error GetHealth(context.Context, *meta.Key, *ga.ResourceGroupReference) (*ga.BackendServiceGroupHealth, error) Update(context.Context, *meta.Key, *ga.BackendService) error }
RegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type RegionDisks ¶
type RegionDisks interface { Get(ctx context.Context, key *meta.Key) (*ga.Disk, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Disk, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Disk) error Delete(ctx context.Context, key *meta.Key) error Resize(context.Context, *meta.Key, *ga.RegionDisksResizeRequest) error }
RegionDisks is an interface that allows for mocking of RegionDisks.
type Regions ¶
type Regions interface { Get(ctx context.Context, key *meta.Key) (*ga.Region, error) List(ctx context.Context, fl *filter.F) ([]*ga.Region, error) }
Regions is an interface that allows for mocking of Regions.
type ResourceID ¶
ResourceID identifies a GCE resource as parsed from compute resource URL.
func NewAddressesResourceID ¶
func NewAddressesResourceID(project, region, name string) *ResourceID
NewAddressesResourceID creates a ResourceID for the Addresses resource.
func NewBackendServicesResourceID ¶
func NewBackendServicesResourceID(project, name string) *ResourceID
NewBackendServicesResourceID creates a ResourceID for the BackendServices resource.
func NewDisksResourceID ¶
func NewDisksResourceID(project, zone, name string) *ResourceID
NewDisksResourceID creates a ResourceID for the Disks resource.
func NewFirewallsResourceID ¶
func NewFirewallsResourceID(project, name string) *ResourceID
NewFirewallsResourceID creates a ResourceID for the Firewalls resource.
func NewForwardingRulesResourceID ¶
func NewForwardingRulesResourceID(project, region, name string) *ResourceID
NewForwardingRulesResourceID creates a ResourceID for the ForwardingRules resource.
func NewGlobalAddressesResourceID ¶
func NewGlobalAddressesResourceID(project, name string) *ResourceID
NewGlobalAddressesResourceID creates a ResourceID for the GlobalAddresses resource.
func NewGlobalForwardingRulesResourceID ¶
func NewGlobalForwardingRulesResourceID(project, name string) *ResourceID
NewGlobalForwardingRulesResourceID creates a ResourceID for the GlobalForwardingRules resource.
func NewHealthChecksResourceID ¶
func NewHealthChecksResourceID(project, name string) *ResourceID
NewHealthChecksResourceID creates a ResourceID for the HealthChecks resource.
func NewHttpHealthChecksResourceID ¶
func NewHttpHealthChecksResourceID(project, name string) *ResourceID
NewHttpHealthChecksResourceID creates a ResourceID for the HttpHealthChecks resource.
func NewHttpsHealthChecksResourceID ¶
func NewHttpsHealthChecksResourceID(project, name string) *ResourceID
NewHttpsHealthChecksResourceID creates a ResourceID for the HttpsHealthChecks resource.
func NewInstanceGroupsResourceID ¶
func NewInstanceGroupsResourceID(project, zone, name string) *ResourceID
NewInstanceGroupsResourceID creates a ResourceID for the InstanceGroups resource.
func NewInstancesResourceID ¶
func NewInstancesResourceID(project, zone, name string) *ResourceID
NewInstancesResourceID creates a ResourceID for the Instances resource.
func NewNetworkEndpointGroupsResourceID ¶
func NewNetworkEndpointGroupsResourceID(project, zone, name string) *ResourceID
NewNetworkEndpointGroupsResourceID creates a ResourceID for the NetworkEndpointGroups resource.
func NewNetworksResourceID ¶
func NewNetworksResourceID(project, name string) *ResourceID
NewNetworksResourceID creates a ResourceID for the Networks resource.
func NewProjectsResourceID ¶
func NewProjectsResourceID(project string) *ResourceID
NewProjectsResourceID creates a ResourceID for the Projects resource.
func NewRegionBackendServicesResourceID ¶
func NewRegionBackendServicesResourceID(project, region, name string) *ResourceID
NewRegionBackendServicesResourceID creates a ResourceID for the RegionBackendServices resource.
func NewRegionDisksResourceID ¶
func NewRegionDisksResourceID(project, region, name string) *ResourceID
NewRegionDisksResourceID creates a ResourceID for the RegionDisks resource.
func NewRegionHealthChecksResourceID ¶
func NewRegionHealthChecksResourceID(project, region, name string) *ResourceID
NewRegionHealthChecksResourceID creates a ResourceID for the RegionHealthChecks resource.
func NewRegionSslCertificatesResourceID ¶
func NewRegionSslCertificatesResourceID(project, region, name string) *ResourceID
NewRegionSslCertificatesResourceID creates a ResourceID for the RegionSslCertificates resource.
func NewRegionTargetHttpProxiesResourceID ¶
func NewRegionTargetHttpProxiesResourceID(project, region, name string) *ResourceID
NewRegionTargetHttpProxiesResourceID creates a ResourceID for the RegionTargetHttpProxies resource.
func NewRegionTargetHttpsProxiesResourceID ¶
func NewRegionTargetHttpsProxiesResourceID(project, region, name string) *ResourceID
NewRegionTargetHttpsProxiesResourceID creates a ResourceID for the RegionTargetHttpsProxies resource.
func NewRegionUrlMapsResourceID ¶
func NewRegionUrlMapsResourceID(project, region, name string) *ResourceID
NewRegionUrlMapsResourceID creates a ResourceID for the RegionUrlMaps resource.
func NewRegionsResourceID ¶
func NewRegionsResourceID(project, name string) *ResourceID
NewRegionsResourceID creates a ResourceID for the Regions resource.
func NewRoutesResourceID ¶
func NewRoutesResourceID(project, name string) *ResourceID
NewRoutesResourceID creates a ResourceID for the Routes resource.
func NewSecurityPoliciesResourceID ¶
func NewSecurityPoliciesResourceID(project, name string) *ResourceID
NewSecurityPoliciesResourceID creates a ResourceID for the SecurityPolicies resource.
func NewSslCertificatesResourceID ¶
func NewSslCertificatesResourceID(project, name string) *ResourceID
NewSslCertificatesResourceID creates a ResourceID for the SslCertificates resource.
func NewSubnetworksResourceID ¶
func NewSubnetworksResourceID(project, region, name string) *ResourceID
NewSubnetworksResourceID creates a ResourceID for the Subnetworks resource.
func NewTargetHttpProxiesResourceID ¶
func NewTargetHttpProxiesResourceID(project, name string) *ResourceID
NewTargetHttpProxiesResourceID creates a ResourceID for the TargetHttpProxies resource.
func NewTargetHttpsProxiesResourceID ¶
func NewTargetHttpsProxiesResourceID(project, name string) *ResourceID
NewTargetHttpsProxiesResourceID creates a ResourceID for the TargetHttpsProxies resource.
func NewTargetPoolsResourceID ¶
func NewTargetPoolsResourceID(project, region, name string) *ResourceID
NewTargetPoolsResourceID creates a ResourceID for the TargetPools resource.
func NewUrlMapsResourceID ¶
func NewUrlMapsResourceID(project, name string) *ResourceID
NewUrlMapsResourceID creates a ResourceID for the UrlMaps resource.
func NewZonesResourceID ¶
func NewZonesResourceID(project, name string) *ResourceID
NewZonesResourceID creates a ResourceID for the Zones resource.
func ParseResourceURL ¶
func ParseResourceURL(url string) (*ResourceID, error)
ParseResourceURL parses resource URLs of the following formats:
global/<res>/<name> regions/<region>/<res>/<name> zones/<zone>/<res>/<name> projects/<proj> projects/<proj>/global/<res>/<name> projects/<proj>/regions/<region>/<res>/<name> projects/<proj>/zones/<zone>/<res>/<name> [https://www.googleapis.com/compute/<ver>]/projects/<proj>/global/<res>/<name> [https://www.googleapis.com/compute/<ver>]/projects/<proj>/regions/<region>/<res>/<name> [https://www.googleapis.com/compute/<ver>]/projects/<proj>/zones/<zone>/<res>/<name>
func (*ResourceID) Equal ¶
func (r *ResourceID) Equal(other *ResourceID) bool
Equal returns true if two resource IDs are equal.
func (*ResourceID) RelativeResourceName ¶
func (r *ResourceID) RelativeResourceName() string
RelativeResourceName returns the relative resource name string representing this ResourceID.
func (*ResourceID) ResourcePath ¶
func (r *ResourceID) ResourcePath() string
ResourcePath returns the resource path representing this ResourceID.
func (*ResourceID) SelfLink ¶
func (r *ResourceID) SelfLink(ver meta.Version) string
type Routes ¶
type Routes interface { Get(ctx context.Context, key *meta.Key) (*ga.Route, error) List(ctx context.Context, fl *filter.F) ([]*ga.Route, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Route) error Delete(ctx context.Context, key *meta.Key) error }
Routes is an interface that allows for mocking of Routes.
type Service ¶
type Service struct { GA *ga.Service Alpha *alpha.Service Beta *beta.Service ProjectRouter ProjectRouter RateLimiter RateLimiter }
Service is the top-level adapter for all of the different compute API versions.
func (*Service) WaitForCompletion ¶
WaitForCompletion of a long running operation. This will poll the state of GCE for the completion status of the given operation. genericOp can be one of alpha, beta, ga Operation types.
type SingleProjectRouter ¶
type SingleProjectRouter struct {
ID string
}
SingleProjectRouter routes all service calls to the same project ID.
type SslCertificates ¶
type SslCertificates interface { Get(ctx context.Context, key *meta.Key) (*ga.SslCertificate, error) List(ctx context.Context, fl *filter.F) ([]*ga.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *ga.SslCertificate) error Delete(ctx context.Context, key *meta.Key) error }
SslCertificates is an interface that allows for mocking of SslCertificates.
type Subnetworks ¶
type Subnetworks interface { Get(ctx context.Context, key *meta.Key) (*ga.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *ga.Subnetwork) error Delete(ctx context.Context, key *meta.Key) error }
Subnetworks is an interface that allows for mocking of Subnetworks.
type TargetHttpProxies ¶
type TargetHttpProxies interface { Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpProxy) error Delete(ctx context.Context, key *meta.Key) error SetUrlMap(context.Context, *meta.Key, *ga.UrlMapReference) error }
TargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type TargetHttpsProxies ¶
type TargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key) (*ga.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F) ([]*ga.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetHttpsProxy) error Delete(ctx context.Context, key *meta.Key) error SetSslCertificates(context.Context, *meta.Key, *ga.TargetHttpsProxiesSetSslCertificatesRequest) error SetUrlMap(context.Context, *meta.Key, *ga.UrlMapReference) error }
TargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type TargetPools ¶
type TargetPools interface { Get(ctx context.Context, key *meta.Key) (*ga.TargetPool, error) List(ctx context.Context, region string, fl *filter.F) ([]*ga.TargetPool, error) Insert(ctx context.Context, key *meta.Key, obj *ga.TargetPool) error Delete(ctx context.Context, key *meta.Key) error AddInstance(context.Context, *meta.Key, *ga.TargetPoolsAddInstanceRequest) error RemoveInstance(context.Context, *meta.Key, *ga.TargetPoolsRemoveInstanceRequest) error }
TargetPools is an interface that allows for mocking of TargetPools.
type UrlMaps ¶
type UrlMaps interface { Get(ctx context.Context, key *meta.Key) (*ga.UrlMap, error) List(ctx context.Context, fl *filter.F) ([]*ga.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *ga.UrlMap) error Delete(ctx context.Context, key *meta.Key) error Update(context.Context, *meta.Key, *ga.UrlMap) error }
UrlMaps is an interface that allows for mocking of UrlMaps.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package filter encapsulates the filter argument to compute API calls.
|
Package filter encapsulates the filter argument to compute API calls. |
Package meta contains the meta description of the GCE cloud types to generate code for.
|
Package meta contains the meta description of the GCE cloud types to generate code for. |
Package mock encapsulates mocks for testing GCE provider functionality.
|
Package mock encapsulates mocks for testing GCE provider functionality. |