ryulib

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpGet

func HttpGet(url string) (io.Reader, error)

func HttpPost

func HttpPost(url string, body []byte) error

Types

type RyuClient

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

func NewClient

func NewClient(url string) *RyuClient

func (*RyuClient) GetDesc

func (c *RyuClient) GetDesc(dpid int) (*ofproto.Desc, error)

func (*RyuClient) GetFlow

func (c *RyuClient) GetFlow(dpid int) ([]*ofproto.FlowEntry, error)

func (*RyuClient) GetGroup

func (c *RyuClient) GetGroup(dpid int) ([]*ofproto.GroupEntry, error)

func (*RyuClient) GetSwitches

func (c *RyuClient) GetSwitches() ([]int, error)

func (*RyuClient) ModFlow

func (c *RyuClient) ModFlow(cmd string, mod *ofproto.FlowMod) error

func (*RyuClient) ModGroup

func (c *RyuClient) ModGroup(cmd string, mod *ofproto.GroupMod) error

Jump to

Keyboard shortcuts

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