ntp

package
v4.38.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider type is the NTP provider.

func NewProvider

func NewProvider(config *schema.NTP) *Provider

NewProvider instantiate a ntp provider given a configuration.

func (*Provider) GetOffset added in v4.38.0

func (p *Provider) GetOffset() (offset time.Duration, err error)

GetOffset returns the current offset for this provider.

func (*Provider) StartupCheck

func (p *Provider) StartupCheck() (err error)

StartupCheck implements the startup check provider interface.

Jump to

Keyboard shortcuts

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