csev2

package
v0.0.0-...-e6eb724 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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
}

func New

func New(sess *session.Session) (CseServiceAPI, error)

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 ServiceEndpoint struct {
	Seid          string `json:"seid"`
	StaticAddress string `json:"staticAddress"`
	Netmask       string `json:"netmask"`
	DNSStatus     string `json:"dnsStatus"`
	DataCenter    string `json:"dataCenter"`
	Status        string `json:"status"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL