Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type CreatedMesh
- type Mesh
- type MeshCentral
- func (m *MeshCentral) Close()
- func (m *MeshCentral) CloseReason() error
- func (m *MeshCentral) CreateMesh(name string) (*CreatedMesh, error)
- func (m *MeshCentral) DeleteMesh(id string) error
- func (m *MeshCentral) DeleteMeshes() error
- func (m *MeshCentral) Get(action string) (Payload, error)
- func (m *MeshCentral) Send(payload map[string]interface{}) error
- func (m *MeshCentral) ServerInfo() (*ServerInfo, error)
- func (m *MeshCentral) Share(meshID, name string, expires time.Time) (string, error)
- type MeshDeviceShare
- type Node
- type Payload
- type ServerInfo
- type Share
Constants ¶
View Source
const GetTimeout = 5 * time.Second
Variables ¶
View Source
var (
ErrAgentNotConnected = errors.New("agent not connected")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.5
type Config struct { MeshCentralURL *url.URL MeshCentralGroupPrefix string `split_words:"true" default:"plexus"` MeshCentralUser string `split_words:"true" required:"true"` MeshCentralPass string `split_words:"true" required:"true"` MeshCentralDomain string `split_words:"true" default:"control"` }
func (*Config) MeshCentralAgentURL ¶ added in v0.0.5
func (*Config) MeshCentralControlURL ¶ added in v0.0.5
func (*Config) MeshRelayURL ¶ added in v0.0.5
type CreatedMesh ¶
type MeshCentral ¶
type MeshCentral struct {
// contains filtered or unexported fields
}
func (*MeshCentral) Close ¶
func (m *MeshCentral) Close()
func (*MeshCentral) CloseReason ¶ added in v0.0.3
func (m *MeshCentral) CloseReason() error
func (*MeshCentral) CreateMesh ¶
func (m *MeshCentral) CreateMesh(name string) (*CreatedMesh, error)
func (*MeshCentral) DeleteMesh ¶
func (m *MeshCentral) DeleteMesh(id string) error
func (*MeshCentral) DeleteMeshes ¶
func (m *MeshCentral) DeleteMeshes() error
func (*MeshCentral) Send ¶
func (m *MeshCentral) Send(payload map[string]interface{}) error
func (*MeshCentral) ServerInfo ¶ added in v0.0.3
func (m *MeshCentral) ServerInfo() (*ServerInfo, error)
type MeshDeviceShare ¶
type MeshDeviceShare struct {
}type Payload ¶
type Payload map[string]json.RawMessage
type ServerInfo ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.