Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client describes a very simple client for connecting to a daemon rest API
type Environment ¶
type Environment struct { Addresses []string `json:"addresses" yaml:"addresses"` Server string `json:"server" yaml:"server"` ServerPid int `json:"server_pid" yaml:"server_pid"` ServerVersion string `json:"server_version" yaml:"server_version"` ServerName string `json:"server_name" yaml:"server_name"` }
Environment defines the server environment for the daemon
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
Info represents a way of interacting with the daemon API, which is responsible for getting the information from the daemon.
func (Info) Get ¶
func (i Info) Get() (InfoResult, error)
Get returns the information from the daemon API
type InfoResult ¶
type InfoResult struct { Environment Environment `json:"environment" yaml:"environment"` Config map[string]interface{} `json:"config" yaml:"config"` }
InfoResult contains the result of querying the daemon information API
Click to show internal directories.
Click to hide internal directories.