cloud

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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

View Source
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

func RelativeResourceName(project, resource string, key *meta.Key) string

RelativeResourceName returns the path starting from project. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

func ResourcePath

func ResourcePath(resource string, key *meta.Key) string

ResourcePath returns the path starting from the location. Example: regions/us-central1/subnetworks/my-subnet

func SelfLink(ver meta.Version, project, resource string, key *meta.Key) string

SelfLink returns the self link URL for the given object.

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

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

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 NewGCE

func NewGCE(s *Service) *GCE

NewGCE returns a GCE.

func (*GCE) Addresses

func (gce *GCE) Addresses() 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) Disks

func (gce *GCE) Disks() Disks

Disks returns the interface for the ga Disks.

func (*GCE) Firewalls

func (gce *GCE) Firewalls() 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

func (gce *GCE) Instances() 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

func (gce *GCE) Networks() Networks

Networks returns the interface for the ga Networks.

func (*GCE) Projects

func (gce *GCE) Projects() 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

func (gce *GCE) Regions() Regions

Regions returns the interface for the ga Regions.

func (*GCE) Routes

func (gce *GCE) Routes() 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

func (gce *GCE) UrlMaps() UrlMaps

UrlMaps returns the interface for the ga UrlMaps.

func (*GCE) Zones

func (gce *GCE) Zones() Zones

Zones returns the interface for the ga Zones.

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

func (g *GCEAddresses) Delete(ctx context.Context, key *meta.Key) error

Delete the Address referenced by key.

func (*GCEAddresses) Get

func (g *GCEAddresses) Get(ctx context.Context, key *meta.Key) (*ga.Address, error)

Get the Address named by key.

func (*GCEAddresses) Insert

func (g *GCEAddresses) Insert(ctx context.Context, key *meta.Key, obj *ga.Address) error

Insert Address with key of value obj.

func (*GCEAddresses) List

func (g *GCEAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*ga.Address, error)

List all Address objects.

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

func (g *GCEAlphaAddresses) Delete(ctx context.Context, key *meta.Key) error

Delete the Address referenced by key.

func (*GCEAlphaAddresses) Get

func (g *GCEAlphaAddresses) Get(ctx context.Context, key *meta.Key) (*alpha.Address, error)

Get the Address named by key.

func (*GCEAlphaAddresses) Insert

func (g *GCEAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error

Insert Address with key of value obj.

func (*GCEAlphaAddresses) List

func (g *GCEAlphaAddresses) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.Address, error)

List all Address objects.

type GCEAlphaBackendServices

type GCEAlphaBackendServices struct {
	// contains filtered or unexported fields
}

GCEAlphaBackendServices is a simplifying adapter for the GCE BackendServices.

func (*GCEAlphaBackendServices) Delete

func (g *GCEAlphaBackendServices) Delete(ctx context.Context, key *meta.Key) error

Delete the BackendService referenced by key.

func (*GCEAlphaBackendServices) Get

Get the BackendService named by key.

func (*GCEAlphaBackendServices) Insert

Insert BackendService with key of value obj.

func (*GCEAlphaBackendServices) List

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

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

func (g *GCEAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key) error

Delete the ForwardingRule referenced by key.

func (*GCEAlphaForwardingRules) Get

Get the ForwardingRule named by key.

func (*GCEAlphaForwardingRules) Insert

Insert ForwardingRule with key of value obj.

func (*GCEAlphaForwardingRules) List

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

func (g *GCEAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key) error

Delete the Address referenced by key.

func (*GCEAlphaGlobalAddresses) Get

Get the Address named by key.

func (*GCEAlphaGlobalAddresses) Insert

func (g *GCEAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *alpha.Address) error

Insert Address with key of value obj.

func (*GCEAlphaGlobalAddresses) List

List all Address objects.

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

Get the ForwardingRule named by key.

func (*GCEAlphaGlobalForwardingRules) Insert

Insert ForwardingRule with key of value obj.

func (*GCEAlphaGlobalForwardingRules) List

List all ForwardingRule objects.

func (*GCEAlphaGlobalForwardingRules) SetTarget

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

func (g *GCEAlphaHealthChecks) Delete(ctx context.Context, key *meta.Key) error

Delete the HealthCheck referenced by key.

func (*GCEAlphaHealthChecks) Get

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

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

func (g *GCEAlphaInstances) Delete(ctx context.Context, key *meta.Key) error

Delete the Instance referenced by key.

func (*GCEAlphaInstances) DetachDisk

func (g *GCEAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string) error

DetachDisk is a method on GCEAlphaInstances.

func (*GCEAlphaInstances) Get

func (g *GCEAlphaInstances) Get(ctx context.Context, key *meta.Key) (*alpha.Instance, error)

Get the Instance named by key.

func (*GCEAlphaInstances) Insert

func (g *GCEAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *alpha.Instance) error

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

AggregatedList lists all resources of the given type across all locations.

func (*GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints

AttachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.

func (*GCEAlphaNetworkEndpointGroups) Delete

Delete the NetworkEndpointGroup referenced by key.

func (*GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints

DetachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.

func (*GCEAlphaNetworkEndpointGroups) Get

Get the NetworkEndpointGroup named by key.

func (*GCEAlphaNetworkEndpointGroups) Insert

Insert NetworkEndpointGroup with key of value obj.

func (*GCEAlphaNetworkEndpointGroups) List

List all NetworkEndpointGroup objects.

func (*GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints

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

func (g *GCEAlphaNetworks) Delete(ctx context.Context, key *meta.Key) error

Delete the Network referenced by key.

func (*GCEAlphaNetworks) Get

func (g *GCEAlphaNetworks) Get(ctx context.Context, key *meta.Key) (*alpha.Network, error)

Get the Network named by key.

func (*GCEAlphaNetworks) Insert

func (g *GCEAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *alpha.Network) error

Insert Network with key of value obj.

func (*GCEAlphaNetworks) List

func (g *GCEAlphaNetworks) List(ctx context.Context, fl *filter.F) ([]*alpha.Network, error)

List all Network objects.

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

Get the BackendService named by key.

func (*GCEAlphaRegionBackendServices) GetHealth

GetHealth is a method on GCEAlphaRegionBackendServices.

func (*GCEAlphaRegionBackendServices) Insert

Insert BackendService with key of value obj.

func (*GCEAlphaRegionBackendServices) List

List all BackendService objects.

func (*GCEAlphaRegionBackendServices) Update

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

func (g *GCEAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key) error

Delete the HealthCheck referenced by key.

func (*GCEAlphaRegionHealthChecks) Get

Get the HealthCheck named by key.

func (*GCEAlphaRegionHealthChecks) Insert

Insert HealthCheck with key of value obj.

func (*GCEAlphaRegionHealthChecks) List

List all HealthCheck objects.

func (*GCEAlphaRegionHealthChecks) Update

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

Get the SslCertificate named by key.

func (*GCEAlphaRegionSslCertificates) Insert

Insert SslCertificate with key of value obj.

func (*GCEAlphaRegionSslCertificates) List

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

Get the TargetHttpProxy named by key.

func (*GCEAlphaRegionTargetHttpProxies) Insert

Insert TargetHttpProxy with key of value obj.

func (*GCEAlphaRegionTargetHttpProxies) List

List all TargetHttpProxy objects.

func (*GCEAlphaRegionTargetHttpProxies) SetUrlMap

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

Get the TargetHttpsProxy named by key.

func (*GCEAlphaRegionTargetHttpsProxies) Insert

Insert TargetHttpsProxy with key of value obj.

func (*GCEAlphaRegionTargetHttpsProxies) List

List all TargetHttpsProxy objects.

func (*GCEAlphaRegionTargetHttpsProxies) SetSslCertificates

SetSslCertificates is a method on GCEAlphaRegionTargetHttpsProxies.

func (*GCEAlphaRegionTargetHttpsProxies) SetUrlMap

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

func (g *GCEAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key) error

Delete the UrlMap referenced by key.

func (*GCEAlphaRegionUrlMaps) Get

Get the UrlMap named by key.

func (*GCEAlphaRegionUrlMaps) Insert

func (g *GCEAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error

Insert UrlMap with key of value obj.

func (*GCEAlphaRegionUrlMaps) List

func (g *GCEAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F) ([]*alpha.UrlMap, error)

List all UrlMap objects.

func (*GCEAlphaRegionUrlMaps) Update

func (g *GCEAlphaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error

Update is a method on GCEAlphaRegionUrlMaps.

type GCEAlphaSslCertificates

type GCEAlphaSslCertificates struct {
	// contains filtered or unexported fields
}

GCEAlphaSslCertificates is a simplifying adapter for the GCE SslCertificates.

func (*GCEAlphaSslCertificates) Delete

func (g *GCEAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key) error

Delete the SslCertificate referenced by key.

func (*GCEAlphaSslCertificates) Get

Get the SslCertificate named by key.

func (*GCEAlphaSslCertificates) Insert

Insert SslCertificate with key of value obj.

func (*GCEAlphaSslCertificates) List

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

func (g *GCEAlphaSubnetworks) Delete(ctx context.Context, key *meta.Key) error

Delete the Subnetwork referenced by key.

func (*GCEAlphaSubnetworks) Get

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

func (g *GCEAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key) error

Delete the TargetHttpProxy referenced by key.

func (*GCEAlphaTargetHttpProxies) Get

Get the TargetHttpProxy named by key.

func (*GCEAlphaTargetHttpProxies) Insert

Insert TargetHttpProxy with key of value obj.

func (*GCEAlphaTargetHttpProxies) List

List all TargetHttpProxy objects.

func (*GCEAlphaTargetHttpProxies) SetUrlMap

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

func (g *GCEAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key) error

Delete the TargetHttpsProxy referenced by key.

func (*GCEAlphaTargetHttpsProxies) Get

Get the TargetHttpsProxy named by key.

func (*GCEAlphaTargetHttpsProxies) Insert

Insert TargetHttpsProxy with key of value obj.

func (*GCEAlphaTargetHttpsProxies) List

List all TargetHttpsProxy objects.

func (*GCEAlphaTargetHttpsProxies) SetSslCertificates

SetSslCertificates is a method on GCEAlphaTargetHttpsProxies.

func (*GCEAlphaTargetHttpsProxies) SetUrlMap

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

func (g *GCEAlphaUrlMaps) Delete(ctx context.Context, key *meta.Key) error

Delete the UrlMap referenced by key.

func (*GCEAlphaUrlMaps) Get

func (g *GCEAlphaUrlMaps) Get(ctx context.Context, key *meta.Key) (*alpha.UrlMap, error)

Get the UrlMap named by key.

func (*GCEAlphaUrlMaps) Insert

func (g *GCEAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *alpha.UrlMap) error

Insert UrlMap with key of value obj.

func (*GCEAlphaUrlMaps) List

func (g *GCEAlphaUrlMaps) List(ctx context.Context, fl *filter.F) ([]*alpha.UrlMap, error)

List all UrlMap objects.

func (*GCEAlphaUrlMaps) Update

func (g *GCEAlphaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *alpha.UrlMap) error

Update is a method on GCEAlphaUrlMaps.

type GCEBackendServices

type GCEBackendServices struct {
	// contains filtered or unexported fields
}

GCEBackendServices is a simplifying adapter for the GCE BackendServices.

func (*GCEBackendServices) Delete

func (g *GCEBackendServices) Delete(ctx context.Context, key *meta.Key) error

Delete the BackendService referenced by key.

func (*GCEBackendServices) Get

Get the BackendService named by key.

func (*GCEBackendServices) GetHealth

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