atlas

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationGZip = "application/gzip"

ApplicationGZip -

View Source
const ApplicationJSON = "application/json"

ApplicationJSON -

View Source
const BaseURL = "https://cloud.mongodb.com/api/atlas/v1.0"

BaseURL -

Variables

This section is empty.

Functions

This section is empty.

Types

type Logs

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

Logs info

func ParseAtlasURI

func ParseAtlasURI(uri string) *Logs

ParseAtlasURI parses atlas://user:apiKey@groupID/cluster

func (*Logs) DownloadLogs

func (lg *Logs) DownloadLogs(dirname string) ([]string, error)

DownloadLogs download all logs of a groupID

func (*Logs) Error

func (lg *Logs) Error() string

Error returns error string

func (*Logs) SetVerbose

func (lg *Logs) SetVerbose(verbose bool)

SetVerbose -

type Summary

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

Summary info

func NewSummary

func NewSummary(user string) *Summary

NewSummary establish Atlas credential

func (*Summary) GetSummary

func (su *Summary) GetSummary() (string, error)

GetSummary returns Atlas info

func (*Summary) SetVerbose

func (su *Summary) SetVerbose(verbose bool)

SetVerbose -

Jump to

Keyboard shortcuts

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