mongo

package
v0.0.0-...-0557d4e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseName     = "deployment_service"
	CollectionLimits = "limits"
)

Database

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitsStorage

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

SoftwareImagesStorage is a data layer for SoftwareImages based on MongoDB Implements model.SoftwareImagesStorage

func NewLimitsStorage

func NewLimitsStorage(session *mgo.Session) *LimitsStorage

NewSoftwareImagesStorage new data layer object

func (*LimitsStorage) GetLimit

func (ls *LimitsStorage) GetLimit(ctx context.Context, name string) (*limits.Limit, error)

ImageByIdsAndDeviceType finds image with id from ids and targed device type

Jump to

Keyboard shortcuts

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