packer-cn/vendor/github.com/oracle/oci-go-sdk/loadbalancer/backend.go

58 lines
2.2 KiB
Go

// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// Load Balancing Service API
//
// API for the Load Balancing Service
//
package loadbalancer
import (
"github.com/oracle/oci-go-sdk/common"
)
// Backend The configuration of a backend server that is a member of a load balancer backend set.
// For more information, see Managing Backend Servers (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingbackendservers.htm).
type Backend struct {
// Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
// traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy.
// Example: `true`
Backup *bool `mandatory:"true" json:"backup"`
// Whether the load balancer should drain this server. Servers marked "drain" receive no new
// incoming traffic.
// Example: `true`
Drain *bool `mandatory:"true" json:"drain"`
// The IP address of the backend server.
// Example: `10.10.10.4`
IpAddress *string `mandatory:"true" json:"ipAddress"`
// A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
// Example: `10.10.10.4:8080`
Name *string `mandatory:"true" json:"name"`
// Whether the load balancer should treat this server as offline. Offline servers receive no incoming
// traffic.
// Example: `true`
Offline *bool `mandatory:"true" json:"offline"`
// The communication port for the backend server.
// Example: `8080`
Port *int `mandatory:"true" json:"port"`
// The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
// proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
// as a server weighted '1'.
// For more information on load balancing policies, see
// How Load Balancing Policies Work (https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm).
// Example: `3`
Weight *int `mandatory:"true" json:"weight"`
}
func (m Backend) String() string {
return common.PointerString(m)
}