Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CseServiceAPI ¶
type CseServiceAPI interface {
ServiceEndpoints() ServiceEndpoints
}
type SeCreateData ¶
type SeCreateData struct {
ServiceName string `json:"service"`
CustomerName string `json:"customer"`
ServiceAddresses []string `json:"serviceAddresses"`
EstadoProto string `json:"estadoProto,omitempty"`
EstadoPort int `json:"estadoPort,omitempty"`
EstadoPath string `json:"estadoPath,omitempty"`
TCPPorts []int `json:"tcpports"`
UDPPorts []int `json:"udpports,omitempty"`
TCPRange string `json:"tcpportrange,omitempty"`
UDPRange string `json:"udpportrange,omitempty"`
Region string `json:"region"`
DataCenters []string `json:"dataCenters"`
ACL []string `json:"acl,omitempty"`
MaxSpeed string `json:"maxSpeed"`
Dedicated int `json:"dedicated,omitempty"`
MultiTenant int `json:"multitenant,omitempty"`
}
type SeUpdateData ¶
type SeUpdateData struct {
ServiceAddresses []string `json:"serviceAddresses"`
EstadoProto string `json:"estadoProto"`
EstadoPort int `json:"estadoPort"`
EstadoPath string `json:"estadoPath"`
TCPPorts []int `json:"tcpports"`
UDPPorts []int `json:"udpports"`
TCPRange string `json:"tcpportrange"`
UDPRange string `json:"udpportrange"`
DataCenters []string `json:"dataCenters"`
ACL []string `json:"acl"`
}
type ServiceCSE ¶
type ServiceCSE struct {
SeCreateData
Srvid string `json:"srvid"`
URL string `json:"url"`
}
type ServiceEndpoint ¶
type ServiceEndpoints ¶
type ServiceEndpoints interface {
GetServiceEndpoint(srvID string) (*ServiceObject, error)
CreateServiceEndpoint(payload SeCreateData) (string, error)
UpdateServiceEndpoint(srvID string, payload SeUpdateData) error
DeleteServiceEndpoint(srvID string) error
}
type ServiceObject ¶
type ServiceObject struct {
Service ServiceCSE `json:"service"`
Endpoints []ServiceEndpoint `json:"endpoints"`
}
Click to show internal directories.
Click to hide internal directories.