Documentation
¶
Overview ¶
Integration with the systemd hostnamed API. See http://www.freedesktop.org/wiki/Software/systemd/hostnamed/
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) GetHostname() (string, error)
- func (c *Conn) GetProperties() (map[string]interface{}, error)
- func (c *Conn) GetProperty(propertyName string) (interface{}, error)
- func (c *Conn) GetStaticHostname() (string, error)
- func (c *Conn) SetChassis(name string, askForAuth bool) error
- func (c *Conn) SetHostname(name string, askForAuth bool) error
- func (c *Conn) SetIconName(name string, askForAuth bool) error
- func (c *Conn) SetPrettyHostname(name string, askForAuth bool) error
- func (c *Conn) SetStaticHostname(name string, askForAuth bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a connection to systemds dbus endpoint.
func (*Conn) GetProperties ¶
GetProperties returns all hostname related properties
func (*Conn) GetProperty ¶
GetProperty returns a single hostname property
func (*Conn) GetStaticHostname ¶
find the static hostname
func (*Conn) SetChassis ¶
SetChassis asks hostnamed to set the chassis name.
func (*Conn) SetHostname ¶
SetHostname asks hostnamed to set the hostname.
func (*Conn) SetIconName ¶
SetIconName asks hostnamed to set the icon name following the XDG icon naming spec.
func (*Conn) SetPrettyHostname ¶
SetPrettyHostname asks hostnamed to set the pretty hostname.
Click to show internal directories.
Click to hide internal directories.