hostname

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterHostname

func RegisterRouterHostname(router *mux.Router)

Types

type Describe

type Describe struct {
	Chassis                   string `json:"Chassis"`
	DefaultHostname           string `json:"DefaultHostname"`
	Deployment                string `json:"Deployment"`
	HardwareModel             string `json:"HardwareModel"`
	HardwareVendor            string `json:"HardwareVendor"`
	Hostname                  string `json:"Hostname"`
	HostnameSource            string `json:"HostnameSource"`
	IconName                  string `json:"IconName"`
	KernelName                string `json:"KernelName"`
	KernelRelease             string `json:"KernelRelease"`
	KernelVersion             string `json:"KernelVersion"`
	Location                  string `json:"Location"`
	OperatingSystemCPEName    string `json:"OperatingSystemCPEName"`
	OperatingSystemHomeURL    string `json:"OperatingSystemHomeURL"`
	OperatingSystemPrettyName string `json:"OperatingSystemPrettyName"`
	PrettyHostname            string `json:"PrettyHostname"`
	ProductUUID               string `json:"ProductUUID"`
	StaticHostname            string `json:"StaticHostname"`
}

func MethodDescribe

func MethodDescribe(ctx context.Context) (*Describe, error)

type Hostname

type Hostname struct {
	Hostname          string `json:"Hostname"`
	PrettyHostname    string `json:"PrettyHostname"`
	StaticHostname    string `json:"StaticHostname"`
	TransientHostname string `json:"TransientHostname"`
}

func (*Hostname) Update

func (h *Hostname) Update(ctx context.Context, w http.ResponseWriter) error

type SDConnection

type SDConnection struct {
	// contains filtered or unexported fields
}

func NewSDConnection

func NewSDConnection() (*SDConnection, error)

func (*SDConnection) Close

func (c *SDConnection) Close()

func (*SDConnection) DBusDescribe

func (c *SDConnection) DBusDescribe(ctx context.Context) (*Describe, error)

func (*SDConnection) DBusDescribeFallback

func (c *SDConnection) DBusDescribeFallback(ctx context.Context) (*Describe, error)

func (*SDConnection) DBusExecuteMethod

func (c *SDConnection) DBusExecuteMethod(ctx context.Context, method string, value string) error

Jump to

Keyboard shortcuts

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