Documentation ¶
Index ¶
- func CreateBackendService(be *BackendService, cloud *gce.GCECloud) error
- func UpdateBackendService(be *BackendService, cloud *gce.GCECloud) error
- type Backend
- type BackendService
- type BackendServiceAppEngineBackend
- type BackendServiceCdnPolicy
- type BackendServiceCloudFunctionBackend
- type BackendServiceFailoverPolicy
- type BackendServiceIAP
- type BackendServiceIAPOAuth2ClientInfo
- type CacheKeyPolicy
- type ConnectionDraining
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBackendService ¶
func CreateBackendService(be *BackendService, cloud *gce.GCECloud) error
func UpdateBackendService ¶
func UpdateBackendService(be *BackendService, cloud *gce.GCECloud) error
Types ¶
type Backend ¶
type Backend struct { BalancingMode string `json:"balancingMode,omitempty"` CapacityScaler float64 `json:"capacityScaler,omitempty"` Description string `json:"description,omitempty"` Failover bool `json:"failover,omitempty"` Group string `json:"group,omitempty"` MaxConnections int64 `json:"maxConnections,omitempty"` MaxConnectionsPerEndpoint int64 `json:"maxConnectionsPerEndpoint,omitempty"` MaxConnectionsPerInstance int64 `json:"maxConnectionsPerInstance,omitempty"` MaxRate int64 `json:"maxRate,omitempty"` MaxRatePerEndpoint float64 `json:"maxRatePerEndpoint,omitempty"` MaxRatePerInstance float64 `json:"maxRatePerInstance,omitempty"` MaxUtilization float64 `json:"maxUtilization,omitempty"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` }
type BackendService ¶
type BackendService struct { // Version keeps track of the intended compute version for this BackendService. // Note that the compute API's do not contain this field. It is for our // own bookkeeping purposes. Version meta.Version `json:"-"` AffinityCookieTtlSec int64 `json:"affinityCookieTtlSec,omitempty"` AppEngineBackend *BackendServiceAppEngineBackend `json:"appEngineBackend,omitempty"` Backends []*Backend `json:"backends,omitempty"` CdnPolicy *BackendServiceCdnPolicy `json:"cdnPolicy,omitempty"` CloudFunctionBackend *BackendServiceCloudFunctionBackend `json:"cloudFunctionBackend,omitempty"` ConnectionDraining *ConnectionDraining `json:"connectionDraining,omitempty"` CreationTimestamp string `json:"creationTimestamp,omitempty"` CustomRequestHeaders []string `json:"customRequestHeaders,omitempty"` Description string `json:"description,omitempty"` EnableCDN bool `json:"enableCDN,omitempty"` FailoverPolicy *BackendServiceFailoverPolicy `json:"failoverPolicy,omitempty"` Fingerprint string `json:"fingerprint,omitempty"` HealthChecks []string `json:"healthChecks,omitempty"` Iap *BackendServiceIAP `json:"iap,omitempty"` Id uint64 `json:"id,omitempty,string"` Kind string `json:"kind,omitempty"` LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` Name string `json:"name,omitempty"` Port int64 `json:"port,omitempty"` PortName string `json:"portName,omitempty"` Protocol string `json:"protocol,omitempty"` Region string `json:"region,omitempty"` SecurityPolicy string `json:"securityPolicy,omitempty"` SelfLink string `json:"selfLink,omitempty"` SessionAffinity string `json:"sessionAffinity,omitempty"` TimeoutSec int64 `json:"timeoutSec,omitempty"` googleapi.ServerResponse `json:"-"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` }
BackendService is a composite type which embeds the structure of all the compute alpha, beta and GA Backend Service.
func GetBackendService ¶
type BackendServiceCdnPolicy ¶
type BackendServiceCdnPolicy struct { CacheKeyPolicy *CacheKeyPolicy `json:"cacheKeyPolicy,omitempty"` SignedUrlCacheMaxAgeSec int64 `json:"signedUrlCacheMaxAgeSec,omitempty,string"` SignedUrlKeyNames []string `json:"signedUrlKeyNames,omitempty"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` }
type BackendServiceFailoverPolicy ¶
type BackendServiceFailoverPolicy struct { DisableConnectionDrainOnFailover bool `json:"disableConnectionDrainOnFailover,omitempty"` DropTrafficIfUnhealthy bool `json:"dropTrafficIfUnhealthy,omitempty"` FailoverRatio float64 `json:"failoverRatio,omitempty"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` }
type BackendServiceIAP ¶
type BackendServiceIAP struct { Enabled bool `json:"enabled,omitempty"` Oauth2ClientId string `json:"oauth2ClientId,omitempty"` Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` Oauth2ClientInfo *BackendServiceIAPOAuth2ClientInfo `json:"oauth2ClientInfo,omitempty"` }
type CacheKeyPolicy ¶
type CacheKeyPolicy struct { IncludeHost bool `json:"includeHost,omitempty"` IncludeProtocol bool `json:"includeProtocol,omitempty"` IncludeQueryString bool `json:"includeQueryString,omitempty"` QueryStringBlacklist []string `json:"queryStringBlacklist,omitempty"` QueryStringWhitelist []string `json:"queryStringWhitelist,omitempty"` ForceSendFields []string `json:"-"` NullFields []string `json:"-"` }
type ConnectionDraining ¶
Click to show internal directories.
Click to hide internal directories.