mongodb

package
v1.0.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ResourceQuotasCollection = "namespaces"
	EventsCollection         = "events"
	DeploymentCollection     = "deployments"
	ServiceCollection        = "services"
	IngressCollection        = "ingresses"
	PVCCollection            = "volumes"
	UserCollection           = "user"
	SystemCollection         = "system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mgo.DialInfo

	CollectionSize uint64 // in bytes
	MaxDocuments   uint
}

type Storage

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

func OpenConnection

func OpenConnection(cfg *Config) (*Storage, error)

func (*Storage) BulkInsert

func (s *Storage) BulkInsert(r []kubeClientModel.Event, collection string) error

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Insert

func (s *Storage) Insert(r *kubeClientModel.Event, collection string) error

Jump to

Keyboard shortcuts

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