neutron

package
v0.0.0-...-ff9f995 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, ipamConfig *allocator.IPAMConfig) (backend.Store, error)

func NewEncrypter

func NewEncrypter() *encrypter

Types

type Store

type Store struct {
	NetworkClient *gophercloud.ServiceClient
	Networks      []string
	// contains filtered or unexported fields
}

Store is a simple disk-backed store that creates one file per IP address in a given directory. The contents of the file are the container ID.

func (*Store) Close

func (s *Store) Close() error

func (*Store) Lock

func (s *Store) Lock() error

func (*Store) ReleaseByID

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

N.B. This function eats errors to be tolerant and release as much as possible

func (*Store) Reserve

func (s *Store) Reserve(id string) (*net.IPNet, net.IP, error)

func (*Store) Unlock

func (s *Store) Unlock() error

Jump to

Keyboard shortcuts

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