types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrollmentRequest

type EnrollmentRequest struct {
	Enrollment NodeEnrollmentBody `json:"enrollment"`
}

EnrollmentRequest is the response body returned from the API.

type NodeEnrollmentBody

type NodeEnrollmentBody struct {
	Name        string `json:"name"`
	Address     string `json:"address"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Bundle      string `json:"bundle,omitempty"`
	Token       string `json:"token,omitempty"`
	Hostname    string `json:"hostname,omitempty"`
	AutoApprove bool   `json:"auto_approve"`
	CallHome    bool   `json:"call_home"`
}

NodeEnrollmentBody is the response body returned from the API.

type NodeRuntimeStatus

type NodeRuntimeStatus struct {
	ActionErr        string `json:"action_error_message"`
	ActionType       string `json:"action_type"`
	ConnectionStatus string `json:"connection_status"`
}

NodeRuntimeStatus is the response body returned from the API.

type NodesListBody

type NodesListBody struct {
	LHVPNAddress  string            `json:"lhvpn_address"`
	ID            string            `json:"id"`
	Status        string            `json:"status"`
	MacAddress    string            `json:"mac_address"`
	Model         string            `json:"model"`
	SerialNumber  string            `json:"serial_number"`
	Name          string            `json:"name"`
	Version       string            `json:"firmware_version"`
	RuntimeStatus NodeRuntimeStatus `json:"runtime_status"`
}

NodesListBody is the response body returned from the API.

type NodesListResponse

type NodesListResponse struct {
	Nodes []NodesListBody `json:"nodes"`
}

NodesListResponse is the response body returned from the API.

type NodesSmartgroupResponse

type NodesSmartgroupResponse struct {
	Smartgroups []SmartgroupListBody `json:"smartgroups"`
}

NodesSmartgroupResponse is the response body returned from the API.

type SearchBody

type SearchBody struct {
	ID string `json:"id"`
}

SearchBody is the response body returned from the API.

type SearchResponse

type SearchResponse struct {
	SearchIDs SearchBody `json:"search"`
}

SearchResponse is the response body returned from the API.

type SmartgroupListBody

type SmartgroupListBody struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Query string `json:"query"`
}

SmartgroupListBody is the response body returned from the API.

Jump to

Keyboard shortcuts

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