timesyncd

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterTimeSyncd

func RegisterRouterTimeSyncd(router *mux.Router)

Types

type Describe

type Describe struct {
	Name             string   `json:"Name `
	IpFamily         int32    `json:"IpFamily`
	Address          string   `json:"Address"`
	SystemNTPServers []string `json:"SystemNTPServers"`
	LinkNTPServers   []string `json:"LinkNTPServers"`
}

func AcquireNTPServer

func AcquireNTPServer(kind string, ctx context.Context) (*Describe, error)

func DescribeNTPServers

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

type NTP

type NTP struct {
	NTPServers []string `json:"NTPServers"`
}

func (*NTP) AddNTP

func (n *NTP) AddNTP(ctx context.Context, w http.ResponseWriter) error

func (*NTP) RemoveNTP

func (n *NTP) RemoveNTP(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) DBusAcquireCurrentNTPServerFromTimeSync

func (c *SDConnection) DBusAcquireCurrentNTPServerFromTimeSync(ctx context.Context) (string, int32, string, error)

func (*SDConnection) DBusAcquireLinkNTPServersFromTimeSync

func (c *SDConnection) DBusAcquireLinkNTPServersFromTimeSync(ctx context.Context) ([]string, error)

func (*SDConnection) DBusAcquireSystemNTPServersFromTimeSync

func (c *SDConnection) DBusAcquireSystemNTPServersFromTimeSync(ctx context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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