Documentation
¶
Index ¶
- func Decode(data []byte) (hub.AgentInfo, error)
- type Info
- func (info *Info) GetArch() string
- func (info *Info) GetAuth() bool
- func (info *Info) GetDistro() string
- func (info *Info) GetHostname() string
- func (info *Info) GetHtpasswd() map[string]string
- func (info *Info) GetID() string
- func (info *Info) GetName() string
- func (info *Info) GetOS() string
- func (info *Info) GetPwd() string
- func (info *Info) GetTags() []string
- func (info *Info) GetUsername() string
- func (info *Info) SetIP(ip string)
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct { ID string `json:"id"` Name string `json:"name"` Tags []string `json:"tags"` Auth *bool `json:"auth,omitempty"` Connected int64 `json:"connected"` IP string `json:"ip"` OS string `json:"os"` Pwd string `json:"pwd"` Arch string `json:"arch"` Distro string `json:"distro,omitempty"` Username string `json:"username"` Hostname string `json:"hostname"` // contains filtered or unexported fields }
Metadata, for flatten json output Marshed by hub /api/agents/list Unmarshaled by client
func (*Info) GetHostname ¶
func (*Info) GetHtpasswd ¶
func (*Info) GetUsername ¶
Click to show internal directories.
Click to hide internal directories.