ntp

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(path []string, str string) error

func ExtractVRF

func ExtractVRF(path []string) (string, error)

func Start

func Start()

func Stop

func Stop()

func Update

func Update(vrfName string, ntp *Ntp) error

Types

type Config

type Config struct {
	Ntp
	// contains filtered or unexported fields
}

type Ntp

type Ntp struct {
	// original -> coreswitch-ntp:pool
	PoolList []Pool `mapstructure:"pool" json:"pool,omitempty"`
	// original -> coreswitch-ntp:server
	ServerList []Server `mapstructure:"server" json:"server,omitempty"`
}

struct for container coreswitch-ntp:ntp

func UnmarshalJSON

func UnmarshalJSON(str string) (*Ntp, error)

func (*Ntp) Equal

func (lhs *Ntp) Equal(rhs *Ntp) bool

type Pool

type Pool struct {
	// original -> coreswitch-ntp:name
	Name string `mapstructure:"name" json:"name,omitempty"`
	// original -> coreswitch-ntp:dynamic
	//coreswitch-ntp:dynamic's original type is empty
	Dynamic bool `mapstructure:"dynamic" json:"dynamic,omitempty"`
	// original -> coreswitch-ntp:noselect
	//coreswitch-ntp:noselect's original type is empty
	Noselect bool `mapstructure:"noselect" json:"noselect,omitempty"`
	// original -> coreswitch-ntp:preempt
	//coreswitch-ntp:preempt's original type is empty
	Preempt bool `mapstructure:"preempt" json:"preempt,omitempty"`
	// original -> coreswitch-ntp:prefer
	//coreswitch-ntp:prefer's original type is empty
	Prefer bool `mapstructure:"prefer" json:"prefer,omitempty"`
}

struct for container coreswitch-ntp:pool

func (*Pool) Equal

func (lhs *Pool) Equal(rhs *Pool) bool

type Server

type Server struct {
	// original -> coreswitch-ntp:name
	Name string `mapstructure:"name" json:"name,omitempty"`
	// original -> coreswitch-ntp:dynamic
	//coreswitch-ntp:dynamic's original type is empty
	Dynamic bool `mapstructure:"dynamic" json:"dynamic,omitempty"`
	// original -> coreswitch-ntp:noselect
	//coreswitch-ntp:noselect's original type is empty
	Noselect bool `mapstructure:"noselect" json:"noselect,omitempty"`
	// original -> coreswitch-ntp:preempt
	//coreswitch-ntp:preempt's original type is empty
	Preempt bool `mapstructure:"preempt" json:"preempt,omitempty"`
	// original -> coreswitch-ntp:prefer
	//coreswitch-ntp:prefer's original type is empty
	Prefer bool `mapstructure:"prefer" json:"prefer,omitempty"`
}

struct for container coreswitch-ntp:server

func (*Server) Equal

func (lhs *Server) Equal(rhs *Server) bool

Jump to

Keyboard shortcuts

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