Documentation
¶
Index ¶
- Constants
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type BasicAuth
- type Configuration
- type FwdTable
- type K8switch
- type K8switchApiService
- func (a *K8switchApiService) CreateK8switchByID(name string, k8switch K8switch) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, ...) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
- func (a *K8switchApiService) CreateK8switchServiceListByID(name string, service []Service) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchByID(name string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchFwdTableByID(name string, address string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchFwdTableListByID(name string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchPortsByID(name string, portsName string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchPortsListByID(name string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchServiceBackendListByID(name string, vip string, vport int32, proto string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchServiceByID(name string, vip string, vport int32, proto string) (*http.Response, error)
- func (a *K8switchApiService) DeleteK8switchServiceListByID(name string) (*http.Response, error)
- func (a *K8switchApiService) ReadK8switchByID(name string) (K8switch, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchClientSubnetByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchClusterIpSubnetByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchFwdTableByID(name string, address string) (FwdTable, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchFwdTableListByID(name string) ([]FwdTable, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchFwdTableMacByID(name string, address string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchFwdTablePortByID(name string, address string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchListByID() ([]K8switch, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchLoglevelByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsByID(name string, portsName string) (Ports, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsListByID(name string) ([]Ports, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsPeerByID(name string, portsName string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsStatusByID(name string, portsName string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsTypeByID(name string, portsName string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchPortsUuidByID(name string, portsName string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32) (ServiceBackend, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceBackendListByID(name string, vip string, vport int32, proto string) ([]ServiceBackend, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceBackendNameByID(name string, vip string, vport int32, proto string, ip string, port int32) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceBackendPortByID(name string, vip string, vport int32, proto string, ip string) (int32, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceBackendWeightByID(name string, vip string, vport int32, proto string, ip string, port int32) (int32, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceByID(name string, vip string, vport int32, proto string) (Service, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceListByID(name string) ([]Service, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchServiceNameByID(name string, vip string, vport int32, proto string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchTypeByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchUuidByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReadK8switchVirtualClientSubnetByID(name string) (string, *http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchByID(name string, k8switch K8switch) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, ...) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
- func (a *K8switchApiService) ReplaceK8switchServiceListByID(name string, service []Service) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchByID(name string, k8switch K8switch) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchClientSubnetByID(name string, clientSubnet string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchClusterIpSubnetByID(name string, clusterIpSubnet string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchFwdTableMacByID(name string, address string, mac string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchFwdTablePortByID(name string, address string, port string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchListByID(k8switch []K8switch) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchLoglevelByID(name string, loglevel string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchPortsPeerByID(name string, portsName string, peer string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchPortsTypeByID(name string, portsName string, type_ string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, ...) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceBackendNameByID(name string, vip string, vport int32, proto string, ip string, port int32, ...) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceBackendWeightByID(name string, vip string, vport int32, proto string, ip string, port int32, ...) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceListByID(name string, service []Service) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchServiceNameByID(name string, vip string, vport int32, proto string, name2 string) (*http.Response, error)
- func (a *K8switchApiService) UpdateK8switchVirtualClientSubnetByID(name string, virtualClientSubnet string) (*http.Response, error)
- type Ports
- type Service
- type ServiceBackend
Constants ¶
const ContextAPIKey int = 4
const ContextAccessToken int = 3
const ContextBasicAuth int = 2
const ContextOAuth2 int = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct {
// API Services
K8switchApi *K8switchApiService
// contains filtered or unexported fields
}
APIClient manages communication with the k8switch API API v2.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the swagger operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type Configuration ¶
type Configuration struct {
BasePath string `json:"basePath,omitempty"`
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
HTTPClient *http.Client
}
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type K8switch ¶
type K8switch struct {
// Name of the k8switch service
Name string `json:"name,omitempty"`
// UUID of the Cube
Uuid string `json:"uuid,omitempty"`
// Type of the Cube (TYPE_TC, TYPE_XDP_SKB, TYPE_XDP_DRV)
Type_ string `json:"type,omitempty"`
// Defines the logging level of a service instance, from none (OFF) to the most verbose (TRACE)
Loglevel string `json:"loglevel,omitempty"`
// Entry of the ports table
Ports []Ports `json:"ports,omitempty"`
// Range of VIPs where clusterIP services are exposed
ClusterIpSubnet string `json:"cluster-ip-subnet,omitempty"`
// Range of IPs of pods in this node
ClientSubnet string `json:"client-subnet,omitempty"`
// Range where client's IPs are mapped into
VirtualClientSubnet string `json:"virtual-client-subnet,omitempty"`
// Services (i.e., virtual ip:protocol:port) exported to the client
Service []Service `json:"service,omitempty"`
// Entry associated with the forwarding table
FwdTable []FwdTable `json:"fwd-table,omitempty"`
}
type K8switchApiService ¶
type K8switchApiService service
func (*K8switchApiService) CreateK8switchByID ¶
func (a *K8switchApiService) CreateK8switchByID(name string, k8switch K8switch) (*http.Response, error)
K8switchApiService Create k8switch by ID Create operation of resource: k8switch
@param name ID of name @param k8switch k8switchbody object @return
func (*K8switchApiService) CreateK8switchFwdTableByID ¶
func (a *K8switchApiService) CreateK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
K8switchApiService Create fwd-table by ID Create operation of resource: fwd-table
@param name ID of name @param address ID of address @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) CreateK8switchFwdTableListByID ¶
func (a *K8switchApiService) CreateK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
K8switchApiService Create fwd-table by ID Create operation of resource: fwd-table
@param name ID of name @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) CreateK8switchPortsByID ¶
func (a *K8switchApiService) CreateK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
K8switchApiService Create ports by ID Create operation of resource: ports
@param name ID of name @param portsName ID of ports_name @param ports portsbody object @return
func (*K8switchApiService) CreateK8switchPortsListByID ¶
func (a *K8switchApiService) CreateK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
K8switchApiService Create ports by ID Create operation of resource: ports
@param name ID of name @param ports portsbody object @return
func (*K8switchApiService) CreateK8switchServiceBackendByID ¶
func (a *K8switchApiService) CreateK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, backend ServiceBackend) (*http.Response, error)
K8switchApiService Create backend by ID Create operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @param backend backendbody object @return
func (*K8switchApiService) CreateK8switchServiceBackendListByID ¶
func (a *K8switchApiService) CreateK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
K8switchApiService Create backend by ID Create operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param backend backendbody object @return
func (*K8switchApiService) CreateK8switchServiceByID ¶
func (a *K8switchApiService) CreateK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
K8switchApiService Create service by ID Create operation of resource: service
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param service servicebody object @return
func (*K8switchApiService) CreateK8switchServiceListByID ¶
func (a *K8switchApiService) CreateK8switchServiceListByID(name string, service []Service) (*http.Response, error)
K8switchApiService Create service by ID Create operation of resource: service
@param name ID of name @param service servicebody object @return
func (*K8switchApiService) DeleteK8switchByID ¶
func (a *K8switchApiService) DeleteK8switchByID(name string) (*http.Response, error)
K8switchApiService Delete k8switch by ID Delete operation of resource: k8switch
@param name ID of name @return
func (*K8switchApiService) DeleteK8switchFwdTableByID ¶
func (a *K8switchApiService) DeleteK8switchFwdTableByID(name string, address string) (*http.Response, error)
K8switchApiService Delete fwd-table by ID Delete operation of resource: fwd-table
@param name ID of name @param address ID of address @return
func (*K8switchApiService) DeleteK8switchFwdTableListByID ¶
func (a *K8switchApiService) DeleteK8switchFwdTableListByID(name string) (*http.Response, error)
K8switchApiService Delete fwd-table by ID Delete operation of resource: fwd-table
@param name ID of name @return
func (*K8switchApiService) DeleteK8switchPortsByID ¶
func (a *K8switchApiService) DeleteK8switchPortsByID(name string, portsName string) (*http.Response, error)
K8switchApiService Delete ports by ID Delete operation of resource: ports
@param name ID of name @param portsName ID of ports_name @return
func (*K8switchApiService) DeleteK8switchPortsListByID ¶
func (a *K8switchApiService) DeleteK8switchPortsListByID(name string) (*http.Response, error)
K8switchApiService Delete ports by ID Delete operation of resource: ports
@param name ID of name @return
func (*K8switchApiService) DeleteK8switchServiceBackendByID ¶
func (a *K8switchApiService) DeleteK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32) (*http.Response, error)
K8switchApiService Delete backend by ID Delete operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @return
func (*K8switchApiService) DeleteK8switchServiceBackendListByID ¶
func (a *K8switchApiService) DeleteK8switchServiceBackendListByID(name string, vip string, vport int32, proto string) (*http.Response, error)
K8switchApiService Delete backend by ID Delete operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @return
func (*K8switchApiService) DeleteK8switchServiceByID ¶
func (a *K8switchApiService) DeleteK8switchServiceByID(name string, vip string, vport int32, proto string) (*http.Response, error)
K8switchApiService Delete service by ID Delete operation of resource: service
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @return
func (*K8switchApiService) DeleteK8switchServiceListByID ¶
func (a *K8switchApiService) DeleteK8switchServiceListByID(name string) (*http.Response, error)
K8switchApiService Delete service by ID Delete operation of resource: service
@param name ID of name @return
func (*K8switchApiService) ReadK8switchByID ¶
K8switchApiService Read k8switch by ID Read operation of resource: k8switch
@param name ID of name @return K8switch
func (*K8switchApiService) ReadK8switchClientSubnetByID ¶
func (a *K8switchApiService) ReadK8switchClientSubnetByID(name string) (string, *http.Response, error)
K8switchApiService Read client-subnet by ID Read operation of resource: client-subnet
@param name ID of name @return string
func (*K8switchApiService) ReadK8switchClusterIpSubnetByID ¶
func (a *K8switchApiService) ReadK8switchClusterIpSubnetByID(name string) (string, *http.Response, error)
K8switchApiService Read cluster-ip-subnet by ID Read operation of resource: cluster-ip-subnet
@param name ID of name @return string
func (*K8switchApiService) ReadK8switchFwdTableByID ¶
func (a *K8switchApiService) ReadK8switchFwdTableByID(name string, address string) (FwdTable, *http.Response, error)
K8switchApiService Read fwd-table by ID Read operation of resource: fwd-table
@param name ID of name @param address ID of address @return FwdTable
func (*K8switchApiService) ReadK8switchFwdTableListByID ¶
func (a *K8switchApiService) ReadK8switchFwdTableListByID(name string) ([]FwdTable, *http.Response, error)
K8switchApiService Read fwd-table by ID Read operation of resource: fwd-table
@param name ID of name @return []FwdTable
func (*K8switchApiService) ReadK8switchFwdTableMacByID ¶
func (a *K8switchApiService) ReadK8switchFwdTableMacByID(name string, address string) (string, *http.Response, error)
K8switchApiService Read mac by ID Read operation of resource: mac
@param name ID of name @param address ID of address @return string
func (*K8switchApiService) ReadK8switchFwdTablePortByID ¶
func (a *K8switchApiService) ReadK8switchFwdTablePortByID(name string, address string) (string, *http.Response, error)
K8switchApiService Read port by ID Read operation of resource: port
@param name ID of name @param address ID of address @return string
func (*K8switchApiService) ReadK8switchListByID ¶
func (a *K8switchApiService) ReadK8switchListByID() ([]K8switch, *http.Response, error)
K8switchApiService Read k8switch by ID Read operation of resource: k8switch
@return []K8switch
func (*K8switchApiService) ReadK8switchLoglevelByID ¶
K8switchApiService Read loglevel by ID Read operation of resource: loglevel
@param name ID of name @return string
func (*K8switchApiService) ReadK8switchPortsByID ¶
func (a *K8switchApiService) ReadK8switchPortsByID(name string, portsName string) (Ports, *http.Response, error)
K8switchApiService Read ports by ID Read operation of resource: ports
@param name ID of name @param portsName ID of ports_name @return Ports
func (*K8switchApiService) ReadK8switchPortsListByID ¶
func (a *K8switchApiService) ReadK8switchPortsListByID(name string) ([]Ports, *http.Response, error)
K8switchApiService Read ports by ID Read operation of resource: ports
@param name ID of name @return []Ports
func (*K8switchApiService) ReadK8switchPortsPeerByID ¶
func (a *K8switchApiService) ReadK8switchPortsPeerByID(name string, portsName string) (string, *http.Response, error)
K8switchApiService Read peer by ID Read operation of resource: peer
@param name ID of name @param portsName ID of ports_name @return string
func (*K8switchApiService) ReadK8switchPortsStatusByID ¶
func (a *K8switchApiService) ReadK8switchPortsStatusByID(name string, portsName string) (string, *http.Response, error)
K8switchApiService Read status by ID Read operation of resource: status
@param name ID of name @param portsName ID of ports_name @return string
func (*K8switchApiService) ReadK8switchPortsTypeByID ¶
func (a *K8switchApiService) ReadK8switchPortsTypeByID(name string, portsName string) (string, *http.Response, error)
K8switchApiService Read type by ID Read operation of resource: type
@param name ID of name @param portsName ID of ports_name @return string
func (*K8switchApiService) ReadK8switchPortsUuidByID ¶
func (a *K8switchApiService) ReadK8switchPortsUuidByID(name string, portsName string) (string, *http.Response, error)
K8switchApiService Read uuid by ID Read operation of resource: uuid
@param name ID of name @param portsName ID of ports_name @return string
func (*K8switchApiService) ReadK8switchServiceBackendByID ¶
func (a *K8switchApiService) ReadK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32) (ServiceBackend, *http.Response, error)
K8switchApiService Read backend by ID Read operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @return ServiceBackend
func (*K8switchApiService) ReadK8switchServiceBackendListByID ¶
func (a *K8switchApiService) ReadK8switchServiceBackendListByID(name string, vip string, vport int32, proto string) ([]ServiceBackend, *http.Response, error)
K8switchApiService Read backend by ID Read operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @return []ServiceBackend
func (*K8switchApiService) ReadK8switchServiceBackendNameByID ¶
func (a *K8switchApiService) ReadK8switchServiceBackendNameByID(name string, vip string, vport int32, proto string, ip string, port int32) (string, *http.Response, error)
K8switchApiService Read name by ID Read operation of resource: name
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @return string
func (*K8switchApiService) ReadK8switchServiceBackendPortByID ¶
func (a *K8switchApiService) ReadK8switchServiceBackendPortByID(name string, vip string, vport int32, proto string, ip string) (int32, *http.Response, error)
K8switchApiService Read port by ID Read operation of resource: port
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @return int32
func (*K8switchApiService) ReadK8switchServiceBackendWeightByID ¶
func (a *K8switchApiService) ReadK8switchServiceBackendWeightByID(name string, vip string, vport int32, proto string, ip string, port int32) (int32, *http.Response, error)
K8switchApiService Read weight by ID Read operation of resource: weight
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @return int32
func (*K8switchApiService) ReadK8switchServiceByID ¶
func (a *K8switchApiService) ReadK8switchServiceByID(name string, vip string, vport int32, proto string) (Service, *http.Response, error)
K8switchApiService Read service by ID Read operation of resource: service
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @return Service
func (*K8switchApiService) ReadK8switchServiceListByID ¶
func (a *K8switchApiService) ReadK8switchServiceListByID(name string) ([]Service, *http.Response, error)
K8switchApiService Read service by ID Read operation of resource: service
@param name ID of name @return []Service
func (*K8switchApiService) ReadK8switchServiceNameByID ¶
func (a *K8switchApiService) ReadK8switchServiceNameByID(name string, vip string, vport int32, proto string) (string, *http.Response, error)
K8switchApiService Read name by ID Read operation of resource: name
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @return string
func (*K8switchApiService) ReadK8switchTypeByID ¶
K8switchApiService Read type by ID Read operation of resource: type
@param name ID of name @return string
func (*K8switchApiService) ReadK8switchUuidByID ¶
K8switchApiService Read uuid by ID Read operation of resource: uuid
@param name ID of name @return string
func (*K8switchApiService) ReadK8switchVirtualClientSubnetByID ¶
func (a *K8switchApiService) ReadK8switchVirtualClientSubnetByID(name string) (string, *http.Response, error)
K8switchApiService Read virtual-client-subnet by ID Read operation of resource: virtual-client-subnet
@param name ID of name @return string
func (*K8switchApiService) ReplaceK8switchByID ¶
func (a *K8switchApiService) ReplaceK8switchByID(name string, k8switch K8switch) (*http.Response, error)
K8switchApiService Replace k8switch by ID Replace operation of resource: k8switch
@param name ID of name @param k8switch k8switchbody object @return
func (*K8switchApiService) ReplaceK8switchFwdTableByID ¶
func (a *K8switchApiService) ReplaceK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
K8switchApiService Replace fwd-table by ID Replace operation of resource: fwd-table
@param name ID of name @param address ID of address @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) ReplaceK8switchFwdTableListByID ¶
func (a *K8switchApiService) ReplaceK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
K8switchApiService Replace fwd-table by ID Replace operation of resource: fwd-table
@param name ID of name @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) ReplaceK8switchPortsByID ¶
func (a *K8switchApiService) ReplaceK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
K8switchApiService Replace ports by ID Replace operation of resource: ports
@param name ID of name @param portsName ID of ports_name @param ports portsbody object @return
func (*K8switchApiService) ReplaceK8switchPortsListByID ¶
func (a *K8switchApiService) ReplaceK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
K8switchApiService Replace ports by ID Replace operation of resource: ports
@param name ID of name @param ports portsbody object @return
func (*K8switchApiService) ReplaceK8switchServiceBackendByID ¶
func (a *K8switchApiService) ReplaceK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, backend ServiceBackend) (*http.Response, error)
K8switchApiService Replace backend by ID Replace operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @param backend backendbody object @return
func (*K8switchApiService) ReplaceK8switchServiceBackendListByID ¶
func (a *K8switchApiService) ReplaceK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
K8switchApiService Replace backend by ID Replace operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param backend backendbody object @return
func (*K8switchApiService) ReplaceK8switchServiceByID ¶
func (a *K8switchApiService) ReplaceK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
K8switchApiService Replace service by ID Replace operation of resource: service
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param service servicebody object @return
func (*K8switchApiService) ReplaceK8switchServiceListByID ¶
func (a *K8switchApiService) ReplaceK8switchServiceListByID(name string, service []Service) (*http.Response, error)
K8switchApiService Replace service by ID Replace operation of resource: service
@param name ID of name @param service servicebody object @return
func (*K8switchApiService) UpdateK8switchByID ¶
func (a *K8switchApiService) UpdateK8switchByID(name string, k8switch K8switch) (*http.Response, error)
K8switchApiService Update k8switch by ID Update operation of resource: k8switch
@param name ID of name @param k8switch k8switchbody object @return
func (*K8switchApiService) UpdateK8switchClientSubnetByID ¶
func (a *K8switchApiService) UpdateK8switchClientSubnetByID(name string, clientSubnet string) (*http.Response, error)
K8switchApiService Update client-subnet by ID Update operation of resource: client-subnet
@param name ID of name @param clientSubnet Range of IPs of pods in this node @return
func (*K8switchApiService) UpdateK8switchClusterIpSubnetByID ¶
func (a *K8switchApiService) UpdateK8switchClusterIpSubnetByID(name string, clusterIpSubnet string) (*http.Response, error)
K8switchApiService Update cluster-ip-subnet by ID Update operation of resource: cluster-ip-subnet
@param name ID of name @param clusterIpSubnet Range of VIPs where clusterIP services are exposed @return
func (*K8switchApiService) UpdateK8switchFwdTableByID ¶
func (a *K8switchApiService) UpdateK8switchFwdTableByID(name string, address string, fwdTable FwdTable) (*http.Response, error)
K8switchApiService Update fwd-table by ID Update operation of resource: fwd-table
@param name ID of name @param address ID of address @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) UpdateK8switchFwdTableListByID ¶
func (a *K8switchApiService) UpdateK8switchFwdTableListByID(name string, fwdTable []FwdTable) (*http.Response, error)
K8switchApiService Update fwd-table by ID Update operation of resource: fwd-table
@param name ID of name @param fwdTable fwd-tablebody object @return
func (*K8switchApiService) UpdateK8switchFwdTableMacByID ¶
func (a *K8switchApiService) UpdateK8switchFwdTableMacByID(name string, address string, mac string) (*http.Response, error)
K8switchApiService Update mac by ID Update operation of resource: mac
@param name ID of name @param address ID of address @param mac Destination MAC address @return
func (*K8switchApiService) UpdateK8switchFwdTablePortByID ¶
func (a *K8switchApiService) UpdateK8switchFwdTablePortByID(name string, address string, port string) (*http.Response, error)
K8switchApiService Update port by ID Update operation of resource: port
@param name ID of name @param address ID of address @param port Port where this entry is present @return
func (*K8switchApiService) UpdateK8switchListByID ¶
func (a *K8switchApiService) UpdateK8switchListByID(k8switch []K8switch) (*http.Response, error)
K8switchApiService Update k8switch by ID Update operation of resource: k8switch
@param k8switch k8switchbody object @return
func (*K8switchApiService) UpdateK8switchLoglevelByID ¶
func (a *K8switchApiService) UpdateK8switchLoglevelByID(name string, loglevel string) (*http.Response, error)
K8switchApiService Update loglevel by ID Update operation of resource: loglevel
@param name ID of name @param loglevel Defines the logging level of a service instance, from none (OFF) to the most verbose (TRACE) @return
func (*K8switchApiService) UpdateK8switchPortsByID ¶
func (a *K8switchApiService) UpdateK8switchPortsByID(name string, portsName string, ports Ports) (*http.Response, error)
K8switchApiService Update ports by ID Update operation of resource: ports
@param name ID of name @param portsName ID of ports_name @param ports portsbody object @return
func (*K8switchApiService) UpdateK8switchPortsListByID ¶
func (a *K8switchApiService) UpdateK8switchPortsListByID(name string, ports []Ports) (*http.Response, error)
K8switchApiService Update ports by ID Update operation of resource: ports
@param name ID of name @param ports portsbody object @return
func (*K8switchApiService) UpdateK8switchPortsPeerByID ¶
func (a *K8switchApiService) UpdateK8switchPortsPeerByID(name string, portsName string, peer string) (*http.Response, error)
K8switchApiService Update peer by ID Update operation of resource: peer
@param name ID of name @param portsName ID of ports_name @param peer Peer name, such as a network interfaces (e.g., 'veth0') or another cube (e.g., 'br1:port2') @return
func (*K8switchApiService) UpdateK8switchPortsTypeByID ¶
func (a *K8switchApiService) UpdateK8switchPortsTypeByID(name string, portsName string, type_ string) (*http.Response, error)
K8switchApiService Update type by ID Update operation of resource: type
@param name ID of name @param portsName ID of ports_name @param type_ Type of the LB port (e.g. NODEPORT or DEFAULT) @return
func (*K8switchApiService) UpdateK8switchServiceBackendByID ¶
func (a *K8switchApiService) UpdateK8switchServiceBackendByID(name string, vip string, vport int32, proto string, ip string, port int32, backend ServiceBackend) (*http.Response, error)
K8switchApiService Update backend by ID Update operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @param backend backendbody object @return
func (*K8switchApiService) UpdateK8switchServiceBackendListByID ¶
func (a *K8switchApiService) UpdateK8switchServiceBackendListByID(name string, vip string, vport int32, proto string, backend []ServiceBackend) (*http.Response, error)
K8switchApiService Update backend by ID Update operation of resource: backend
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param backend backendbody object @return
func (*K8switchApiService) UpdateK8switchServiceBackendNameByID ¶
func (a *K8switchApiService) UpdateK8switchServiceBackendNameByID(name string, vip string, vport int32, proto string, ip string, port int32, name2 string) (*http.Response, error)
K8switchApiService Update name by ID Update operation of resource: name
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @param name2 name @return
func (*K8switchApiService) UpdateK8switchServiceBackendWeightByID ¶
func (a *K8switchApiService) UpdateK8switchServiceBackendWeightByID(name string, vip string, vport int32, proto string, ip string, port int32, weight int32) (*http.Response, error)
K8switchApiService Update weight by ID Update operation of resource: weight
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param ip ID of ip @param weight Weight of the backend in the pool @return
func (*K8switchApiService) UpdateK8switchServiceByID ¶
func (a *K8switchApiService) UpdateK8switchServiceByID(name string, vip string, vport int32, proto string, service Service) (*http.Response, error)
K8switchApiService Update service by ID Update operation of resource: service
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param service servicebody object @return
func (*K8switchApiService) UpdateK8switchServiceListByID ¶
func (a *K8switchApiService) UpdateK8switchServiceListByID(name string, service []Service) (*http.Response, error)
K8switchApiService Update service by ID Update operation of resource: service
@param name ID of name @param service servicebody object @return
func (*K8switchApiService) UpdateK8switchServiceNameByID ¶
func (a *K8switchApiService) UpdateK8switchServiceNameByID(name string, vip string, vport int32, proto string, name2 string) (*http.Response, error)
K8switchApiService Update name by ID Update operation of resource: name
@param name ID of name @param vip ID of vip @param vport ID of vport @param proto ID of proto @param name2 Service name related to the backend server of the pool is connected to @return
func (*K8switchApiService) UpdateK8switchVirtualClientSubnetByID ¶
func (a *K8switchApiService) UpdateK8switchVirtualClientSubnetByID(name string, virtualClientSubnet string) (*http.Response, error)
K8switchApiService Update virtual-client-subnet by ID Update operation of resource: virtual-client-subnet
@param name ID of name @param virtualClientSubnet Range where client's IPs are mapped into @return
type Ports ¶
type Ports struct {
// Port Name
Name string `json:"name,omitempty"`
// UUID of the port
Uuid string `json:"uuid,omitempty"`
// Status of the port (UP or DOWN)
Status string `json:"status,omitempty"`
// Peer name, such as a network interfaces (e.g., 'veth0') or another cube (e.g., 'br1:port2')
Peer string `json:"peer,omitempty"`
// Type of the LB port (e.g. NODEPORT or DEFAULT)
Type_ string `json:"type,omitempty"`
}
type Service ¶
type Service struct {
// Service name related to the backend server of the pool is connected to
Name string `json:"name,omitempty"`
// Virtual IP (vip) of the service where clients connect to
Vip string `json:"vip,omitempty"`
// Port of the virtual server where clients connect to (this value is ignored in case of ICMP)
Vport int32 `json:"vport,omitempty"`
// Upper-layer protocol associated with a loadbalancing service instance.
Proto string `json:"proto,omitempty"`
// Pool of backend servers that actually serve requests
Backend []ServiceBackend `json:"backend,omitempty"`
}
type ServiceBackend ¶
type ServiceBackend struct {
// name
Name string `json:"name,omitempty"`
// IP address of the backend server of the pool
Ip string `json:"ip,omitempty"`
// Port where the actual server listen to (this value is ignored in case of ICMP)
Port int32 `json:"port,omitempty"`
// Weight of the backend in the pool
Weight int32 `json:"weight,omitempty"`
}