client

package
v0.4.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DesiredStateConfigurationTimeout doubles the default gw ping probe and API server
	// connectivity check timeout to ensure the Checkpoint is alive before rolling it back
	DesiredStateConfigurationTimeout = (defaultGwProbeTimeout + apiServerProbeTimeout) * 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Version() (string, netplan.Error)
	// Apply(hint string, state netplan.State, timeout time.Duration, persistFn func() error) netplan.Error
	Get() (netplan.State, netplan.Error)
	// Generate() netplan.Error
	Info() ([]string, netplan.Error)
	Initialize() (config.Config, netplan.Error)
}

func New

func New(hint string, mode Mode, opts Opts) (Client, error)

type Mode

type Mode int
const (
	ClientModeDirect Mode = iota
	ClientModeDBus
	ClientModeDummy
)

type Opts

type Opts struct {
	InitialHints     []string
	DummyOpts        dummy.Opts
	DbusOpts         dbus.Opts
	DirectClientOpts direct.Opts
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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