models

package
v0.0.0-...-41c1b6c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lease

type Lease struct {
	ID          bson.ObjectId `bson:"_id"`
	Name        string        `bson:"name"`
	Tags        []string      `bson:"tags"`
	Metadata    interface{}   `bson:"metadata"`
	Subnet      bson.ObjectId `bson:"subnet,omitempty"`
	Reservation bson.ObjectId `bson:"reservation,omitempty"`
	Address     bson.Binary   `bson:"address"`
}

Lease is a mgo model representing a collection of Subnet resources.

type Pool

type Pool struct {
	ID       bson.ObjectId `bson:"_id"`
	Name     string        `bson:"name"`
	Tags     []string      `bson:"tags"`
	Metadata interface{}   `bson:"metadata"`
}

Pool is a mgo model representing a collection of Subnet resources.

type Reservation

type Reservation struct {
	ID       bson.ObjectId `bson:"_id"`
	Name     string        `bson:"name"`
	Tags     []string      `bson:"tags"`
	Metadata interface{}   `bson:"metadata"`
	Subnet   bson.ObjectId `bson:"subnet,omitempty"`
}

Reservation is a mgo model representing a collection of Subnet resources.

type Subnet

type Subnet struct {
	ID       bson.ObjectId `bson:"_id"`
	Name     string        `bson:"name"`
	Tags     []string      `bson:"tags"`
	Metadata interface{}   `bson:"metadata"`
	Pool     bson.ObjectId `bson:"pool,omitempty"`
	Start    bson.Binary   `bson:"start"`
	End      bson.Binary   `bson:"end"`
}

Subnet is a mgo model representing a collection of Subnet resources.

Jump to

Keyboard shortcuts

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