Documentation ¶
Overview ¶
Copyright 2020 MongoDB Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type AgentLister
- type AlertAcknowledger
- type AlertConfigurationCreator
- type AlertConfigurationDeleter
- type AlertConfigurationLister
- type AlertConfigurationStore
- type AlertConfigurationUpdater
- type AlertDescriber
- type AlertLister
- type AlertsStore
- type AllClusterLister
- type AutomationGetter
- type AutomationPatcher
- type AutomationStatusGetter
- type AutomationStore
- type AutomationUpdater
- type CheckpointsLister
- type CloudManagerClustersLister
- type ClusterCreator
- type ClusterDeleter
- type ClusterDescriber
- type ClusterLister
- type ClusterStore
- type ClusterUpdater
- type ContinuousJobCreator
- type ContinuousJobLister
- type DatabaseUserCreator
- type DatabaseUserDeleter
- type DatabaseUserDescriber
- type DatabaseUserLister
- type DatabaseUserStore
- type DatabaseUserUpdater
- type EventsStore
- type GlobalAlertLister
- type GlobalAlertsStore
- type MatcherFieldsLister
- type OrgProjectLister
- type OrganizationCreator
- type OrganizationDeleter
- type OrganizationEventLister
- type OrganizationLister
- type OrganizationStore
- type OwnerCreator
- type ProjectCreator
- type ProjectDeleter
- type ProjectEventLister
- type ProjectIPWhitelistCreator
- type ProjectIPWhitelistDeleter
- type ProjectIPWhitelistDescriber
- type ProjectIPWhitelistLister
- type ProjectIPWhitelistStore
- type ProjectLister
- type ProjectStore
- type SnapshotDescriber
- type SnapshotsLister
- type SnapshotsStore
- type Store
- func (s *Store) AcknowledgeAlert(projectID, alertID string, body *atlas.AcknowledgeRequest) (*atlas.Alert, error)
- func (s *Store) Agents(projectID, agentType string) (*om.Agents, error)
- func (s *Store) Alert(projectID, alertID string) (*atlas.Alert, error)
- func (s *Store) AlertConfigurations(projectID string, opts *atlas.ListOptions) ([]atlas.AlertConfiguration, error)
- func (s *Store) Alerts(projectID string, opts *atlas.AlertsListOptions) (*atlas.AlertsResponse, error)
- func (s *Store) Cluster(projectID string, name string) (*atlas.Cluster, error)
- func (s *Store) ContinuousRestoreJobs(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.ContinuousJobs, error)
- func (s *Store) ContinuousSnapshot(projectID, clusterID, snapshotID string) (*atlas.ContinuousSnapshot, error)
- func (s *Store) ContinuousSnapshots(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.ContinuousSnapshots, error)
- func (s *Store) CreateAlertConfiguration(alertConfig *atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
- func (s *Store) CreateCluster(cluster *atlas.Cluster) (*atlas.Cluster, error)
- func (s *Store) CreateContinuousRestoreJob(projectID, clusterID string, request *atlas.ContinuousJobRequest) (*atlas.ContinuousJobs, error)
- func (s *Store) CreateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)
- func (s *Store) CreateOrganization(name string) (interface{}, error)
- func (s *Store) CreateOwner(u *om.User, IPs []string) (*om.CreateUserResponse, error)
- func (s *Store) CreateProject(name, orgID string) (interface{}, error)
- func (s *Store) CreateProjectIPWhitelist(whitelist *atlas.ProjectIPWhitelist) ([]atlas.ProjectIPWhitelist, error)
- func (s *Store) DatabaseUser(authDB string, groupID string, username string) (*atlas.DatabaseUser, error)
- func (s *Store) DatabaseUsers(projectID string, opts *atlas.ListOptions) ([]atlas.DatabaseUser, error)
- func (s *Store) DeleteAlertConfiguration(projectID, id string) error
- func (s *Store) DeleteCluster(projectID, name string) error
- func (s *Store) DeleteDatabaseUser(authDB, groupID, username string) error
- func (s *Store) DeleteOrganization(ID string) error
- func (s *Store) DeleteProject(projectID string) error
- func (s *Store) DeleteProjectIPWhitelist(projectID, whitelistEntry string) error
- func (s *Store) GetAllOrganizations() (interface{}, error)
- func (s *Store) GetAllProjects() (interface{}, error)
- func (s *Store) GetAutomationConfig(projectID string) (*om.AutomationConfig, error)
- func (s *Store) GetAutomationStatus(projectID string) (*om.AutomationStatus, error)
- func (s *Store) GetOrgProjects(orgID string) (interface{}, error)
- func (s *Store) GlobalAlerts(opts *atlas.AlertsListOptions) (*om.GlobalAlerts, error)
- func (s *Store) IPWhitelist(projectID string, name string) (*atlas.ProjectIPWhitelist, error)
- func (s *Store) List(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.Checkpoints, error)
- func (s *Store) ListAllProjectClusters() (*om.AllClustersProjects, error)
- func (s *Store) MatcherFields() ([]string, error)
- func (s *Store) OrganizationEvents(projectID string, opts *atlas.EventListOptions) (*atlas.EventResponse, error)
- func (s *Store) ProjectClusters(projectID string, opts *atlas.ListOptions) ([]atlas.Cluster, error)
- func (s *Store) ProjectEvents(projectID string, opts *atlas.ListOptions) (*atlas.EventResponse, error)
- func (s *Store) ProjectIPWhitelists(projectID string, opts *atlas.ListOptions) ([]atlas.ProjectIPWhitelist, error)
- func (s *Store) UpdateAlertConfiguration(alertConfig *atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
- func (s *Store) UpdateAutomationConfig(projectID string, automationConfig *om.AutomationConfig) error
- func (s *Store) UpdateCluster(cluster *atlas.Cluster) (*atlas.Cluster, error)
- func (s *Store) UpdateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentLister ¶ added in v0.0.4
type AlertAcknowledger ¶ added in v0.1.0
type AlertConfigurationCreator ¶
type AlertConfigurationCreator interface {
CreateAlertConfiguration(*atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
}
type AlertConfigurationLister ¶
type AlertConfigurationLister interface {
AlertConfigurations(string, *atlas.ListOptions) ([]atlas.AlertConfiguration, error)
}
type AlertConfigurationStore ¶
type AlertConfigurationStore interface { AlertConfigurationLister AlertConfigurationCreator AlertConfigurationDeleter AlertConfigurationUpdater MatcherFieldsLister }
type AlertConfigurationUpdater ¶ added in v0.1.0
type AlertConfigurationUpdater interface {
UpdateAlertConfiguration(*atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
}
type AlertDescriber ¶ added in v0.1.0
type AlertLister ¶ added in v0.1.0
type AlertLister interface {
Alerts(string, *atlas.AlertsListOptions) (*atlas.AlertsResponse, error)
}
type AlertsStore ¶ added in v0.1.0
type AlertsStore interface { AlertDescriber AlertLister AlertAcknowledger }
type AllClusterLister ¶ added in v0.0.4
type AllClusterLister interface {
ListAllProjectClusters() (*om.AllClustersProjects, error)
}
type AutomationGetter ¶
type AutomationGetter interface {
GetAutomationConfig(string) (*om.AutomationConfig, error)
}
type AutomationPatcher ¶ added in v0.1.0
type AutomationPatcher interface { AutomationGetter AutomationUpdater }
type AutomationStatusGetter ¶ added in v0.0.4
type AutomationStatusGetter interface {
GetAutomationStatus(string) (*om.AutomationStatus, error)
}
type AutomationStore ¶
type AutomationStore interface { AutomationGetter AutomationUpdater AutomationStatusGetter }
type AutomationUpdater ¶
type AutomationUpdater interface {
UpdateAutomationConfig(string, *om.AutomationConfig) error
}
type CheckpointsLister ¶ added in v0.0.4
type CheckpointsLister interface {
List(string, string, *atlas.ListOptions) (*atlas.Checkpoints, error)
}
type CloudManagerClustersLister ¶ added in v0.0.4
type CloudManagerClustersLister interface { AutomationGetter AllClusterLister }
type ClusterCreator ¶
type ClusterDeleter ¶
type ClusterDescriber ¶
type ClusterLister ¶
type ClusterStore ¶
type ClusterStore interface { ClusterLister ClusterDescriber ClusterCreator ClusterDeleter ClusterUpdater }
type ClusterUpdater ¶
type ContinuousJobCreator ¶ added in v0.0.4
type ContinuousJobCreator interface {
CreateContinuousRestoreJob(string, string, *atlas.ContinuousJobRequest) (*atlas.ContinuousJobs, error)
}
type ContinuousJobLister ¶ added in v0.0.4
type ContinuousJobLister interface {
ContinuousRestoreJobs(string, string, *atlas.ListOptions) (*atlas.ContinuousJobs, error)
}
type DatabaseUserCreator ¶
type DatabaseUserCreator interface {
CreateDatabaseUser(*atlas.DatabaseUser) (*atlas.DatabaseUser, error)
}
type DatabaseUserDeleter ¶
type DatabaseUserDescriber ¶
type DatabaseUserLister ¶
type DatabaseUserLister interface {
DatabaseUsers(groupID string, opts *atlas.ListOptions) ([]atlas.DatabaseUser, error)
}
type DatabaseUserStore ¶
type DatabaseUserStore interface { DatabaseUserCreator DatabaseUserDeleter DatabaseUserUpdater DatabaseUserDescriber }
type DatabaseUserUpdater ¶
type DatabaseUserUpdater interface {
UpdateDatabaseUser(*atlas.DatabaseUser) (*atlas.DatabaseUser, error)
}
type EventsStore ¶ added in v0.1.0
type EventsStore interface { OrganizationEventLister ProjectEventLister }
type GlobalAlertLister ¶ added in v0.1.0
type GlobalAlertLister interface {
GlobalAlerts(*atlas.AlertsListOptions) (*om.GlobalAlerts, error)
}
type GlobalAlertsStore ¶ added in v0.1.0
type GlobalAlertsStore interface { GlobalAlertLister }
type MatcherFieldsLister ¶ added in v0.1.0
type OrgProjectLister ¶
type OrganizationCreator ¶
type OrganizationDeleter ¶
type OrganizationEventLister ¶ added in v0.1.0
type OrganizationEventLister interface {
OrganizationEvents(string, *atlas.EventListOptions) (*atlas.EventResponse, error)
}
type OrganizationLister ¶
type OrganizationLister interface {
GetAllOrganizations() (interface{}, error)
}
type OrganizationStore ¶
type OrganizationStore interface { OrganizationLister OrganizationCreator OrganizationDeleter }
type OwnerCreator ¶
type ProjectCreator ¶
type ProjectDeleter ¶
type ProjectEventLister ¶ added in v0.1.0
type ProjectEventLister interface {
ProjectEvents(string, *atlas.ListOptions) (*atlas.EventResponse, error)
}
type ProjectIPWhitelistCreator ¶
type ProjectIPWhitelistCreator interface {
CreateProjectIPWhitelist(*atlas.ProjectIPWhitelist) ([]atlas.ProjectIPWhitelist, error)
}
type ProjectIPWhitelistDescriber ¶
type ProjectIPWhitelistDescriber interface {
IPWhitelist(string, string) (*atlas.ProjectIPWhitelist, error)
}
type ProjectIPWhitelistLister ¶
type ProjectIPWhitelistLister interface {
ProjectIPWhitelists(string, *atlas.ListOptions) ([]atlas.ProjectIPWhitelist, error)
}
type ProjectIPWhitelistStore ¶
type ProjectIPWhitelistStore interface { ProjectIPWhitelistLister ProjectIPWhitelistCreator ProjectIPWhitelistDeleter }
type ProjectLister ¶
type ProjectStore ¶
type ProjectStore interface { ProjectLister ProjectCreator ProjectDeleter }
type SnapshotDescriber ¶ added in v0.0.4
type SnapshotsLister ¶ added in v0.0.4
type SnapshotsLister interface {
ContinuousSnapshots(string, string, *atlas.ListOptions) (*atlas.ContinuousSnapshots, error)
}
type SnapshotsStore ¶ added in v0.0.4
type SnapshotsStore interface { SnapshotsLister SnapshotDescriber }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewUnauthenticated ¶
func (*Store) AcknowledgeAlert ¶ added in v0.1.0
func (s *Store) AcknowledgeAlert(projectID, alertID string, body *atlas.AcknowledgeRequest) (*atlas.Alert, error)
Acknowledge encapsulate the logic to manage different cloud providers
func (*Store) Agents ¶ added in v0.0.4
Agents encapsulate the logic to manage different cloud providers
func (*Store) Alert ¶ added in v0.1.0
Alert encapsulate the logic to manage different cloud providers
func (*Store) AlertConfigurations ¶
func (s *Store) AlertConfigurations(projectID string, opts *atlas.ListOptions) ([]atlas.AlertConfiguration, error)
AlertConfigurations encapsulate the logic to manage different cloud providers
func (*Store) Alerts ¶ added in v0.1.0
func (s *Store) Alerts(projectID string, opts *atlas.AlertsListOptions) (*atlas.AlertsResponse, error)
Alerts encapsulate the logic to manage different cloud providers
func (*Store) ContinuousRestoreJobs ¶ added in v0.0.4
func (s *Store) ContinuousRestoreJobs(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.ContinuousJobs, error)
func (*Store) ContinuousSnapshot ¶ added in v0.0.4
func (s *Store) ContinuousSnapshot(projectID, clusterID, snapshotID string) (*atlas.ContinuousSnapshot, error)
Cluster encapsulate the logic to manage different cloud providers
func (*Store) ContinuousSnapshots ¶ added in v0.0.4
func (s *Store) ContinuousSnapshots(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.ContinuousSnapshots, error)
ProjectClusters encapsulate the logic to manage different cloud providers
func (*Store) CreateAlertConfiguration ¶
func (s *Store) CreateAlertConfiguration(alertConfig *atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
CreateAlertConfiguration encapsulate the logic to manage different cloud providers
func (*Store) CreateCluster ¶
CreateCluster encapsulate the logic to manage different cloud providers
func (*Store) CreateContinuousRestoreJob ¶ added in v0.0.4
func (s *Store) CreateContinuousRestoreJob(projectID, clusterID string, request *atlas.ContinuousJobRequest) (*atlas.ContinuousJobs, error)
CreateContinuousRestoreJob encapsulate the logic to manage different cloud providers
func (*Store) CreateDatabaseUser ¶
func (s *Store) CreateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)
CreateDatabaseUser encapsulate the logic to manage different cloud providers
func (*Store) CreateOrganization ¶
CreateOrganization encapsulate the logic to manage different cloud providers
func (*Store) CreateOwner ¶
CreateOwner encapsulate the logic to manage different cloud providers
func (*Store) CreateProject ¶
CreateProject encapsulate the logic to manage different cloud providers
func (*Store) CreateProjectIPWhitelist ¶
func (s *Store) CreateProjectIPWhitelist(whitelist *atlas.ProjectIPWhitelist) ([]atlas.ProjectIPWhitelist, error)
CreateProjectIPWhitelist encapsulate the logic to manage different cloud providers
func (*Store) DatabaseUser ¶
func (*Store) DatabaseUsers ¶
func (s *Store) DatabaseUsers(projectID string, opts *atlas.ListOptions) ([]atlas.DatabaseUser, error)
func (*Store) DeleteAlertConfiguration ¶
DeleteAlertConfiguration encapsulate the logic to manage different cloud providers
func (*Store) DeleteCluster ¶
DeleteCluster encapsulate the logic to manage different cloud providers
func (*Store) DeleteDatabaseUser ¶
func (*Store) DeleteOrganization ¶
DeleteOrganization encapsulate the logic to manage different cloud providers
func (*Store) DeleteProject ¶
DeleteProject encapsulate the logic to manage different cloud providers
func (*Store) DeleteProjectIPWhitelist ¶
DeleteProjectIPWhitelist encapsulate the logic to manage different cloud providers
func (*Store) GetAllOrganizations ¶
GetAllProjects encapsulate the logic to manage different cloud providers
func (*Store) GetAllProjects ¶
GetAllProjects encapsulate the logic to manage different cloud providers
func (*Store) GetAutomationConfig ¶
func (s *Store) GetAutomationConfig(projectID string) (*om.AutomationConfig, error)
GetAutomationConfig encapsulate the logic to manage different cloud providers
func (*Store) GetAutomationStatus ¶ added in v0.0.4
func (s *Store) GetAutomationStatus(projectID string) (*om.AutomationStatus, error)
func (*Store) GetOrgProjects ¶
GetOrgProjects encapsulate the logic to manage different cloud providers
func (*Store) GlobalAlerts ¶ added in v0.1.0
func (s *Store) GlobalAlerts(opts *atlas.AlertsListOptions) (*om.GlobalAlerts, error)
GlobalAlerts encapsulate the logic to manage different cloud providers
func (*Store) IPWhitelist ¶
IPWhitelist encapsulate the logic to manage different cloud providers
func (*Store) List ¶ added in v0.0.4
func (s *Store) List(projectID, clusterID string, opts *atlas.ListOptions) (*atlas.Checkpoints, error)
List encapsulate the logic to manage different cloud providers
func (*Store) ListAllProjectClusters ¶ added in v0.1.0
func (s *Store) ListAllProjectClusters() (*om.AllClustersProjects, error)
ListAllProjectClusters encapsulate the logic to manage different cloud providers
func (*Store) MatcherFields ¶ added in v0.1.0
MatcherFields encapsulate the logic to manage different cloud providers
func (*Store) OrganizationEvents ¶ added in v0.1.0
func (s *Store) OrganizationEvents(projectID string, opts *atlas.EventListOptions) (*atlas.EventResponse, error)
OrganizationEvents encapsulate the logic to manage different cloud providers
func (*Store) ProjectClusters ¶
ProjectClusters encapsulate the logic to manage different cloud providers
func (*Store) ProjectEvents ¶ added in v0.1.0
func (s *Store) ProjectEvents(projectID string, opts *atlas.ListOptions) (*atlas.EventResponse, error)
ProjectEvents encapsulate the logic to manage different cloud providers
func (*Store) ProjectIPWhitelists ¶
func (s *Store) ProjectIPWhitelists(projectID string, opts *atlas.ListOptions) ([]atlas.ProjectIPWhitelist, error)
ProjectIPWhitelists encapsulate the logic to manage different cloud providers
func (*Store) UpdateAlertConfiguration ¶ added in v0.1.0
func (s *Store) UpdateAlertConfiguration(alertConfig *atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
func (*Store) UpdateAutomationConfig ¶
func (s *Store) UpdateAutomationConfig(projectID string, automationConfig *om.AutomationConfig) error
UpdateAutomationConfig encapsulate the logic to manage different cloud providers
func (*Store) UpdateCluster ¶
UpdateCluster encapsulate the logic to manage different cloud providers
func (*Store) UpdateDatabaseUser ¶
func (s *Store) UpdateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)