atlas

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringOrEmpty

func StringOrEmpty(s *string) string

Types

type AlertAcknowledger

type AlertAcknowledger interface {
	AcknowledgeAlert(*admin.AcknowledgeAlertApiParams) (*admin.AlertViewForNdsGroup, error)
}

type AlertConfigurationCreator

type AlertConfigurationCreator interface {
	CreateAlertConfiguration(*admin.GroupAlertsConfig) (*admin.GroupAlertsConfig, error)
}

type AlertConfigurationDeleter

type AlertConfigurationDeleter interface {
	DeleteAlertConfiguration(string, string) 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 AuditingDescriber interface {
	Auditing(string) (*atlasv2.AuditLog, error)
}

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 DataFederationDeleter interface {
	DeleteDataFederation(string, string) error
}

type DataFederationDescriber

type DataFederationDescriber interface {
	DataFederation(string, string) (*admin.DataLakeTenant, error)
}

type DataFederationLister

type DataFederationLister interface {
	DataFederationList(string) ([]admin.DataLakeTenant, error)
}

type DataFederationLogDownloader

type DataFederationLogDownloader interface {
	DataFederationLogs(string, string, int64, int64) (io.ReadCloser, error)
}

type DataFederationPrivateEndpointCreator

type DataFederationPrivateEndpointCreator interface {
	CreateDataFederationPrivateEndpoint(string, *admin.PrivateNetworkEndpointIdEntry) (*admin.PaginatedPrivateNetworkEndpointIdEntry, error)
}

type DataFederationPrivateEndpointDeleter

type DataFederationPrivateEndpointDeleter interface {
	DeleteDataFederationPrivateEndpoint(string, string) 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 DataFederationQueryLimitDeleter

type DataFederationQueryLimitDeleter interface {
	DeleteDataFederationQueryLimit(string, string, string) error
}

type DataFederationQueryLimitDescriber

type DataFederationQueryLimitDescriber interface {
	DataFederationQueryLimit(string, string, string) (*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 ListOptions struct {
	PageNum      int
	ItemsPerPage int
}

type MaintenanceWindowDescriber

type MaintenanceWindowDescriber interface {
	MaintenanceWindow(string) (*atlasv2.GroupMaintenanceWindow, error)
}

type MatcherFieldsLister

type MatcherFieldsLister interface {
	MatcherFields() ([]string, error)
}

type OperatorDBUsersStore

type OperatorDBUsersStore interface {
	DatabaseUserLister
}

type OperatorOrgStore

type OperatorOrgStore interface {
	OrganizationAPIKeyCreator
	ProjectAPIKeyAssigner
}

type OperatorTeamsStore

type OperatorTeamsStore interface {
	TeamDescriber
	ProjectTeamLister
	TeamUserLister
}

type Option

type Option func(s *Store) error

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

func Options(opts ...Option) Option

Options turns a list of Option instances into a single Option. This is a helper when combining multiple Option.

func Service

func Service(service string) Option

func Telemetry

func Telemetry() 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

func WithBaseURL(configURL string) Option

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.

func WithContext

func WithContext(ctx context.Context) Option

WithContext sets the store context.

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 OrganizationAPIKeyAccessListDeleter

type OrganizationAPIKeyAccessListDeleter interface {
	DeleteOrganizationAPIKeyAccessList(string, string, string) 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 OrganizationAPIKeyDeleter

type OrganizationAPIKeyDeleter interface {
	DeleteOrganizationAPIKey(string, string) 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 OrganizationDeleter interface {
	DeleteOrganization(string) error
}

type OrganizationDescriber

type OrganizationDescriber interface {
	Organization(string) (*atlasv2.AtlasOrganization, error)
}

type OrganizationEventLister

type OrganizationEventLister interface {
	OrganizationEvents(opts *admin.ListOrganizationEventsApiParams) (*admin.OrgPaginatedEvent, error)
}

type OrganizationInvitationDeleter

type OrganizationInvitationDeleter interface {
	DeleteInvitation(string, string) 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 PerformanceAdvisorSlowOperationThresholdDisabler

type PerformanceAdvisorSlowOperationThresholdDisabler interface {
	DisablePerformanceAdvisorSlowOperationThreshold(string) error
}

type PerformanceAdvisorSlowOperationThresholdEnabler

type PerformanceAdvisorSlowOperationThresholdEnabler interface {
	EnablePerformanceAdvisorSlowOperationThreshold(string) 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 PipelineDatasetDeleter interface {
	DeletePipelineDataset(string, string, string) error
}

type PipelineRunsDescriber

type PipelineRunsDescriber interface {
	PipelineRun(string, string, string) (*atlasv2.IngestionPipelineRun, error)
}

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 PipelinesDeleter interface {
	DeletePipeline(string, string) error
}

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 PipelinesTriggerer interface {
	PipelineTrigger(string, string, string) (*atlasv2.IngestionPipelineRun, error)
}

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 ProjectAPIKeyDeleter interface {
	DeleteProjectAPIKey(string, string) error
}

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 ProjectDeleter interface {
	DeleteProject(string) error
}

type ProjectDescriber

type ProjectDescriber interface {
	Project(string) (interface{}, error)
	ProjectByName(string) (interface{}, error)
}

type ProjectEventLister

type ProjectEventLister interface {
	ProjectEvents(opts *admin.ListProjectEventsApiParams) (*admin.GroupPaginatedEvent, error)
}

type ProjectIPAccessListLister

type ProjectIPAccessListLister interface {
	ProjectIPAccessLists(string, *ListOptions) (*atlasv2.PaginatedNetworkAccess, error)
}

type ProjectInvitationDeleter

type ProjectInvitationDeleter interface {
	DeleteProjectInvitation(string, string) 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 ProjectTeamAdder interface {
	AddTeamsToProject(string, []atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
}

type ProjectTeamDeleter

type ProjectTeamDeleter interface {
	DeleteTeamFromProject(string, string) error
}

type ProjectTeamLister

type ProjectTeamLister interface {
	ProjectTeams(string) (*atlasv2.PaginatedTeamRole, error)
}

type ProjectUserDeleter

type ProjectUserDeleter interface {
	DeleteUserFromProject(string, string) error
}

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 ServiceGetter interface {
	Service() string
	// Name of the config value for custom service URL. Named opsmanager for legacy reasons.
	OpsManagerURL() string
}

type ServiceVersionDescriber

type ServiceVersionDescriber interface {
	ServiceVersion() (*opsmngr.ServiceVersion, error)
}

type Store

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

func New

func New(opts ...Option) (*Store, error)

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

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) Auditing

func (s *Store) Auditing(projectID string) (*atlasv2.AuditLog, error)

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

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

func (s *Store) CreateProject(params *atlasv2.CreateProjectApiParams) (*atlasv2.Group, error)

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 (s *Store) CreateTeam(orgID string, team *atlasv2.Team) (*atlasv2.Team, error)

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

func (s *Store) DeleteAlertConfiguration(projectID, id string) error

DeleteAlertConfiguration encapsulate the logic to manage different cloud providers.

func (*Store) DeleteDataFederation

func (s *Store) DeleteDataFederation(projectID, id string) error

DeleteDataFederation encapsulates the logic to manage different cloud providers.

func (*Store) DeleteDataFederationPrivateEndpoint

func (s *Store) DeleteDataFederationPrivateEndpoint(projectID, id string) error

DeleteDataFederationPrivateEndpoint encapsulates the logic to manage different cloud providers.

func (*Store) DeleteDataFederationQueryLimit

func (s *Store) DeleteDataFederationQueryLimit(projectID, tenantName, limitName string) error

DeleteDataFederationQueryLimit encapsulates the logic to manage different cloud providers.

func (*Store) DeleteInvitation

func (s *Store) DeleteInvitation(orgID, invitationID string) error

DeleteInvitation encapsulate the logic to manage different cloud providers.

func (*Store) DeleteOrganization

func (s *Store) DeleteOrganization(id string) error

DeleteOrganization encapsulate the logic to manage different cloud providers.

func (*Store) DeleteOrganizationAPIKey

func (s *Store) DeleteOrganizationAPIKey(orgID, id string) error

DeleteOrganizationAPIKey encapsulates the logic to manage different cloud providers.

func (*Store) DeleteOrganizationAPIKeyAccessList

func (s *Store) DeleteOrganizationAPIKeyAccessList(orgID, apiKeyID, ipAddress string) error

DeleteOrganizationAPIKeyAccessList encapsulates the logic to manage different cloud providers.

func (*Store) DeletePipeline

func (s *Store) DeletePipeline(projectID, id string) error

DeletePipeline encapsulates the logic to manage different cloud providers.

func (*Store) DeletePipelineDataset

func (s *Store) DeletePipelineDataset(projectID, pipelineName, id string) error

DeletePipelineDataset encapsulates the logic to manage different cloud providers.

func (*Store) DeleteProject

func (s *Store) DeleteProject(projectID string) error

DeleteProject encapsulates the logic to manage different cloud providers.

func (*Store) DeleteProjectAPIKey

func (s *Store) DeleteProjectAPIKey(projectID, id string) error

DeleteProjectAPIKey encapsulates the logic to manage different cloud providers.

func (*Store) DeleteProjectInvitation

func (s *Store) DeleteProjectInvitation(groupID, invitationID string) error

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

func (s *Store) DeleteTeam(orgID, teamID string) error

DeleteTeam encapsulates the logic to manage different cloud providers.

func (*Store) DeleteTeamFromProject

func (s *Store) DeleteTeamFromProject(projectID, teamID string) error

DeleteTeamFromProject encapsulates the logic to manage different cloud providers.

func (*Store) DeleteUserFromProject

func (s *Store) DeleteUserFromProject(projectID, userID string) error

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

func (s *Store) DisablePerformanceAdvisorSlowOperationThreshold(projectID string) error

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

func (s *Store) EnablePerformanceAdvisorSlowOperationThreshold(projectID string) error

EnablePerformanceAdvisorSlowOperationThreshold encapsulates the logic to manage different cloud providers.

func (*Store) EnablePointInTimeRestore

func (s *Store) EnablePointInTimeRestore(projectID string, restoreWindowDays int) (*atlasv2.DataProtectionSettings20231001, error)

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

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

func (s *Store) MatcherFields() ([]string, error)

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

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) Project

func (s *Store) Project(id string) (interface{}, error)

Project 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 (s *Store) ProjectByName(name string) (interface{}, error)

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

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

func (s *Store) RemoveUserFromTeam(orgID, teamID, userID string) error

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 TeamCreator interface {
	CreateTeam(string, *atlasv2.Team) (*atlasv2.Team, error)
}

type TeamDeleter

type TeamDeleter interface {
	DeleteTeam(string, string) error
}

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 TeamRolesUpdater interface {
	UpdateProjectTeamRoles(string, string, *atlasv2.TeamRole) (*atlasv2.PaginatedTeamRole, error)
}

type TeamUserLister

type TeamUserLister interface {
	TeamUsers(string, string) (*atlasv2.PaginatedApiAppUser, error)
}

type TeamUserRemover

type TeamUserRemover interface {
	RemoveUserFromTeam(string, string, string) error
}

type Transport

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

func (*Transport) RoundTrip

func (tr *Transport) RoundTrip(req *http.Request) (*http.Response, error)

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)
}

Jump to

Keyboard shortcuts

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