chrony

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNetwork = errors.New("invalid network format")
)

Functions

func SplitNetworkEndpoint

func SplitNetworkEndpoint(addr string) (network, endpoint string, err error)

SplitNetworkEndpoint takes in a URL like string of the format: [network type]://[network endpoint] and then will return the network and the endpoint for the client to use for connection.

Types

type Client added in v0.57.2

type Client interface {
	// GetTrackingData will connection the configured chronyd endpoint
	// and will read that instance tracking information relatively to the configured
	// upstream NTP server(s).
	GetTrackingData(ctx context.Context) (*Tracking, error)
}

func New added in v0.57.2

func New(addr string, timeout time.Duration, opts ...clientOption) (Client, error)

New creates a client ready to use with chronyd

type ReplyHead added in v0.57.2

type ReplyHead = chrony.ReplyHead

type Tracking added in v0.57.2

type Tracking = chrony.Tracking

Jump to

Keyboard shortcuts

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