ovsclient

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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