list

package
v0.0.0-...-dd4b6ca Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdList

func NewCmdList(op ListDocumentsOp) *cobra.Command

NewCmdList returns an instance of List command.

Types

type ListDocumentsOp

type ListDocumentsOp interface {
	ListDocuments(db, coll string) ([]bson.M, []error)
}

ListDocumentsOp is exported.

type ListOptions

type ListOptions struct {
	Database   string
	Collection string
}

ListOptions is exported.

func (*ListOptions) Execute

func (o *ListOptions) Execute(op ListDocumentsOp)

Execute is exported.

func (*ListOptions) Fill

func (o *ListOptions) Fill(cmd *cobra.Command)

Fill is exported.

Jump to

Keyboard shortcuts

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