disk

package
v0.0.0-...-d2980c9 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a simple disk-backed store that creates one file per network namespace container ID is a given filename. The contents of the file are the interface name for ovs.

func New

func New(network, dataDir string) (*Store, error)

func (*Store) ReleaseByID

func (s *Store) ReleaseByID(id string) (string, error)

func (*Store) Reserve

func (s *Store) Reserve(id, ovsIfaceName string) (bool, error)

Jump to

Keyboard shortcuts

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