Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 2020 Changes in this version + const APIPublicV1Path + const CloudURL + const DefaultBaseURL + const DefaultUserAgent + const Version + type Args26 struct + NET Net + Replication *Replication + Sharding *Sharding + Storage *Storage + SystemLog SystemLog + type Auth struct + AuthoritativeSet bool + AutoAuthMechanism string + AutoPwd string + AutoUser string + DeploymentAuthMechanisms []string + Disabled bool + Key string + Keyfile string + KeyfileWindows string + UsersDeleted []interface{} + UsersWanted []map[string]interface{} + type AutomationConfig struct + AgentVersion *map[string]interface{} + Auth Auth + BackupVersions []*map[string]interface{} + Balancer *map[string]interface{} + CPSModules []*map[string]interface{} + IndexConfigs []*map[string]interface{} + Kerberos *map[string]interface{} + LDAP *map[string]interface{} + MongoDBVersions []*map[string]interface{} + MongoSQLDs []*map[string]interface{} + MongoTs []*map[string]interface{} + MonitoringVersions []*map[string]interface{} + Options *Options + Processes []*Process + ReplicaSets []*ReplicaSet + Roles []*map[string]interface{} + SSL *SSL + Sharding *[]map[string]interface{} + UIBaseURL string + Version int + type AutomationService interface + Get func(context.Context, string) (*AutomationConfig, *atlas.Response, error) + Update func(context.Context, string, *AutomationConfig) (*atlas.Response, error) + type AutomationServiceOp struct + func (s *AutomationServiceOp) Get(ctx context.Context, groupID string) (*AutomationConfig, *atlas.Response, error) + func (s *AutomationServiceOp) Update(ctx context.Context, groupID string, updateRequest *AutomationConfig) (*atlas.Response, error) + type Client struct + AutomationConfig AutomationService + BaseURL *url.URL + Organizations OrganizationsService + Projects ProjectsService + UnauthUsers UnauthUsersService + UserAgent string + func New(httpClient *http.Client, opts ...ClientOpt) (*Client, error) + func NewClient(httpClient *http.Client) *Client + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*atlas.Response, error) + func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) OnRequestCompleted(rc RequestCompletionCallback) + type ClientOpt func(*Client) error + func SetBaseURL(bu string) ClientOpt + func SetUserAgent(ua string) ClientOpt + type CreateUserResponse struct + APIKey string + User *User + type HostCount struct + Arbiter int + Config int + Master int + Mongos int + Primary int + Secondary int + Slave int + type LogRotate struct + SizeThresholdMB float64 + TimeThresholdHrs int + type Member struct + ArbiterOnly bool + BuildIndexes bool + Hidden bool + Host string + ID int + Priority float64 + SlaveDelay float64 + Votes float64 + type Net struct + Port int + SSL *NetSSL + type NetSSL struct + Mode string + PEMKeyFile string + type Options struct + DownloadBase string + type Organization struct + ID string + Links []*atlas.Link + Name string + type Organizations struct + Links []*atlas.Link + Results []*Organization + TotalCount int + type OrganizationsService interface + Create func(context.Context, *Organization) (*Organization, *atlas.Response, error) + Delete func(context.Context, string) (*atlas.Response, error) + GetAllOrganizations func(context.Context) (*Organizations, *atlas.Response, error) + GetOneOrganization func(context.Context, string) (*Organization, *atlas.Response, error) + GetProjects func(context.Context, string) (*Projects, *atlas.Response, error) + type OrganizationsServiceOp struct + func (s *OrganizationsServiceOp) Create(ctx context.Context, createRequest *Organization) (*Organization, *atlas.Response, error) + func (s *OrganizationsServiceOp) Delete(ctx context.Context, orgID string) (*atlas.Response, error) + func (s *OrganizationsServiceOp) GetAllOrganizations(ctx context.Context) (*Organizations, *atlas.Response, error) + func (s *OrganizationsServiceOp) GetOneOrganization(ctx context.Context, orgID string) (*Organization, *atlas.Response, error) + func (s *OrganizationsServiceOp) GetProjects(ctx context.Context, orgID string) (*Projects, *atlas.Response, error) + type Process struct + Args26 Args26 + AuthSchemaVersion int + Cluster string + Disabled bool + FeatureCompatibilityVersion string + Hostname string + LastGoalVersionAchieved int + LogRotate *LogRotate + ManualMode bool + Name string + Plan []string + ProcessType string + Version string + type Project struct + ActiveAgentCount int + HostCounts *HostCount + ID string + LastActiveAgent string + Links []*atlas.Link + Name string + OrgID string + PublicAPIEnabled bool + ReplicaSetCount int + ShardCount int + Tags []*string + type Projects struct + Links []*atlas.Link + Results []*Project + TotalCount int + type ProjectsService interface + Create func(context.Context, *Project) (*Project, *atlas.Response, error) + Delete func(context.Context, string) (*atlas.Response, error) + GetAllProjects func(context.Context) (*Projects, *atlas.Response, error) + GetOneProject func(context.Context, string) (*Project, *atlas.Response, error) + GetOneProjectByName func(context.Context, string) (*Project, *atlas.Response, error) + type ProjectsServiceOp struct + func (s *ProjectsServiceOp) Create(ctx context.Context, createRequest *Project) (*Project, *atlas.Response, error) + func (s *ProjectsServiceOp) Delete(ctx context.Context, projectID string) (*atlas.Response, error) + func (s *ProjectsServiceOp) GetAllProjects(ctx context.Context) (*Projects, *atlas.Response, error) + func (s *ProjectsServiceOp) GetOneProject(ctx context.Context, projectID string) (*Project, *atlas.Response, error) + func (s *ProjectsServiceOp) GetOneProjectByName(ctx context.Context, projectName string) (*Project, *atlas.Response, error) + type ReplicaSet struct + ID string + Members []Member + ProtocolVersion string + type Replication struct + ReplSetName string + type RequestCompletionCallback func(*http.Request, *http.Response) + type SSL struct + AutoPEMKeyFilePath string + CAFilePath string + ClientCertificateMode string + type Sharding struct + ClusterRole string + type Storage struct + DBPath string + type SystemLog struct + Destination string + Path string + type UnauthUsersService interface + CreateFirstUser func(context.Context, *User, *WhitelistOpts) (*CreateUserResponse, *atlas.Response, error) + type UnauthUsersServiceOp struct + func (s *UnauthUsersServiceOp) CreateFirstUser(ctx context.Context, user *User, opts *WhitelistOpts) (*CreateUserResponse, *atlas.Response, error) + type User struct + EmailAddress string + FirstName string + ID string + LastName string + Links []*atlas.Link + Password string + Roles []*UserRole + Username string + type UserRole struct + GroupID string + OrgID string + RoleName string + type WhitelistOpts struct + Whitelist []string