Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) AddAlerts(filename string) (string, error)
- func (api *API) AlertsDo(method string, data string) (string, error)
- func (api *API) ClustersDo(method string, data string) (string, error)
- func (api *API) DownloadFTDC() (string, error)
- func (api *API) DownloadLogs() ([]string, error)
- func (api *API) Execute() string
- func (api *API) Get(uri string) ([]byte, error)
- func (api *API) GetCluster(groupID string, clusterName string) (map[string]interface{}, error)
- func (api *API) GetClusters(groupID string) (map[string]interface{}, error)
- func (api *API) GetClustersSummary() (string, error)
- func (api *API) GetGroups() (map[string]interface{}, error)
- func (api *API) GetGroupsByID(groupID string) (map[string]interface{}, error)
- func (api *API) GetLogNames() []string
- func (api *API) GetProcesses(groupID string) (map[string]interface{}, error)
- func (api *API) GetProjects() ([]Project, error)
- func (api *API) Patch(uri string, body []byte) ([]byte, error)
- func (api *API) SetAcceptType(acceptType string)
- func (api *API) SetAlerts(alerts bool)
- func (api *API) SetAlertsFile(alertsFile string)
- func (api *API) SetArgs(args []string)
- func (api *API) SetContentType(contentType string)
- func (api *API) SetFTDC(ftdc bool)
- func (api *API) SetInfo(info bool)
- func (api *API) SetLoginfo(loginfo bool)
- func (api *API) SetPause(pause bool)
- func (api *API) SetRequest(request string)
- func (api *API) SetResume(resume bool)
- func (api *API) SetVerbose(verbose bool)
- type FTDC
- type Project
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 API ¶
type API struct {
// contains filtered or unexported fields
}
API stores Atlas API key
func (*API) ClustersDo ¶
ClustersDo execute a command
func (*API) DownloadFTDC ¶
DownloadFTDC downloads logs
func (*API) DownloadLogs ¶
DownloadLogs downloads logs
func (*API) GetCluster ¶
GetCluster gets clusters by a group
func (*API) GetClusters ¶
GetClusters gets clusters by a group
func (*API) GetClustersSummary ¶
GetClustersSummary retrieve clusters summary for a user
func (*API) GetGroupsByID ¶
GetGroupsByID get processes of a user
func (*API) GetLogNames ¶
GetLogNames gets downloaded log names
func (*API) GetProcesses ¶
GetProcesses get processes of a user
func (*API) GetProjects ¶
GetProjects returns an array of group IDs
func (*API) SetAcceptType ¶
SetAcceptType sets acceptType
func (*API) SetAlertsFile ¶
SetAlertsFile sets alerts
func (*API) SetContentType ¶
SetContentType sets contentType
Click to show internal directories.
Click to hide internal directories.