Documentation ¶
Index ¶
- Constants
- func NewTableModel(tunnelList []core.Tunnel) *table.Model
- func ValidateDest(s string) error
- func ValidateName(s string) error
- func ValidateSource(s string) error
- func WriteTTY(tty string, msg string)
- type CLIEnd
- func (ce *CLIEnd) CreateTunnel(name string, source string, dest string) (uint64, error)
- func (ce *CLIEnd) DELETE(url string) (map[string]interface{}, error)
- func (ce *CLIEnd) DeleteTunnel(id int64) error
- func (ce *CLIEnd) EditTunnel(id uint64, newName string, newSource string, newDest string) error
- func (ce *CLIEnd) GET(url string) (map[string]interface{}, error)
- func (ce *CLIEnd) GetAboutInfo() (core.AboutInfo, error)
- func (ce *CLIEnd) GetTunnelList() ([]core.Tunnel, error)
- func (ce *CLIEnd) POST(url string, data interface{}) (map[string]interface{}, error)
- func (ce *CLIEnd) ToggleTunnel(id int64) error
- type EditModel
- type UIModel
Constants ¶
View Source
const ( TableHelpMsg string = "c - CREATE, e - EDIT, d - DELETE, r - RUN/STOP" EditHelpMsg string = "enter - CONFIRM, esc - CANCEL" )
Variables ¶
This section is empty.
Functions ¶
func ValidateDest ¶
dest must be xxx.xxx.xxx.xxx:<port> or localhost:<port>
Types ¶
type CLIEnd ¶
type CLIEnd struct {
// contains filtered or unexported fields
}
connection between gopolar core and cli
func (*CLIEnd) CreateTunnel ¶
returns ID of the new tunnel
func (*CLIEnd) DeleteTunnel ¶
func (*CLIEnd) EditTunnel ¶
func (*CLIEnd) ToggleTunnel ¶
type EditModel ¶
type EditModel struct {
// contains filtered or unexported fields
}
func NewEditModel ¶
func NewEditModel() *EditModel
Click to show internal directories.
Click to hide internal directories.