Documentation ¶
Overview ¶
Copyright 2021 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 ¶
- func StringOrEmpty(s *string) string
- type AlertAcknowledger
- type AlertConfigurationCreator
- type AlertConfigurationDeleter
- type AlertConfigurationDescriber
- type AlertConfigurationDisabler
- type AlertConfigurationEnabler
- type AlertConfigurationLister
- type AlertConfigurationUpdater
- type AlertDescriber
- type AlertLister
- type AllClustersLister
- type AuditingDescriber
- type AuthenticatedConfig
- type CloudProviderAccessRoleLister
- type ClusterConfigurationOptionsDescriber
- type ClusterDescriber
- type ClusterLister
- type CompliancePolicyCopyProtectionDisabler
- type CompliancePolicyCopyProtectionEnabler
- type CompliancePolicyDescriber
- type CompliancePolicyEnabler
- type CompliancePolicyEncryptionAtRestDisabler
- type CompliancePolicyEncryptionAtRestEnabler
- type CompliancePolicyEncryptionAtRestUpdater
- type CompliancePolicyOnDemandPolicyCreator
- type CompliancePolicyPointInTimeRestoresEnabler
- type CompliancePolicyScheduledPolicyCreator
- type CompliancePolicyScheduledPolicyDeleter
- type CompliancePolicyScheduledPolicyUpdater
- type CompliancePolicyUpdater
- type ContainersListOptions
- type CredentialsGetter
- type DataFederationCreator
- type DataFederationDeleter
- type DataFederationDescriber
- type DataFederationLister
- type DataFederationLogDownloader
- type DataFederationPrivateEndpointCreator
- type DataFederationPrivateEndpointDeleter
- type DataFederationPrivateEndpointDescriber
- type DataFederationPrivateEndpointLister
- type DataFederationQueryLimitCreator
- type DataFederationQueryLimitDeleter
- type DataFederationQueryLimitDescriber
- type DataFederationQueryLimitLister
- type DataFederationStore
- type DataFederationUpdater
- type DatabaseRoleLister
- type DatabaseUserLister
- type EncryptionAtRestDescriber
- type EventLister
- type GlobalClusterDescriber
- type IntegrationLister
- type ListOptions
- type MaintenanceWindowDescriber
- type MatcherFieldsLister
- type OperatorClusterStore
- type OperatorDBUsersStore
- type OperatorGenericStore
- type OperatorOrgStore
- type OperatorProjectStore
- type OperatorTeamsStore
- type Option
- func AuthenticatedPreset(c AuthenticatedConfig) Option
- func Options(opts ...Option) Option
- func Service(service string) Option
- func Telemetry() Option
- func UnauthenticatedPreset(c ServiceGetter) Option
- func WithAuthentication(c CredentialsGetter) Option
- func WithBaseURL(configURL string) Option
- func WithContext(ctx context.Context) Option
- type OrgProjectLister
- type OrganizationAPIKeyAccessListCreator
- type OrganizationAPIKeyAccessListDeleter
- type OrganizationAPIKeyAccessListLister
- type OrganizationAPIKeyCreator
- type OrganizationAPIKeyDeleter
- type OrganizationAPIKeyDescriber
- type OrganizationAPIKeyLister
- type OrganizationAPIKeyUpdater
- type OrganizationCreator
- type OrganizationDeleter
- type OrganizationDescriber
- type OrganizationEventLister
- type OrganizationInvitationDeleter
- type OrganizationInvitationDescriber
- type OrganizationInvitationLister
- type OrganizationInvitationUpdater
- type OrganizationInviter
- type OrganizationLister
- type PeeringConnectionLister
- type PerformanceAdvisorIndexesLister
- type PerformanceAdvisorNamespacesLister
- type PerformanceAdvisorSlowOperationThresholdDisabler
- type PerformanceAdvisorSlowOperationThresholdEnabler
- type PerformanceAdvisorSlowQueriesLister
- type PipelineAvailableSchedulesLister
- type PipelineAvailableSnapshotsLister
- type PipelineDatasetDeleter
- type PipelineRunsDescriber
- type PipelineRunsLister
- type PipelinesCreator
- type PipelinesDeleter
- type PipelinesDescriber
- type PipelinesLister
- type PipelinesPauser
- type PipelinesResumer
- type PipelinesTriggerer
- type PipelinesUpdater
- type PrivateEndpointLister
- type ProjectAPIKeyAssigner
- type ProjectAPIKeyCreator
- type ProjectAPIKeyDeleter
- type ProjectAPIKeyLister
- type ProjectCreator
- type ProjectDeleter
- type ProjectDescriber
- type ProjectEventLister
- type ProjectIPAccessListLister
- type ProjectInvitationDeleter
- type ProjectInvitationDescriber
- type ProjectInvitationLister
- type ProjectInvitationUpdater
- type ProjectInviter
- type ProjectLister
- type ProjectSettingsDescriber
- type ProjectTeamAdder
- type ProjectTeamDeleter
- type ProjectTeamLister
- type ProjectUserDeleter
- type ProjectUsersLister
- type ScheduleDescriber
- type ServerlessInstanceDescriber
- type ServerlessInstanceLister
- type ServerlessPrivateEndpointsLister
- type ServiceGetter
- type ServiceVersionDescriber
- type Store
- func (s *Store) AcknowledgeAlert(params *admin.AcknowledgeAlertApiParams) (*admin.AlertViewForNdsGroup, error)
- func (s *Store) AddTeamsToProject(projectID string, teams []atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
- func (s *Store) AddUsersToTeam(orgID, teamID string, users []atlasv2.AddUserToTeam) (*atlasv2.PaginatedApiAppUser, error)
- func (s *Store) Alert(params *admin.GetAlertApiParams) (*admin.AlertViewForNdsGroup, error)
- func (s *Store) AlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
- func (s *Store) AlertConfigurations(params *admin.ListAlertConfigurationsApiParams) (*admin.PaginatedAlertConfig, error)
- func (s *Store) Alerts(params *admin.ListAlertsApiParams) (*admin.PaginatedAlert, error)
- func (s *Store) AssignProjectAPIKey(projectID, apiKeyID string, input *atlasv2.UpdateAtlasProjectApiKey) error
- func (s *Store) AtlasCluster(projectID, name string) (*admin.AdvancedClusterDescription, error)
- func (s *Store) AtlasClusterConfigurationOptions(projectID, name string) (*admin.ClusterDescriptionProcessArgs, error)
- func (s *Store) Auditing(projectID string) (*atlasv2.AuditLog, error)
- func (s *Store) CloudProviderAccessRoles(groupID string) (*atlasv2.CloudProviderAccessRoles, error)
- func (s *Store) CreateAlertConfiguration(alertConfig *admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
- func (s *Store) CreateAtlasOrganization(o *atlasv2.CreateOrganizationRequest) (*atlasv2.CreateOrganizationResponse, error)
- func (s *Store) CreateDataFederation(projectID string, opts *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
- func (s *Store) CreateDataFederationPrivateEndpoint(projectID string, opts *admin.PrivateNetworkEndpointIdEntry) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
- func (s *Store) CreateDataFederationQueryLimit(projectID, tenantName, limitName string, ...) (*admin.DataFederationTenantQueryLimit, error)
- func (s *Store) CreateOnDemandPolicy(projectID string, policy *atlasv2.BackupComplianceOnDemandPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) CreateOrganizationAPIKey(orgID string, input *atlasv2.CreateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
- func (s *Store) CreateOrganizationAPIKeyAccessList(params *admin.CreateApiKeyAccessListApiParams) (*admin.PaginatedApiUserAccessList, error)
- func (s *Store) CreatePipeline(projectID string, opts atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) CreateProject(params *atlasv2.CreateProjectApiParams) (*atlasv2.Group, error)
- func (s *Store) CreateProjectAPIKey(projectID string, apiKeyInput *atlasv2.CreateAtlasProjectApiKey) (*atlasv2.ApiKeyUserDetails, error)
- func (s *Store) CreateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) CreateTeam(orgID string, team *atlasv2.Team) (*atlasv2.Team, error)
- func (s *Store) CreateUser(user *atlasv2.CloudAppUser) (*atlasv2.CloudAppUser, error)
- func (s *Store) DataFederation(projectID, id string) (*admin.DataLakeTenant, error)
- func (s *Store) DataFederationList(projectID string) ([]admin.DataLakeTenant, error)
- func (s *Store) DataFederationLogs(projectID, id string, startDate, endDate int64) (io.ReadCloser, error)
- func (s *Store) DataFederationPrivateEndpoint(projectID, id string) (*admin.PrivateNetworkEndpointIdEntry, error)
- func (s *Store) DataFederationPrivateEndpoints(projectID string) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
- func (s *Store) DataFederationQueryLimit(projectID, tenantName, limitName string) (*admin.DataFederationTenantQueryLimit, error)
- func (s *Store) DataFederationQueryLimits(projectID, tenantName string) ([]admin.DataFederationTenantQueryLimit, error)
- func (s *Store) DatabaseRoles(projectID string) ([]atlasv2.UserCustomDBRole, error)
- func (s *Store) DatabaseUsers(projectID string, opts *ListOptions) (*atlasv2.PaginatedApiAtlasDatabaseUser, error)
- func (s *Store) DeleteAlertConfiguration(projectID, id string) error
- func (s *Store) DeleteDataFederation(projectID, id string) error
- func (s *Store) DeleteDataFederationPrivateEndpoint(projectID, id string) error
- func (s *Store) DeleteDataFederationQueryLimit(projectID, tenantName, limitName string) error
- func (s *Store) DeleteInvitation(orgID, invitationID string) error
- func (s *Store) DeleteOrganization(id string) error
- func (s *Store) DeleteOrganizationAPIKey(orgID, id string) error
- func (s *Store) DeleteOrganizationAPIKeyAccessList(orgID, apiKeyID, ipAddress string) error
- func (s *Store) DeletePipeline(projectID, id string) error
- func (s *Store) DeletePipelineDataset(projectID, pipelineName, id string) error
- func (s *Store) DeleteProject(projectID string) error
- func (s *Store) DeleteProjectAPIKey(projectID, id string) error
- func (s *Store) DeleteProjectInvitation(groupID, invitationID string) error
- func (s *Store) DeleteScheduledPolicy(projectID, scheduledPolicyID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) DeleteTeam(orgID, teamID string) error
- func (s *Store) DeleteTeamFromProject(projectID, teamID string) error
- func (s *Store) DeleteUserFromProject(projectID, userID string) error
- func (s *Store) DescribeCompliancePolicy(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) DescribeSchedule(projectID, clusterName string) (*atlasv2.DiskBackupSnapshotSchedule, error)
- func (s *Store) DisableAlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
- func (s *Store) DisableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) DisableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) DisablePerformanceAdvisorSlowOperationThreshold(projectID string) error
- func (s *Store) EnableAlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
- func (s *Store) EnableCompliancePolicy(projectID, authorizedEmail, authorizedFirstName, authorizedLastName string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) EnableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) EnableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) EnablePerformanceAdvisorSlowOperationThreshold(projectID string) error
- func (s *Store) EnablePointInTimeRestore(projectID string, restoreWindowDays int) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) EncryptionAtRest(projectID string) (*atlasv2.EncryptionAtRest, error)
- func (s *Store) GetOrgProjects(orgID string, opts *ListOptions) (*atlasv2.PaginatedAtlasGroup, error)
- func (s *Store) GetServerlessInstance(projectID, clusterName string) (*atlasv2.ServerlessInstanceDescription, error)
- func (s *Store) GlobalCluster(projectID, instanceName string) (*atlasv2.GeoSharding, error)
- func (s *Store) Integrations(projectID string) (*atlasv2.PaginatedIntegration, error)
- func (s *Store) InviteUser(orgID string, invitation *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
- func (s *Store) InviteUserToProject(groupID string, invitation *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
- func (s *Store) MaintenanceWindow(projectID string) (*atlasv2.GroupMaintenanceWindow, error)
- func (s *Store) MatcherFields() ([]string, error)
- func (s *Store) Organization(id string) (*atlasv2.AtlasOrganization, error)
- func (s *Store) OrganizationAPIKey(orgID, apiKeyID string) (*atlasv2.ApiKeyUserDetails, error)
- func (s *Store) OrganizationAPIKeyAccessLists(params *admin.ListApiKeyAccessListsEntriesApiParams) (*admin.PaginatedApiUserAccessList, error)
- func (s *Store) OrganizationAPIKeys(orgID string, opts *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
- func (s *Store) OrganizationEvents(opts *admin.ListOrganizationEventsApiParams) (*admin.OrgPaginatedEvent, error)
- func (s *Store) OrganizationInvitation(orgID, invitationID string) (*atlasv2.OrganizationInvitation, error)
- func (s *Store) OrganizationInvitations(params *atlasv2.ListOrganizationInvitationsApiParams) ([]atlasv2.OrganizationInvitation, error)
- func (s *Store) OrganizationUsers(organizationID string, opts *atlas.ListOptions) (*atlasv2.PaginatedAppUser, error)
- func (s *Store) Organizations(params *atlasv2.ListOrganizationsApiParams) (*atlasv2.PaginatedOrganization, error)
- func (s *Store) PeeringConnections(projectID string, opts *ContainersListOptions) ([]atlasv2.BaseNetworkPeeringConnectionSettings, error)
- func (s *Store) PerformanceAdvisorIndexes(opts *atlasv2.ListSuggestedIndexesApiParams) (*atlasv2.PerformanceAdvisorResponse, error)
- func (s *Store) PerformanceAdvisorNamespaces(opts *atlasv2.ListSlowQueryNamespacesApiParams) (*atlasv2.Namespaces, error)
- func (s *Store) PerformanceAdvisorSlowQueries(opts *atlasv2.ListSlowQueriesApiParams) (*atlasv2.PerformanceAdvisorSlowQueryList, error)
- func (s *Store) Pipeline(projectID, id string) (*atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) PipelineAvailableSchedules(projectID, pipelineName string) ([]atlasv2.DiskBackupApiPolicyItem, error)
- func (s *Store) PipelineAvailableSnapshots(projectID, pipelineName string, completedAfter *time.Time, ...) (*atlasv2.PaginatedBackupSnapshot, error)
- func (s *Store) PipelinePause(projectID, pipelineName string) (*atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) PipelineResume(projectID, pipelineName string) (*atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) PipelineRun(projectID, pipelineName, id string) (*atlasv2.IngestionPipelineRun, error)
- func (s *Store) PipelineRuns(projectID, pipelineName string) (*atlasv2.PaginatedPipelineRun, error)
- func (s *Store) PipelineTrigger(projectID, pipelineName, snapshotID string) (*atlasv2.IngestionPipelineRun, error)
- func (s *Store) Pipelines(projectID string) ([]atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) PrivateEndpoints(projectID, provider string) ([]atlasv2.EndpointService, error)
- func (s *Store) Project(id string) (interface{}, error)
- func (s *Store) ProjectAPIKeys(projectID string, opts *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
- func (s *Store) ProjectByName(name string) (interface{}, error)
- func (s *Store) ProjectClusters(projectID string, opts *ListOptions) (interface{}, error)
- func (s *Store) ProjectEvents(opts *admin.ListProjectEventsApiParams) (*admin.GroupPaginatedEvent, error)
- func (s *Store) ProjectIPAccessLists(projectID string, opts *ListOptions) (*atlasv2.PaginatedNetworkAccess, error)
- func (s *Store) ProjectInvitation(groupID, invitationID string) (*atlasv2.GroupInvitation, error)
- func (s *Store) ProjectInvitations(params *atlasv2.ListProjectInvitationsApiParams) ([]atlasv2.GroupInvitation, error)
- func (s *Store) ProjectSettings(projectID string) (*atlasv2.GroupSettings, error)
- func (s *Store) ProjectTeams(projectID string) (*atlasv2.PaginatedTeamRole, error)
- func (s *Store) ProjectUsers(projectID string, opts *ListOptions) (*atlasv2.PaginatedAppUser, error)
- func (s *Store) Projects(opts *ListOptions) (*atlasv2.PaginatedAtlasGroup, error)
- func (s *Store) RemoveUserFromTeam(orgID, teamID, userID string) error
- func (s *Store) RenameTeam(orgID, teamID string, team *atlasv2.TeamUpdate) (*atlasv2.TeamResponse, error)
- func (s *Store) ServerlessInstances(projectID string, listOps *ListOptions) (*atlasv2.PaginatedServerlessInstanceDescription, error)
- func (s *Store) ServerlessPrivateEndpoints(projectID, instanceName string) ([]atlasv2.ServerlessTenantEndpoint, error)
- func (s *Store) ServiceVersion() (*atlas.ServiceVersion, error)
- func (s *Store) TeamByID(orgID, teamID string) (*atlasv2.TeamResponse, error)
- func (s *Store) TeamByName(orgID, teamName string) (*atlasv2.TeamResponse, error)
- func (s *Store) TeamUsers(orgID, teamID string) (*atlasv2.PaginatedApiAppUser, error)
- func (s *Store) Teams(orgID string, opts *atlas.ListOptions) (*atlasv2.PaginatedTeam, error)
- func (s *Store) UpdateAlertConfiguration(alertConfig *admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
- func (s *Store) UpdateCompliancePolicy(projectID string, opts *atlasv2.DataProtectionSettings20231001) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) UpdateDataFederation(projectID, id string, opts *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
- func (s *Store) UpdateOrganizationAPIKey(orgID, apiKeyID string, input *atlasv2.UpdateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
- func (s *Store) UpdateOrganizationInvitation(orgID, invitationID string, invitation *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
- func (s *Store) UpdatePipeline(projectID, id string, opts atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
- func (s *Store) UpdateProjectInvitation(groupID, invitationID string, invitation *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
- func (s *Store) UpdateProjectTeamRoles(projectID, teamID string, team *atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
- func (s *Store) UpdateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
- func (s *Store) UserByID(userID string) (*atlasv2.CloudAppUser, error)
- func (s *Store) UserByName(username string) (*atlasv2.CloudAppUser, error)
- type TeamAdder
- type TeamCreator
- type TeamDeleter
- type TeamDescriber
- type TeamLister
- type TeamRenamer
- type TeamRolesUpdater
- type TeamUserLister
- type TeamUserRemover
- type Transport
- type UserCreator
- type UserDescriber
- type UserLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringOrEmpty ¶
Types ¶
type AlertAcknowledger ¶
type AlertAcknowledger interface {
AcknowledgeAlert(*admin.AcknowledgeAlertApiParams) (*admin.AlertViewForNdsGroup, error)
}
type AlertConfigurationCreator ¶
type AlertConfigurationCreator interface {
CreateAlertConfiguration(*admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
}
type AlertConfigurationDescriber ¶
type AlertConfigurationDescriber interface {
AlertConfiguration(string, string) (*admin.GroupAlertsConfig, error)
}
type AlertConfigurationDisabler ¶
type AlertConfigurationDisabler interface {
DisableAlertConfiguration(string, string) (*admin.GroupAlertsConfig, error)
}
type AlertConfigurationEnabler ¶
type AlertConfigurationEnabler interface {
EnableAlertConfiguration(string, string) (*admin.GroupAlertsConfig, error)
}
type AlertConfigurationLister ¶
type AlertConfigurationLister interface {
AlertConfigurations(*admin.ListAlertConfigurationsApiParams) (*admin.PaginatedAlertConfig, error)
}
type AlertConfigurationUpdater ¶
type AlertConfigurationUpdater interface {
UpdateAlertConfiguration(*admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
}
type AlertDescriber ¶
type AlertDescriber interface {
Alert(*admin.GetAlertApiParams) (*admin.AlertViewForNdsGroup, error)
}
type AlertLister ¶
type AlertLister interface {
Alerts(*admin.ListAlertsApiParams) (*admin.PaginatedAlert, error)
}
type AllClustersLister ¶
type AllClustersLister interface { ClusterLister ServerlessInstanceLister }
type AuditingDescriber ¶
type AuthenticatedConfig ¶
type AuthenticatedConfig interface { CredentialsGetter ServiceGetter }
AuthenticatedConfig an interface of the methods needed to set up a Store.
type CloudProviderAccessRoleLister ¶
type CloudProviderAccessRoleLister interface {
CloudProviderAccessRoles(string) (*atlasv2.CloudProviderAccessRoles, error)
}
type ClusterConfigurationOptionsDescriber ¶
type ClusterConfigurationOptionsDescriber interface {
AtlasClusterConfigurationOptions(string, string) (*admin.ClusterDescriptionProcessArgs, error)
}
type ClusterDescriber ¶
type ClusterDescriber interface {
AtlasCluster(string, string) (*admin.AdvancedClusterDescription, error)
}
type ClusterLister ¶
type ClusterLister interface {
ProjectClusters(string, *ListOptions) (interface{}, error)
}
type CompliancePolicyCopyProtectionDisabler ¶
type CompliancePolicyCopyProtectionDisabler interface { DisableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyCopyProtectionEnabler ¶
type CompliancePolicyCopyProtectionEnabler interface { EnableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyDescriber ¶
type CompliancePolicyDescriber interface {
DescribeCompliancePolicy(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
}
type CompliancePolicyEnabler ¶
type CompliancePolicyEnabler interface { EnableCompliancePolicy(projectID, authorizedEmail, authorizedFirstName, authorizedLastName string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyEncryptionAtRestDisabler ¶
type CompliancePolicyEncryptionAtRestDisabler interface { DisableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyEncryptionAtRestEnabler ¶
type CompliancePolicyEncryptionAtRestEnabler interface { EnableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyEncryptionAtRestUpdater ¶
type CompliancePolicyEncryptionAtRestUpdater interface {
UpdateEncryptionAtRest(projectID string, enable bool) (*atlasv2.DataProtectionSettings20231001, error)
}
type CompliancePolicyOnDemandPolicyCreator ¶
type CompliancePolicyOnDemandPolicyCreator interface { CreateOnDemandPolicy(projectID string, policy *atlasv2.BackupComplianceOnDemandPolicyItem) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyPointInTimeRestoresEnabler ¶
type CompliancePolicyPointInTimeRestoresEnabler interface { EnablePointInTimeRestore(projectID string, restoreWindowDays int) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyScheduledPolicyCreator ¶
type CompliancePolicyScheduledPolicyCreator interface { CreateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyScheduledPolicyDeleter ¶
type CompliancePolicyScheduledPolicyDeleter interface { DeleteScheduledPolicy(projectID, scheduledPolicyID string) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyScheduledPolicyUpdater ¶
type CompliancePolicyScheduledPolicyUpdater interface { UpdateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error) CompliancePolicyDescriber }
type CompliancePolicyUpdater ¶
type CompliancePolicyUpdater interface { CompliancePolicyDescriber UpdateCompliancePolicy(projectID string, opts *atlasv2.DataProtectionSettings20231001) (*atlasv2.DataProtectionSettings20231001, error) }
type ContainersListOptions ¶
type ContainersListOptions struct { ListOptions ProviderName string }
type CredentialsGetter ¶
type CredentialsGetter interface { PublicAPIKey() string PrivateAPIKey() string Token() (*atlasauth.Token, error) }
CredentialsGetter interface for how to get credentials when Store must be authenticated.
type DataFederationCreator ¶
type DataFederationCreator interface {
CreateDataFederation(string, *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
}
type DataFederationDeleter ¶
type DataFederationDescriber ¶
type DataFederationDescriber interface {
DataFederation(string, string) (*admin.DataLakeTenant, error)
}
type DataFederationLister ¶
type DataFederationLister interface {
DataFederationList(string) ([]admin.DataLakeTenant, error)
}
type DataFederationPrivateEndpointCreator ¶
type DataFederationPrivateEndpointCreator interface {
CreateDataFederationPrivateEndpoint(string, *admin.PrivateNetworkEndpointIdEntry) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
}
type DataFederationPrivateEndpointDescriber ¶
type DataFederationPrivateEndpointDescriber interface {
DataFederationPrivateEndpoint(string, string) (*admin.PrivateNetworkEndpointIdEntry, error)
}
type DataFederationPrivateEndpointLister ¶
type DataFederationPrivateEndpointLister interface {
DataFederationPrivateEndpoints(string) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
}
type DataFederationQueryLimitCreator ¶
type DataFederationQueryLimitCreator interface {
CreateDataFederationQueryLimit(string, string, string, *admin.DataFederationTenantQueryLimit) (*admin.DataFederationTenantQueryLimit, error)
}
type DataFederationQueryLimitLister ¶
type DataFederationQueryLimitLister interface {
DataFederationQueryLimits(string, string) ([]admin.DataFederationTenantQueryLimit, error)
}
type DataFederationStore ¶
type DataFederationStore interface { DataFederationLister DataFederationDescriber }
type DataFederationUpdater ¶
type DataFederationUpdater interface {
UpdateDataFederation(string, string, *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
}
type DatabaseRoleLister ¶
type DatabaseRoleLister interface {
DatabaseRoles(string) ([]atlasv2.UserCustomDBRole, error)
}
type DatabaseUserLister ¶
type DatabaseUserLister interface {
DatabaseUsers(groupID string, opts *ListOptions) (*atlasv2.PaginatedApiAtlasDatabaseUser, error)
}
type EncryptionAtRestDescriber ¶
type EncryptionAtRestDescriber interface {
EncryptionAtRest(string) (*atlasv2.EncryptionAtRest, error)
}
type EventLister ¶
type EventLister interface { OrganizationEventLister ProjectEventLister }
type GlobalClusterDescriber ¶
type GlobalClusterDescriber interface {
GlobalCluster(string, string) (*atlasv2.GeoSharding, error)
}
type IntegrationLister ¶
type IntegrationLister interface {
Integrations(string) (*atlasv2.PaginatedIntegration, error)
}
type ListOptions ¶
type MaintenanceWindowDescriber ¶
type MaintenanceWindowDescriber interface {
MaintenanceWindow(string) (*atlasv2.GroupMaintenanceWindow, error)
}
type MatcherFieldsLister ¶
type OperatorClusterStore ¶
type OperatorClusterStore interface { AllClustersLister ClusterDescriber ClusterConfigurationOptionsDescriber ScheduleDescriber ServerlessInstanceDescriber ServerlessPrivateEndpointsLister GlobalClusterDescriber }
type OperatorDBUsersStore ¶
type OperatorDBUsersStore interface { DatabaseUserLister }
type OperatorGenericStore ¶
type OperatorGenericStore interface { OperatorOrgStore OperatorProjectStore OperatorClusterStore OperatorDBUsersStore DataFederationStore }
type OperatorOrgStore ¶
type OperatorOrgStore interface { OrganizationAPIKeyCreator ProjectAPIKeyAssigner }
type OperatorProjectStore ¶
type OperatorProjectStore interface { OperatorTeamsStore ProjectDescriber ProjectCreator ProjectLister OrgProjectLister ProjectIPAccessListLister ProjectSettingsDescriber IntegrationLister MaintenanceWindowDescriber PrivateEndpointLister CloudProviderAccessRoleLister PeeringConnectionLister EncryptionAtRestDescriber AuditingDescriber AlertConfigurationLister DatabaseRoleLister ProjectAPIKeyCreator }
type OperatorTeamsStore ¶
type OperatorTeamsStore interface { TeamDescriber ProjectTeamLister TeamUserLister }
type Option ¶
Option is any configuration for Store. New will take a list of Option and process them sequentially. The store package provides a list of pointers and preset set of Option you can use but you can implement your own.
func AuthenticatedPreset ¶
func AuthenticatedPreset(c AuthenticatedConfig) Option
AuthenticatedPreset is the default Option when connecting to the public API with authentication.
func Options ¶
Options turns a list of Option instances into a single Option. This is a helper when combining multiple Option.
func UnauthenticatedPreset ¶
func UnauthenticatedPreset(c ServiceGetter) Option
UnauthenticatedPreset is the default Option when connecting to the public API without authentication.
func WithAuthentication ¶
func WithAuthentication(c CredentialsGetter) Option
WithAuthentication sets the store credentials.
func WithBaseURL ¶
WithBaseURL sets the base URL for the underling HTTP client. the url should not contain any path, to add the public API path use WithPublicPathBaseURL.
type OrgProjectLister ¶
type OrgProjectLister interface { GetOrgProjects(string, *ListOptions) (*atlasv2.PaginatedAtlasGroup, error) Projects(*ListOptions) (*atlasv2.PaginatedAtlasGroup, error) }
type OrganizationAPIKeyAccessListCreator ¶
type OrganizationAPIKeyAccessListCreator interface {
CreateOrganizationAPIKeyAccessList(*admin.CreateApiKeyAccessListApiParams) (*admin.PaginatedApiUserAccessList, error)
}
type OrganizationAPIKeyAccessListLister ¶
type OrganizationAPIKeyAccessListLister interface {
OrganizationAPIKeyAccessLists(*admin.ListApiKeyAccessListsEntriesApiParams) (*admin.PaginatedApiUserAccessList, error)
}
type OrganizationAPIKeyCreator ¶
type OrganizationAPIKeyCreator interface {
CreateOrganizationAPIKey(string, *atlasv2.CreateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
}
type OrganizationAPIKeyDescriber ¶
type OrganizationAPIKeyDescriber interface {
OrganizationAPIKey(string, string) (*atlasv2.ApiKeyUserDetails, error)
}
type OrganizationAPIKeyLister ¶
type OrganizationAPIKeyLister interface {
OrganizationAPIKeys(string, *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
}
type OrganizationAPIKeyUpdater ¶
type OrganizationAPIKeyUpdater interface {
UpdateOrganizationAPIKey(string, string, *atlasv2.UpdateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
}
type OrganizationCreator ¶
type OrganizationCreator interface {
CreateAtlasOrganization(*atlasv2.CreateOrganizationRequest) (*atlasv2.CreateOrganizationResponse, error)
}
type OrganizationDeleter ¶
type OrganizationDescriber ¶
type OrganizationDescriber interface {
Organization(string) (*atlasv2.AtlasOrganization, error)
}
type OrganizationEventLister ¶
type OrganizationEventLister interface {
OrganizationEvents(opts *admin.ListOrganizationEventsApiParams) (*admin.OrgPaginatedEvent, error)
}
type OrganizationInvitationDescriber ¶
type OrganizationInvitationDescriber interface {
OrganizationInvitation(string, string) (*atlasv2.OrganizationInvitation, error)
}
type OrganizationInvitationLister ¶
type OrganizationInvitationLister interface {
OrganizationInvitations(*atlasv2.ListOrganizationInvitationsApiParams) ([]atlasv2.OrganizationInvitation, error)
}
type OrganizationInvitationUpdater ¶
type OrganizationInvitationUpdater interface {
UpdateOrganizationInvitation(string, string, *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
}
type OrganizationInviter ¶
type OrganizationInviter interface {
InviteUser(string, *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
}
type OrganizationLister ¶
type OrganizationLister interface {
Organizations(*atlasv2.ListOrganizationsApiParams) (*atlasv2.PaginatedOrganization, error)
}
type PeeringConnectionLister ¶
type PeeringConnectionLister interface {
PeeringConnections(string, *ContainersListOptions) ([]atlasv2.BaseNetworkPeeringConnectionSettings, error)
}
type PerformanceAdvisorIndexesLister ¶
type PerformanceAdvisorIndexesLister interface {
PerformanceAdvisorIndexes(*atlasv2.ListSuggestedIndexesApiParams) (*atlasv2.PerformanceAdvisorResponse, error)
}
type PerformanceAdvisorNamespacesLister ¶
type PerformanceAdvisorNamespacesLister interface {
PerformanceAdvisorNamespaces(opts *atlasv2.ListSlowQueryNamespacesApiParams) (*atlasv2.Namespaces, error)
}
type PerformanceAdvisorSlowQueriesLister ¶
type PerformanceAdvisorSlowQueriesLister interface {
PerformanceAdvisorSlowQueries(*atlasv2.ListSlowQueriesApiParams) (*atlasv2.PerformanceAdvisorSlowQueryList, error)
}
type PipelineAvailableSchedulesLister ¶
type PipelineAvailableSchedulesLister interface {
PipelineAvailableSchedules(string, string) ([]atlasv2.DiskBackupApiPolicyItem, error)
}
type PipelineAvailableSnapshotsLister ¶
type PipelineAvailableSnapshotsLister interface {
PipelineAvailableSnapshots(string, string, *time.Time, *atlas.ListOptions) (*atlasv2.PaginatedBackupSnapshot, error)
}
type PipelineDatasetDeleter ¶
type PipelineRunsDescriber ¶
type PipelineRunsLister ¶
type PipelineRunsLister interface {
PipelineRuns(string, string) (*atlasv2.PaginatedPipelineRun, error)
}
type PipelinesCreator ¶
type PipelinesCreator interface {
CreatePipeline(string, atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
}
type PipelinesDeleter ¶
type PipelinesDescriber ¶
type PipelinesDescriber interface {
Pipeline(string, string) (*atlasv2.DataLakeIngestionPipeline, error)
}
type PipelinesLister ¶
type PipelinesLister interface {
Pipelines(string) ([]atlasv2.DataLakeIngestionPipeline, error)
}
type PipelinesPauser ¶
type PipelinesPauser interface {
PipelinePause(string, string) (*atlasv2.DataLakeIngestionPipeline, error)
}
type PipelinesResumer ¶
type PipelinesResumer interface {
PipelineResume(string, string) (*atlasv2.DataLakeIngestionPipeline, error)
}
type PipelinesTriggerer ¶
type PipelinesUpdater ¶
type PipelinesUpdater interface {
UpdatePipeline(string, string, atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
}
type PrivateEndpointLister ¶
type PrivateEndpointLister interface {
PrivateEndpoints(string, string) ([]atlasv2.EndpointService, error)
}
type ProjectAPIKeyAssigner ¶
type ProjectAPIKeyAssigner interface {
AssignProjectAPIKey(string, string, *atlasv2.UpdateAtlasProjectApiKey) error
}
type ProjectAPIKeyCreator ¶
type ProjectAPIKeyCreator interface {
CreateProjectAPIKey(string, *atlasv2.CreateAtlasProjectApiKey) (*atlasv2.ApiKeyUserDetails, error)
}
type ProjectAPIKeyDeleter ¶
type ProjectAPIKeyLister ¶
type ProjectAPIKeyLister interface {
ProjectAPIKeys(string, *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
}
type ProjectCreator ¶
type ProjectCreator interface {
CreateProject(*atlasv2.CreateProjectApiParams) (*atlasv2.Group, error)
}
type ProjectDeleter ¶
type ProjectDescriber ¶
type ProjectEventLister ¶
type ProjectEventLister interface {
ProjectEvents(opts *admin.ListProjectEventsApiParams) (*admin.GroupPaginatedEvent, error)
}
type ProjectIPAccessListLister ¶
type ProjectIPAccessListLister interface {
ProjectIPAccessLists(string, *ListOptions) (*atlasv2.PaginatedNetworkAccess, error)
}
type ProjectInvitationDescriber ¶
type ProjectInvitationDescriber interface {
ProjectInvitation(string, string) (*atlasv2.GroupInvitation, error)
}
type ProjectInvitationLister ¶
type ProjectInvitationLister interface {
ProjectInvitations(*atlasv2.ListProjectInvitationsApiParams) ([]atlasv2.GroupInvitation, error)
}
type ProjectInvitationUpdater ¶
type ProjectInvitationUpdater interface {
UpdateProjectInvitation(string, string, *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
}
type ProjectInviter ¶
type ProjectInviter interface {
InviteUserToProject(string, *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
}
type ProjectLister ¶
type ProjectLister interface {
Projects(*ListOptions) (*atlasv2.PaginatedAtlasGroup, error)
}
type ProjectSettingsDescriber ¶
type ProjectSettingsDescriber interface {
ProjectSettings(string) (*atlasv2.GroupSettings, error)
}
type ProjectTeamAdder ¶
type ProjectTeamDeleter ¶
type ProjectTeamLister ¶
type ProjectTeamLister interface {
ProjectTeams(string) (*atlasv2.PaginatedTeamRole, error)
}
type ProjectUserDeleter ¶
type ProjectUsersLister ¶
type ProjectUsersLister interface {
ProjectUsers(string, *ListOptions) (*atlasv2.PaginatedAppUser, error)
}
type ScheduleDescriber ¶
type ScheduleDescriber interface {
DescribeSchedule(string, string) (*atlasv2.DiskBackupSnapshotSchedule, error)
}
type ServerlessInstanceDescriber ¶
type ServerlessInstanceDescriber interface {
GetServerlessInstance(string, string) (*atlasv2.ServerlessInstanceDescription, error)
}
type ServerlessInstanceLister ¶
type ServerlessInstanceLister interface {
ServerlessInstances(string, *ListOptions) (*atlasv2.PaginatedServerlessInstanceDescription, error)
}
type ServerlessPrivateEndpointsLister ¶
type ServerlessPrivateEndpointsLister interface {
ServerlessPrivateEndpoints(string, string) ([]atlasv2.ServerlessTenantEndpoint, error)
}
type ServiceGetter ¶
type ServiceVersionDescriber ¶
type ServiceVersionDescriber interface {
ServiceVersion() (*opsmngr.ServiceVersion, error)
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new Store based on the given list of Option.
Usage:
// get a new Store for Atlas store := store.New(Service("cloud")) // get a new Store for the public API based on a Config interface store := store.New(AuthenticatedPreset(config)) // get a new Store for the private API based on a Config interface store := store.New(PrivateAuthenticatedPreset(config))
func (*Store) AcknowledgeAlert ¶
func (s *Store) AcknowledgeAlert(params *admin.AcknowledgeAlertApiParams) (*admin.AlertViewForNdsGroup, error)
AcknowledgeAlert encapsulate the logic to manage different cloud providers.
func (*Store) AddTeamsToProject ¶
func (s *Store) AddTeamsToProject(projectID string, teams []atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
AddTeamsToProject encapsulates the logic to manage different cloud providers.
func (*Store) AddUsersToTeam ¶
func (s *Store) AddUsersToTeam(orgID, teamID string, users []atlasv2.AddUserToTeam) (*atlasv2.PaginatedApiAppUser, error)
AddUsersToTeam encapsulates the logic to manage different cloud providers.
func (*Store) Alert ¶
func (s *Store) Alert(params *admin.GetAlertApiParams) (*admin.AlertViewForNdsGroup, error)
Alert encapsulate the logic to manage different cloud providers.
func (*Store) AlertConfiguration ¶
func (s *Store) AlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
func (*Store) AlertConfigurations ¶
func (s *Store) AlertConfigurations(params *admin.ListAlertConfigurationsApiParams) (*admin.PaginatedAlertConfig, error)
AlertConfigurations encapsulate the logic to manage different cloud providers.
func (*Store) Alerts ¶
func (s *Store) Alerts(params *admin.ListAlertsApiParams) (*admin.PaginatedAlert, error)
Alerts encapsulate the logic to manage different cloud providers.
func (*Store) AssignProjectAPIKey ¶
func (s *Store) AssignProjectAPIKey(projectID, apiKeyID string, input *atlasv2.UpdateAtlasProjectApiKey) error
AssignProjectAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) AtlasCluster ¶
func (s *Store) AtlasCluster(projectID, name string) (*admin.AdvancedClusterDescription, error)
AtlasCluster encapsulates the logic to manage different cloud providers.
func (*Store) AtlasClusterConfigurationOptions ¶
func (s *Store) AtlasClusterConfigurationOptions(projectID, name string) (*admin.ClusterDescriptionProcessArgs, error)
AtlasClusterConfigurationOptions encapsulates the logic to manage different cloud providers.
func (*Store) CloudProviderAccessRoles ¶
func (s *Store) CloudProviderAccessRoles(groupID string) (*atlasv2.CloudProviderAccessRoles, error)
CloudProviderAccessRoles encapsulates the logic to manage different cloud providers.
func (*Store) CreateAlertConfiguration ¶
func (s *Store) CreateAlertConfiguration(alertConfig *admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
CreateAlertConfiguration encapsulate the logic to manage different cloud providers.
func (*Store) CreateAtlasOrganization ¶
func (s *Store) CreateAtlasOrganization(o *atlasv2.CreateOrganizationRequest) (*atlasv2.CreateOrganizationResponse, error)
CreateAtlasOrganization encapsulate the logic to manage different cloud providers.
func (*Store) CreateDataFederation ¶
func (s *Store) CreateDataFederation(projectID string, opts *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
CreateDataFederation encapsulates the logic to manage different cloud providers.
func (*Store) CreateDataFederationPrivateEndpoint ¶
func (s *Store) CreateDataFederationPrivateEndpoint(projectID string, opts *admin.PrivateNetworkEndpointIdEntry) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
CreateDataFederationPrivateEndpoint encapsulates the logic to manage different cloud providers.
func (*Store) CreateDataFederationQueryLimit ¶
func (s *Store) CreateDataFederationQueryLimit(projectID, tenantName, limitName string, opts *admin.DataFederationTenantQueryLimit) (*admin.DataFederationTenantQueryLimit, error)
CreateDataFederationQueryLimit encapsulates the logic to manage different cloud providers.
func (*Store) CreateOnDemandPolicy ¶
func (s *Store) CreateOnDemandPolicy(projectID string, policy *atlasv2.BackupComplianceOnDemandPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) CreateOrganizationAPIKey ¶
func (s *Store) CreateOrganizationAPIKey(orgID string, input *atlasv2.CreateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
CreateOrganizationAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) CreateOrganizationAPIKeyAccessList ¶
func (s *Store) CreateOrganizationAPIKeyAccessList(params *admin.CreateApiKeyAccessListApiParams) (*admin.PaginatedApiUserAccessList, error)
CreateOrganizationAPIKeyAccessList encapsulates the logic to manage different cloud providers.
func (*Store) CreatePipeline ¶
func (s *Store) CreatePipeline(projectID string, opts atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
CreatePipeline encapsulates the logic to manage different cloud providers.
func (*Store) CreateProject ¶
CreateProject encapsulates the logic to manage different cloud providers.
func (*Store) CreateProjectAPIKey ¶
func (s *Store) CreateProjectAPIKey(projectID string, apiKeyInput *atlasv2.CreateAtlasProjectApiKey) (*atlasv2.ApiKeyUserDetails, error)
CreateProjectAPIKey creates an API Keys for a project.
func (*Store) CreateScheduledPolicy ¶
func (s *Store) CreateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) CreateTeam ¶
func (*Store) CreateUser ¶
func (s *Store) CreateUser(user *atlasv2.CloudAppUser) (*atlasv2.CloudAppUser, error)
CreateUser encapsulates the logic to manage different cloud providers.
func (*Store) DataFederation ¶
func (s *Store) DataFederation(projectID, id string) (*admin.DataLakeTenant, error)
DataFederation encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationList ¶
func (s *Store) DataFederationList(projectID string) ([]admin.DataLakeTenant, error)
DataFederationList encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationLogs ¶
func (s *Store) DataFederationLogs(projectID, id string, startDate, endDate int64) (io.ReadCloser, error)
DataFederationLogs encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationPrivateEndpoint ¶
func (s *Store) DataFederationPrivateEndpoint(projectID, id string) (*admin.PrivateNetworkEndpointIdEntry, error)
DataFederationPrivateEndpoint encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationPrivateEndpoints ¶
func (s *Store) DataFederationPrivateEndpoints(projectID string) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
DataFederationPrivateEndpoints encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationQueryLimit ¶
func (s *Store) DataFederationQueryLimit(projectID, tenantName, limitName string) (*admin.DataFederationTenantQueryLimit, error)
DataFederationQueryLimit encapsulates the logic to manage different cloud providers.
func (*Store) DataFederationQueryLimits ¶
func (s *Store) DataFederationQueryLimits(projectID, tenantName string) ([]admin.DataFederationTenantQueryLimit, error)
DataFederationQueryLimits encapsulates the logic to manage different cloud providers.
func (*Store) DatabaseRoles ¶
func (s *Store) DatabaseRoles(projectID string) ([]atlasv2.UserCustomDBRole, error)
DatabaseRoles encapsulate the logic to manage different cloud providers.
func (*Store) DatabaseUsers ¶
func (s *Store) DatabaseUsers(projectID string, opts *ListOptions) (*atlasv2.PaginatedApiAtlasDatabaseUser, error)
func (*Store) DeleteAlertConfiguration ¶
DeleteAlertConfiguration encapsulate the logic to manage different cloud providers.
func (*Store) DeleteDataFederation ¶
DeleteDataFederation encapsulates the logic to manage different cloud providers.
func (*Store) DeleteDataFederationPrivateEndpoint ¶
DeleteDataFederationPrivateEndpoint encapsulates the logic to manage different cloud providers.
func (*Store) DeleteDataFederationQueryLimit ¶
DeleteDataFederationQueryLimit encapsulates the logic to manage different cloud providers.
func (*Store) DeleteInvitation ¶
DeleteInvitation encapsulate the logic to manage different cloud providers.
func (*Store) DeleteOrganization ¶
DeleteOrganization encapsulate the logic to manage different cloud providers.
func (*Store) DeleteOrganizationAPIKey ¶
DeleteOrganizationAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) DeleteOrganizationAPIKeyAccessList ¶
DeleteOrganizationAPIKeyAccessList encapsulates the logic to manage different cloud providers.
func (*Store) DeletePipeline ¶
DeletePipeline encapsulates the logic to manage different cloud providers.
func (*Store) DeletePipelineDataset ¶
DeletePipelineDataset encapsulates the logic to manage different cloud providers.
func (*Store) DeleteProject ¶
DeleteProject encapsulates the logic to manage different cloud providers.
func (*Store) DeleteProjectAPIKey ¶
DeleteProjectAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) DeleteProjectInvitation ¶
DeleteProjectInvitation encapsulate the logic to manage different cloud providers.
func (*Store) DeleteScheduledPolicy ¶
func (s *Store) DeleteScheduledPolicy(projectID, scheduledPolicyID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) DeleteTeam ¶
DeleteTeam encapsulates the logic to manage different cloud providers.
func (*Store) DeleteTeamFromProject ¶
DeleteTeamFromProject encapsulates the logic to manage different cloud providers.
func (*Store) DeleteUserFromProject ¶
DeleteProject encapsulates the logic to manage different cloud providers.
func (*Store) DescribeCompliancePolicy ¶
func (s *Store) DescribeCompliancePolicy(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) DescribeSchedule ¶
func (s *Store) DescribeSchedule(projectID, clusterName string) (*atlasv2.DiskBackupSnapshotSchedule, error)
DescribeSchedule encapsulates the logic to manage different cloud providers.
func (*Store) DisableAlertConfiguration ¶
func (s *Store) DisableAlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
DisableAlertConfiguration encapsulate the logic to manage different cloud providers.
func (*Store) DisableCopyProtection ¶
func (s *Store) DisableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) DisableEncryptionAtRest ¶
func (s *Store) DisableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) DisablePerformanceAdvisorSlowOperationThreshold ¶
DisablePerformanceAdvisorSlowOperationThreshold encapsulates the logic to manage different cloud providers.
func (*Store) EnableAlertConfiguration ¶
func (s *Store) EnableAlertConfiguration(projectID, id string) (*admin.GroupAlertsConfig, error)
EnableAlertConfiguration encapsulate the logic to manage different cloud providers.
func (*Store) EnableCompliancePolicy ¶
func (s *Store) EnableCompliancePolicy(projectID, authorizedEmail, authorizedFirstName, authorizedLastName string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) EnableCopyProtection ¶
func (s *Store) EnableCopyProtection(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) EnableEncryptionAtRest ¶
func (s *Store) EnableEncryptionAtRest(projectID string) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) EnablePerformanceAdvisorSlowOperationThreshold ¶
EnablePerformanceAdvisorSlowOperationThreshold encapsulates the logic to manage different cloud providers.
func (*Store) EnablePointInTimeRestore ¶
func (*Store) EncryptionAtRest ¶
func (s *Store) EncryptionAtRest(projectID string) (*atlasv2.EncryptionAtRest, error)
func (*Store) GetOrgProjects ¶
func (s *Store) GetOrgProjects(orgID string, opts *ListOptions) (*atlasv2.PaginatedAtlasGroup, error)
GetOrgProjects encapsulates the logic to manage different cloud providers.
func (*Store) GetServerlessInstance ¶
func (s *Store) GetServerlessInstance(projectID, clusterName string) (*atlasv2.ServerlessInstanceDescription, error)
ServerlessInstance encapsulates the logic to manage different cloud providers.
func (*Store) GlobalCluster ¶
func (s *Store) GlobalCluster(projectID, instanceName string) (*atlasv2.GeoSharding, error)
func (*Store) Integrations ¶
func (s *Store) Integrations(projectID string) (*atlasv2.PaginatedIntegration, error)
Integrations encapsulates the logic to manage different cloud providers.
func (*Store) InviteUser ¶
func (s *Store) InviteUser(orgID string, invitation *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
InviteUser encapsulates the logic to manage different cloud providers.
func (*Store) InviteUserToProject ¶
func (s *Store) InviteUserToProject(groupID string, invitation *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
InviteUserToProject encapsulate the logic to manage different cloud providers.
func (*Store) MaintenanceWindow ¶
func (s *Store) MaintenanceWindow(projectID string) (*atlasv2.GroupMaintenanceWindow, error)
MaintenanceWindow encapsulates the logic to manage different cloud providers.
func (*Store) MatcherFields ¶
MatcherFields encapsulate the logic to manage different cloud providers.
func (*Store) Organization ¶
func (s *Store) Organization(id string) (*atlasv2.AtlasOrganization, error)
Organization encapsulate the logic to manage different cloud providers.
func (*Store) OrganizationAPIKey ¶
func (s *Store) OrganizationAPIKey(orgID, apiKeyID string) (*atlasv2.ApiKeyUserDetails, error)
OrganizationAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) OrganizationAPIKeyAccessLists ¶
func (s *Store) OrganizationAPIKeyAccessLists(params *admin.ListApiKeyAccessListsEntriesApiParams) (*admin.PaginatedApiUserAccessList, error)
OrganizationAPIKeyAccessLists encapsulates the logic to manage different cloud providers.
func (*Store) OrganizationAPIKeys ¶
func (s *Store) OrganizationAPIKeys(orgID string, opts *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
OrganizationAPIKeys encapsulates the logic to manage different cloud providers.
func (*Store) OrganizationEvents ¶
func (s *Store) OrganizationEvents(opts *admin.ListOrganizationEventsApiParams) (*admin.OrgPaginatedEvent, error)
OrganizationEvents encapsulate the logic to manage different cloud providers.
func (*Store) OrganizationInvitation ¶
func (s *Store) OrganizationInvitation(orgID, invitationID string) (*atlasv2.OrganizationInvitation, error)
OrganizationInvitation encapsulate the logic to manage different cloud providers.
func (*Store) OrganizationInvitations ¶
func (s *Store) OrganizationInvitations(params *atlasv2.ListOrganizationInvitationsApiParams) ([]atlasv2.OrganizationInvitation, error)
OrganizationInvitations encapsulate the logic to manage different cloud providers.
func (*Store) OrganizationUsers ¶
func (s *Store) OrganizationUsers(organizationID string, opts *atlas.ListOptions) (*atlasv2.PaginatedAppUser, error)
OrganizationUsers encapsulates the logic to manage different cloud providers.
func (*Store) Organizations ¶
func (s *Store) Organizations(params *atlasv2.ListOrganizationsApiParams) (*atlasv2.PaginatedOrganization, error)
Organizations encapsulate the logic to manage different cloud providers.
func (*Store) PeeringConnections ¶
func (s *Store) PeeringConnections(projectID string, opts *ContainersListOptions) ([]atlasv2.BaseNetworkPeeringConnectionSettings, error)
PeeringConnections encapsulates the logic to manage different cloud providers.
func (*Store) PerformanceAdvisorIndexes ¶
func (s *Store) PerformanceAdvisorIndexes(opts *atlasv2.ListSuggestedIndexesApiParams) (*atlasv2.PerformanceAdvisorResponse, error)
PerformanceAdvisorIndexes encapsulates the logic to manage different cloud providers.
func (*Store) PerformanceAdvisorNamespaces ¶
func (s *Store) PerformanceAdvisorNamespaces(opts *atlasv2.ListSlowQueryNamespacesApiParams) (*atlasv2.Namespaces, error)
PerformanceAdvisorNamespaces encapsulates the logic to manage different cloud providers.
func (*Store) PerformanceAdvisorSlowQueries ¶
func (s *Store) PerformanceAdvisorSlowQueries(opts *atlasv2.ListSlowQueriesApiParams) (*atlasv2.PerformanceAdvisorSlowQueryList, error)
PerformanceAdvisorSlowQueries encapsulates the logic to manage different cloud providers.
func (*Store) Pipeline ¶
func (s *Store) Pipeline(projectID, id string) (*atlasv2.DataLakeIngestionPipeline, error)
Pipeline encapsulates the logic to manage different cloud providers.
func (*Store) PipelineAvailableSchedules ¶
func (s *Store) PipelineAvailableSchedules(projectID, pipelineName string) ([]atlasv2.DiskBackupApiPolicyItem, error)
PipelineAvailableSchedules encapsulates the logic to manage different cloud providers.
func (*Store) PipelineAvailableSnapshots ¶
func (s *Store) PipelineAvailableSnapshots(projectID, pipelineName string, completedAfter *time.Time, listOps *atlas.ListOptions) (*atlasv2.PaginatedBackupSnapshot, error)
PipelineAvailableSnapshots encapsulates the logic to manage different cloud providers.
func (*Store) PipelinePause ¶
func (s *Store) PipelinePause(projectID, pipelineName string) (*atlasv2.DataLakeIngestionPipeline, error)
PipelinePause encapsulates the logic to manage different cloud providers.
func (*Store) PipelineResume ¶
func (s *Store) PipelineResume(projectID, pipelineName string) (*atlasv2.DataLakeIngestionPipeline, error)
PipelineResume encapsulates the logic to manage different cloud providers.
func (*Store) PipelineRun ¶
func (s *Store) PipelineRun(projectID, pipelineName, id string) (*atlasv2.IngestionPipelineRun, error)
PipelineRun encapsulates the logic to manage different cloud providers.
func (*Store) PipelineRuns ¶
func (s *Store) PipelineRuns(projectID, pipelineName string) (*atlasv2.PaginatedPipelineRun, error)
PipelineRuns encapsulates the logic to manage different cloud providers.
func (*Store) PipelineTrigger ¶
func (s *Store) PipelineTrigger(projectID, pipelineName, snapshotID string) (*atlasv2.IngestionPipelineRun, error)
PipelineTrigger encapsulates the logic to manage different cloud providers.
func (*Store) Pipelines ¶
func (s *Store) Pipelines(projectID string) ([]atlasv2.DataLakeIngestionPipeline, error)
Pipelines encapsulates the logic to manage different cloud providers.
func (*Store) PrivateEndpoints ¶
func (s *Store) PrivateEndpoints(projectID, provider string) ([]atlasv2.EndpointService, error)
PrivateEndpoints encapsulates the logic to manage different cloud providers.
func (*Store) ProjectAPIKeys ¶
func (s *Store) ProjectAPIKeys(projectID string, opts *atlas.ListOptions) (*atlasv2.PaginatedApiApiUser, error)
ProjectAPIKeys returns the API Keys for a specific project.
func (*Store) ProjectByName ¶
func (*Store) ProjectClusters ¶
func (s *Store) ProjectClusters(projectID string, opts *ListOptions) (interface{}, error)
ProjectClusters encapsulate the logic to manage different cloud providers.
func (*Store) ProjectEvents ¶
func (s *Store) ProjectEvents(opts *admin.ListProjectEventsApiParams) (*admin.GroupPaginatedEvent, error)
ProjectEvents encapsulate the logic to manage different cloud providers.
func (*Store) ProjectIPAccessLists ¶
func (s *Store) ProjectIPAccessLists(projectID string, opts *ListOptions) (*atlasv2.PaginatedNetworkAccess, error)
ProjectIPAccessLists encapsulate the logic to manage different cloud providers.
func (*Store) ProjectInvitation ¶
func (s *Store) ProjectInvitation(groupID, invitationID string) (*atlasv2.GroupInvitation, error)
ProjectInvitation encapsulate the logic to manage different cloud providers.
func (*Store) ProjectInvitations ¶
func (s *Store) ProjectInvitations(params *atlasv2.ListProjectInvitationsApiParams) ([]atlasv2.GroupInvitation, error)
ProjectInvitations encapsulate the logic to manage different cloud providers.
func (*Store) ProjectSettings ¶
func (s *Store) ProjectSettings(projectID string) (*atlasv2.GroupSettings, error)
ProjectSettings encapsulates the logic of getting settings of a particular project.
func (*Store) ProjectTeams ¶
func (s *Store) ProjectTeams(projectID string) (*atlasv2.PaginatedTeamRole, error)
ProjectTeams encapsulates the logic to manage different cloud providers.
func (*Store) ProjectUsers ¶
func (s *Store) ProjectUsers(projectID string, opts *ListOptions) (*atlasv2.PaginatedAppUser, error)
ProjectUsers lists all IAM users in a project.
func (*Store) Projects ¶
func (s *Store) Projects(opts *ListOptions) (*atlasv2.PaginatedAtlasGroup, error)
Projects encapsulates the logic to manage different cloud providers.
func (*Store) RemoveUserFromTeam ¶
RemoveUserFromTeam encapsulates the logic to manage different cloud providers.
func (*Store) RenameTeam ¶
func (s *Store) RenameTeam(orgID, teamID string, team *atlasv2.TeamUpdate) (*atlasv2.TeamResponse, error)
func (*Store) ServerlessInstances ¶
func (s *Store) ServerlessInstances(projectID string, listOps *ListOptions) (*atlasv2.PaginatedServerlessInstanceDescription, error)
ServerlessInstances encapsulates the logic to manage different cloud providers.
func (*Store) ServerlessPrivateEndpoints ¶
func (s *Store) ServerlessPrivateEndpoints(projectID, instanceName string) ([]atlasv2.ServerlessTenantEndpoint, error)
func (*Store) ServiceVersion ¶
func (s *Store) ServiceVersion() (*atlas.ServiceVersion, error)
ServiceVersion encapsulates the logic to manage different cloud providers.
func (*Store) TeamByID ¶
func (s *Store) TeamByID(orgID, teamID string) (*atlasv2.TeamResponse, error)
TeamByID encapsulates the logic to manage different cloud providers.
func (*Store) TeamByName ¶
func (s *Store) TeamByName(orgID, teamName string) (*atlasv2.TeamResponse, error)
TeamByName encapsulates the logic to manage different cloud providers.
func (*Store) TeamUsers ¶
func (s *Store) TeamUsers(orgID, teamID string) (*atlasv2.PaginatedApiAppUser, error)
TeamUsers encapsulates the logic to manage different cloud providers.
func (*Store) Teams ¶
func (s *Store) Teams(orgID string, opts *atlas.ListOptions) (*atlasv2.PaginatedTeam, error)
Teams encapsulates the logic to manage different cloud providers.
func (*Store) UpdateAlertConfiguration ¶
func (s *Store) UpdateAlertConfiguration(alertConfig *admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
func (*Store) UpdateCompliancePolicy ¶
func (s *Store) UpdateCompliancePolicy(projectID string, opts *atlasv2.DataProtectionSettings20231001) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) UpdateDataFederation ¶
func (s *Store) UpdateDataFederation(projectID, id string, opts *admin.DataLakeTenant) (*admin.DataLakeTenant, error)
UpdateDataFederation encapsulates the logic to manage different cloud providers.
func (*Store) UpdateOrganizationAPIKey ¶
func (s *Store) UpdateOrganizationAPIKey(orgID, apiKeyID string, input *atlasv2.UpdateAtlasOrganizationApiKey) (*atlasv2.ApiKeyUserDetails, error)
UpdateOrganizationAPIKey encapsulates the logic to manage different cloud providers.
func (*Store) UpdateOrganizationInvitation ¶
func (s *Store) UpdateOrganizationInvitation(orgID, invitationID string, invitation *atlasv2.OrganizationInvitationRequest) (*atlasv2.OrganizationInvitation, error)
UpdateOrganizationInvitation encapsulates the logic to manage different cloud providers.
func (*Store) UpdatePipeline ¶
func (s *Store) UpdatePipeline(projectID, id string, opts atlasv2.DataLakeIngestionPipeline) (*atlasv2.DataLakeIngestionPipeline, error)
UpdatePipeline encapsulates the logic to manage different cloud providers.
func (*Store) UpdateProjectInvitation ¶
func (s *Store) UpdateProjectInvitation(groupID, invitationID string, invitation *atlasv2.GroupInvitationRequest) (*atlasv2.GroupInvitation, error)
UpdateProjectInvitation encapsulate the logic to manage different cloud providers.
func (*Store) UpdateProjectTeamRoles ¶
func (s *Store) UpdateProjectTeamRoles(projectID, teamID string, team *atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
UpdateProjectTeamRoles encapsulates the logic to manage different cloud providers.
func (*Store) UpdateScheduledPolicy ¶
func (s *Store) UpdateScheduledPolicy(projectID string, policy *atlasv2.BackupComplianceScheduledPolicyItem) (*atlasv2.DataProtectionSettings20231001, error)
func (*Store) UserByID ¶
func (s *Store) UserByID(userID string) (*atlasv2.CloudAppUser, error)
UserByID encapsulates the logic to manage different cloud providers.
func (*Store) UserByName ¶
func (s *Store) UserByName(username string) (*atlasv2.CloudAppUser, error)
UserByName encapsulates the logic to manage different cloud providers.
type TeamAdder ¶
type TeamAdder interface {
AddUsersToTeam(string, string, []atlasv2.AddUserToTeam) (*atlasv2.PaginatedApiAppUser, error)
}
type TeamCreator ¶
type TeamDeleter ¶
type TeamDescriber ¶
type TeamDescriber interface { TeamByID(string, string) (*atlasv2.TeamResponse, error) TeamByName(string, string) (*atlasv2.TeamResponse, error) }
type TeamLister ¶
type TeamLister interface {
Teams(string, *atlas.ListOptions) (*atlasv2.PaginatedTeam, error)
}
type TeamRenamer ¶
type TeamRenamer interface {
RenameTeam(string, string, *atlasv2.TeamUpdate) (*atlasv2.TeamResponse, error)
}
type TeamRolesUpdater ¶
type TeamUserLister ¶
type TeamUserLister interface {
TeamUsers(string, string) (*atlasv2.PaginatedApiAppUser, error)
}
type TeamUserRemover ¶
type UserCreator ¶
type UserCreator interface {
CreateUser(user *atlasv2.CloudAppUser) (*atlasv2.CloudAppUser, error)
}
type UserDescriber ¶
type UserDescriber interface { UserByID(string) (*atlasv2.CloudAppUser, error) UserByName(string) (*atlasv2.CloudAppUser, error) }
type UserLister ¶
type UserLister interface {
OrganizationUsers(string, *atlas.ListOptions) (*atlasv2.PaginatedAppUser, error)
}
Source Files ¶
- access_role.go
- alert_configuration.go
- alerts.go
- api_keys.go
- api_keys_access_list.go
- auditing.go
- backup.go
- cloud_provider_backup.go
- clusters.go
- data_federation.go
- data_federation_private_endpoint.go
- data_federation_query_limits.go
- data_lake_pipelines.go
- data_lake_pipelines_datasets.go
- data_lake_pipelines_runs.go
- database_roles.go
- database_users.go
- encryption_at_rest.go
- events.go
- global_cluster.go
- integrations.go
- maintenance.go
- operator.go
- organization_invitations.go
- organizations.go
- peering_connections.go
- performance_advisor.go
- private_endpoints.go
- project_invitations.go
- project_ip_access_lists.go
- project_settings.go
- projects.go
- serverless_instances.go
- serverless_private_endpoints.go
- service_version.go
- store.go
- teams.go
- users.go