ovsclient

package
v3.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rpc.Client
	// contains filtered or unexported fields
}

Client is an RPC client for communicating with OVS.

func DialTimeout

func DialTimeout(network, addr string, timeout time.Duration) (*Client, error)

DialTimeout dials the provided network and address, and if it responds within timeout will return a valid Client.

func New

func New(conn net.Conn) *Client

New creates a new Client from a connection.

func (*Client) Ping

func (c *Client) Ping() error

Ping returns nil if the OVS server responded to an "echo" command.

func (*Client) WaitForDisconnect

func (c *Client) WaitForDisconnect() error

WaitForDisconnect will block until the provided connection is closed and return an error. This consumes the connection.

Jump to

Keyboard shortcuts

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