mongodb

package
v1.0.1-rc.18 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

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

Variables

Functions

This section is empty.

Types

type Storage

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

func OpenConnection

func OpenConnection(cfg *mgo.DialInfo) (*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