Documentation ¶
Index ¶
- Constants
- func TransformRegionToID(region string) string
- type AlertConfiguration
- func NewFailedParseAlertConfigStatus(errorMessage string, jsonSpec string) AlertConfiguration
- func NewIncorrectAlertConfigStatus(errorMessage string, alertConfig *mongodbatlas.AlertConfiguration) AlertConfiguration
- func ParseAlertConfiguration(alertConfiguration mongodbatlas.AlertConfiguration) AlertConfiguration
- type AtlasBackupPolicyStatusOption
- type AtlasBackupScheduleStatusOption
- type AtlasDatabaseUserStatus
- type AtlasDatabaseUserStatusOption
- type AtlasDeploymentStatus
- type AtlasDeploymentStatusOption
- func AtlasDeploymentConnectionStringsOption(connectionStrings *mongodbatlas.ConnectionStrings) AtlasDeploymentStatusOption
- func AtlasDeploymentCustomZoneMappingOption(czm *CustomZoneMapping) AtlasDeploymentStatusOption
- func AtlasDeploymentManagedNamespacesOption(namespaces []ManagedNamespace) AtlasDeploymentStatusOption
- func AtlasDeploymentMongoDBVersionOption(mongoDBVersion string) AtlasDeploymentStatusOption
- func AtlasDeploymentMongoURIUpdatedOption(mongoURIUpdated string) AtlasDeploymentStatusOption
- func AtlasDeploymentReplicaSet(replicas []ReplicaSet) AtlasDeploymentStatusOption
- func AtlasDeploymentSPEOption(pe []ServerlessPrivateEndpoint) AtlasDeploymentStatusOption
- func AtlasDeploymentStateNameOption(stateName string) AtlasDeploymentStatusOption
- type AtlasNetworkPeer
- type AtlasProjectStatus
- type AtlasProjectStatusOption
- func AtlasProjectAddPrivateEnpointsOption(privateEndpoints []ProjectPrivateEndpoint) AtlasProjectStatusOption
- func AtlasProjectAuthModesOption(authModes []authmode.AuthMode) AtlasProjectStatusOption
- func AtlasProjectCloudAccessRolesOption(cloudAccessRoles []CloudProviderAccessRole) AtlasProjectStatusOption
- func AtlasProjectExpiredIPAccessOption(lists []project.IPAccessList) AtlasProjectStatusOption
- func AtlasProjectIDOption(id string) AtlasProjectStatusOption
- func AtlasProjectPrometheusOption(prometheus *Prometheus) AtlasProjectStatusOption
- func AtlasProjectSetAlertConfigOption(alertConfigs *[]AlertConfiguration) AtlasProjectStatusOption
- func AtlasProjectSetCustomRolesOption(customRoles *[]CustomRole) AtlasProjectStatusOption
- func AtlasProjectSetNetworkPeerOption(networkPeers *[]AtlasNetworkPeer) AtlasProjectStatusOption
- func AtlasProjectSetPrivateEnpointsOption(privateEndpoints []ProjectPrivateEndpoint) AtlasProjectStatusOption
- func AtlasProjectSetTeamsOption(teams *[]ProjectTeamStatus) AtlasProjectStatusOption
- type AtlasTeamStatusOption
- type BackupPolicyStatus
- type BackupScheduleStatus
- type CloudProviderAccessRole
- func (in *CloudProviderAccessRole) DeepCopy() *CloudProviderAccessRole
- func (in *CloudProviderAccessRole) DeepCopyInto(out *CloudProviderAccessRole)
- func (c *CloudProviderAccessRole) Failed(errorMessage string)
- func (c *CloudProviderAccessRole) FailedToAuthorise(errorMessage string)
- func (c *CloudProviderAccessRole) IsEmptyARN() bool
- func (c *CloudProviderAccessRole) Update(role mongodbatlas.AWSIAMRole, isEmptyArn bool)
- type Common
- type Condition
- type ConditionType
- type ConnectionStrings
- type CurrentValue
- type CustomRole
- type CustomRoleStatus
- type CustomZoneMapping
- type Endpoint
- type FeatureUsage
- type GCPEndpoint
- type ManagedNamespace
- type Matcher
- type MetricThreshold
- type Notification
- type Option
- type PrivateEndpoint
- type ProjectPrivateEndpoint
- type ProjectTeamStatus
- type Prometheus
- type Reader
- type ReplicaSet
- type ServerlessPrivateEndpoint
- func FailedDuplicationSPE(name, cloudProviderEndpointID, privateEndpointIPAddress string) ServerlessPrivateEndpoint
- func FailedToConnectSPE(pe mongodbatlas.ServerlessPrivateEndpointConnection, message string) ServerlessPrivateEndpoint
- func FailedToCreateSPE(comment, message string) ServerlessPrivateEndpoint
- func SPEFromAtlas(in mongodbatlas.ServerlessPrivateEndpointConnection) ServerlessPrivateEndpoint
- type Status
- type TeamProject
- type TeamStatus
- type Threshold
- type Writer
Constants ¶
const ( StateIDLE = "IDLE" StateCREATING = "CREATING" StateUPDATING = "UPDATING" StateDELETING = "DELETING" StateDELETED = "DELETED" StateREPAIRING = "REPAIRING" )
const ( StatusFailed = "FAILED" StatusCreated = "CREATED" StatusReady = "READY" StatusEmptyARN = "EMPTY_ARN" )
Variables ¶
This section is empty.
Functions ¶
func TransformRegionToID ¶ added in v1.2.0
TransformRegionToID makes the same ID from region and regionName fields for PE Connections to match them it leaves only characters which are letters or numbers starting from 2 it also makes a couple swaps and sorts the resulting string this function is a temporary work around caused by the empty "region" field in Atlas reply
Types ¶
type AlertConfiguration ¶ added in v1.4.0
type AlertConfiguration struct { // Unique identifier. ID string `json:"id,omitempty"` // ErrorMessage is massage if the alert configuration is in an incorrect state. ErrorMessage string `json:"errorMessage,omitempty"` // Unique identifier of the project that owns this alert configuration. GroupID string `json:"groupId,omitempty"` // ID of the alert configuration that triggered this alert. AlertConfigID string `json:"alertConfigId,omitempty"` // The type of event that will trigger an alert. EventTypeName string `json:"eventTypeName,omitempty"` // Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created. Created string `json:"created,omitempty"` // The current state of the alert. Possible values are: TRACKING, OPEN, CLOSED, CANCELED Status string `json:"status,omitempty"` // The date through which the alert has been acknowledged. Will not be present if the alert has never been acknowledged. AcknowledgedUntil string `json:"acknowledgedUntil,omitempty"` // The comment left by the user who acknowledged the alert. Will not be present if the alert has never been acknowledged. AcknowledgementComment string `json:"acknowledgementComment,omitempty"` // The username of the user who acknowledged the alert. Will not be present if the alert has never been acknowledged. AcknowledgingUsername string `json:"acknowledgingUsername,omitempty"` // Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated. Updated string `json:"updated,omitempty"` // When the alert was closed. Only present if the status is CLOSED. Resolved string `json:"resolved,omitempty"` // When the last notification was sent for this alert. Only present if notifications have been sent. LastNotified string `json:"lastNotified,omitempty"` // The hostname and port of each host to which the alert applies. Only present for alerts of type HOST, HOST_METRIC, and REPLICA_SET. HostnameAndPort string `json:"hostnameAndPort,omitempty"` // ID of the host to which the metric pertains. Only present for alerts of type HOST, HOST_METRIC, and REPLICA_SET. HostID string `json:"hostId,omitempty"` // Name of the replica set. Only present for alerts of type HOST, HOST_METRIC, BACKUP, and REPLICA_SET. ReplicaSetName string `json:"replicaSetName,omitempty"` // The name of the measurement whose value went outside the threshold. Only present if eventTypeName is set to OUTSIDE_METRIC_THRESHOLD. MetricName string `json:"metricName,omitempty"` // If omitted, the configuration is disabled. Enabled *bool `json:"enabled,omitempty"` // The ID of the cluster to which this alert applies. Only present for alerts of type BACKUP, REPLICA_SET, and CLUSTER. ClusterID string `json:"clusterId,omitempty"` // The name the cluster to which this alert applies. Only present for alerts of type BACKUP, REPLICA_SET, and CLUSTER. ClusterName string `json:"clusterName,omitempty"` // For alerts of the type BACKUP, the type of server being backed up. SourceTypeName string `json:"sourceTypeName,omitempty"` // CurrentValue represents current value of the metric that triggered the alert. Only present for alerts of type HOST_METRIC. CurrentValue *CurrentValue `json:"currentValue,omitempty"` // You can filter using the matchers array only when the EventTypeName specifies an event for a host, replica set, or sharded cluster. Matchers []Matcher `json:"matchers,omitempty"` // MetricThreshold causes an alert to be triggered. MetricThreshold *MetricThreshold `json:"metricThreshold,omitempty"` // Threshold causes an alert to be triggered. Threshold *Threshold `json:"threshold,omitempty"` // Notifications are sending when an alert condition is detected. Notifications []Notification `json:"notifications,omitempty"` }
func NewFailedParseAlertConfigStatus ¶ added in v1.4.0
func NewFailedParseAlertConfigStatus(errorMessage string, jsonSpec string) AlertConfiguration
func NewIncorrectAlertConfigStatus ¶ added in v1.4.0
func NewIncorrectAlertConfigStatus(errorMessage string, alertConfig *mongodbatlas.AlertConfiguration) AlertConfiguration
func ParseAlertConfiguration ¶ added in v1.4.0
func ParseAlertConfiguration(alertConfiguration mongodbatlas.AlertConfiguration) AlertConfiguration
func (*AlertConfiguration) DeepCopy ¶ added in v1.4.0
func (in *AlertConfiguration) DeepCopy() *AlertConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConfiguration.
func (*AlertConfiguration) DeepCopyInto ¶ added in v1.4.0
func (in *AlertConfiguration) DeepCopyInto(out *AlertConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AtlasBackupPolicyStatusOption ¶ added in v1.6.0
type AtlasBackupPolicyStatusOption func(s *BackupPolicyStatus)
AtlasBackupPolicyStatusOption is the option that is applied to AtlasBackupPolicy Status
func AtlasBackupPolicySetScheduleID ¶ added in v1.6.0
func AtlasBackupPolicySetScheduleID(ID string) AtlasBackupPolicyStatusOption
func AtlasBackupPolicyUnsetScheduleID ¶ added in v1.6.0
func AtlasBackupPolicyUnsetScheduleID(ID string) AtlasBackupPolicyStatusOption
type AtlasBackupScheduleStatusOption ¶ added in v1.6.0
type AtlasBackupScheduleStatusOption func(s *BackupScheduleStatus)
AtlasBackupScheduleStatusOption is the option that is applied to AtlasBackupSchedule Status
func AtlasBackupScheduleSetDeploymentID ¶ added in v1.6.0
func AtlasBackupScheduleSetDeploymentID(ID string) AtlasBackupScheduleStatusOption
func AtlasBackupScheduleUnsetDeploymentID ¶ added in v1.6.0
func AtlasBackupScheduleUnsetDeploymentID(ID string) AtlasBackupScheduleStatusOption
type AtlasDatabaseUserStatus ¶
type AtlasDatabaseUserStatus struct { Common `json:",inline"` // PasswordVersion is the 'ResourceVersion' of the password Secret that the Atlas Operator is aware of PasswordVersion string `json:"passwordVersion,omitempty"` // UserName is the current name of database user. UserName string `json:"name,omitempty"` }
AtlasDatabaseUserStatus defines the observed state of AtlasProject
func (*AtlasDatabaseUserStatus) DeepCopy ¶
func (in *AtlasDatabaseUserStatus) DeepCopy() *AtlasDatabaseUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtlasDatabaseUserStatus.
func (*AtlasDatabaseUserStatus) DeepCopyInto ¶
func (in *AtlasDatabaseUserStatus) DeepCopyInto(out *AtlasDatabaseUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AtlasDatabaseUserStatusOption ¶
type AtlasDatabaseUserStatusOption func(s *AtlasDatabaseUserStatus)
AtlasDatabaseUserStatusOption is the option that is applied to Atlas Project Status
func AtlasDatabaseUserNameOption ¶ added in v0.5.0
func AtlasDatabaseUserNameOption(name string) AtlasDatabaseUserStatusOption
func AtlasDatabaseUserPasswordVersion ¶ added in v0.5.0
func AtlasDatabaseUserPasswordVersion(passwordVersion string) AtlasDatabaseUserStatusOption
type AtlasDeploymentStatus ¶ added in v1.0.0
type AtlasDeploymentStatus struct { Common `json:",inline"` // StateName is the current state of the cluster. // The possible states are: IDLE, CREATING, UPDATING, DELETING, DELETED, REPAIRING StateName string `json:"stateName,omitempty"` // MongoDBVersion is the version of MongoDB the cluster runs, in <major version>.<minor version> format. MongoDBVersion string `json:"mongoDBVersion,omitempty"` // ConnectionStrings is a set of connection strings that your applications use to connect to this cluster. ConnectionStrings *ConnectionStrings `json:"connectionStrings,omitempty"` ReplicaSets []ReplicaSet `json:"replicaSets,omitempty"` ServerlessPrivateEndpoints []ServerlessPrivateEndpoint `json:"serverlessPrivateEndpoints,omitempty"` CustomZoneMapping *CustomZoneMapping `json:"customZoneMapping,omitempty"` ManagedNamespaces []ManagedNamespace `json:"managedNamespaces,omitempty"` // MongoURIUpdated is a timestamp in ISO 8601 date and time format in UTC when the connection string was last updated. // The connection string changes if you update any of the other values. MongoURIUpdated string `json:"mongoURIUpdated,omitempty"` }
AtlasDeploymentStatus defines the observed state of AtlasDeployment.
func (*AtlasDeploymentStatus) DeepCopy ¶ added in v1.0.0
func (in *AtlasDeploymentStatus) DeepCopy() *AtlasDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtlasDeploymentStatus.
func (*AtlasDeploymentStatus) DeepCopyInto ¶ added in v1.0.0
func (in *AtlasDeploymentStatus) DeepCopyInto(out *AtlasDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AtlasDeploymentStatusOption ¶ added in v1.0.0
type AtlasDeploymentStatusOption func(s *AtlasDeploymentStatus)
AtlasDeploymentStatusOption is the option that is applied to Atlas Deployment Status.
func AtlasDeploymentConnectionStringsOption ¶ added in v1.0.0
func AtlasDeploymentConnectionStringsOption(connectionStrings *mongodbatlas.ConnectionStrings) AtlasDeploymentStatusOption
func AtlasDeploymentCustomZoneMappingOption ¶ added in v1.6.0
func AtlasDeploymentCustomZoneMappingOption(czm *CustomZoneMapping) AtlasDeploymentStatusOption
func AtlasDeploymentManagedNamespacesOption ¶ added in v1.6.0
func AtlasDeploymentManagedNamespacesOption(namespaces []ManagedNamespace) AtlasDeploymentStatusOption
func AtlasDeploymentMongoDBVersionOption ¶ added in v1.0.0
func AtlasDeploymentMongoDBVersionOption(mongoDBVersion string) AtlasDeploymentStatusOption
func AtlasDeploymentMongoURIUpdatedOption ¶ added in v1.0.0
func AtlasDeploymentMongoURIUpdatedOption(mongoURIUpdated string) AtlasDeploymentStatusOption
func AtlasDeploymentReplicaSet ¶ added in v1.7.0
func AtlasDeploymentReplicaSet(replicas []ReplicaSet) AtlasDeploymentStatusOption
func AtlasDeploymentSPEOption ¶ added in v1.5.0
func AtlasDeploymentSPEOption(pe []ServerlessPrivateEndpoint) AtlasDeploymentStatusOption
func AtlasDeploymentStateNameOption ¶ added in v1.0.0
func AtlasDeploymentStateNameOption(stateName string) AtlasDeploymentStatusOption
type AtlasNetworkPeer ¶ added in v1.3.0
type AtlasNetworkPeer struct { // Unique identifier for NetworkPeer. ID string `json:"id"` // Cloud provider for which you want to retrieve a network peer. ProviderName provider.ProviderName `json:"providerName"` // Region for which you want to create the network peer. It isn't needed for GCP Region string `json:"region"` // Status of the network peer. Applicable only for AWS. StatusName string `json:"statusName,omitempty"` // Error state of the network peer. Applicable only for Azure. ErrorState string `json:"errorState,omitempty"` // Error state of the network peer. Applicable only for AWS. ErrorStateName string `json:"errorStateName,omitempty"` // Error state of the network peer. Applicable only for GCP. ErrorMessage string `json:"errorMessage,omitempty"` // Unique identifier of the network peer connection. Applicable only for AWS. ConnectionID string `json:"connectionId,omitempty"` // Status of the network peer. Applicable only for GCP and Azure. Status string `json:"status,omitempty"` // VPC is general purpose field for storing the name of the VPC. // VPC is vpcID for AWS, user networkName for GCP, and vnetName for Azure. VPC string `json:"vpc,omitempty"` // ProjectID of the user's vpc. Applicable only for GCP. GCPProjectID string `json:"gcpProjectId,omitempty"` // Atlas Network Name. Applicable only for GCP. It's needed to add network peer connection. AtlasNetworkName string `json:"atlasNetworkName,omitempty"` // ProjectID of Atlas container. Applicable only for GCP. It's needed to add network peer connection. AtlasGCPProjectID string `json:"atlasGcpProjectId,omitempty"` // ContainerID of Atlas network peer container. ContainerID string `json:"containerId,omitempty"` }
func NewNetworkPeerStatus ¶ added in v1.3.0
func NewNetworkPeerStatus(atlasPeer mongodbatlas.Peer, providerName provider.ProviderName, vpcName string, container mongodbatlas.Container) AtlasNetworkPeer
func (*AtlasNetworkPeer) DeepCopy ¶ added in v1.3.0
func (in *AtlasNetworkPeer) DeepCopy() *AtlasNetworkPeer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtlasNetworkPeer.
func (*AtlasNetworkPeer) DeepCopyInto ¶ added in v1.3.0
func (in *AtlasNetworkPeer) DeepCopyInto(out *AtlasNetworkPeer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AtlasNetworkPeer) GetStatus ¶ added in v1.3.0
func (in *AtlasNetworkPeer) GetStatus() string
type AtlasProjectStatus ¶
type AtlasProjectStatus struct { Common `json:",inline"` // The ID of the Atlas Project // +optional ID string `json:"id,omitempty"` // The list of IP Access List entries that are expired due to 'deleteAfterDate' being less than the current date. // Note, that this field is updated by the Atlas Operator only after specification changes ExpiredIPAccessList []project.IPAccessList `json:"expiredIpAccessList,omitempty"` // The list of private endpoints configured for current project PrivateEndpoints []ProjectPrivateEndpoint `json:"privateEndpoints,omitempty"` // The list of network peers that are configured for current project NetworkPeers []AtlasNetworkPeer `json:"networkPeers,omitempty"` // AuthModes contains a list of configured authentication modes // "SCRAM" is default authentication method and requires a password for each user // "X509" signifies that self-managed X.509 authentication is configured AuthModes authmode.AuthModes `json:"authModes,omitempty"` // AlertConfigurations contains a list of alert configuration statuses AlertConfigurations []AlertConfiguration `json:"alertConfigurations,omitempty"` // CloudProviderAccessRoles contains a list of configured cloud provider access roles. AWS support only CloudProviderAccessRoles []CloudProviderAccessRole `json:"cloudProviderAccessRoles,omitempty"` // CustomRoles contains a list of custom roles statuses CustomRoles []CustomRole `json:"customRoles,omitempty"` // Teams contains a list of teams assignment statuses Teams []ProjectTeamStatus `json:"teams,omitempty"` // Prometheus contains the status for Prometheus integration // including the prometheusDiscoveryURL // +optional Prometheus *Prometheus `json:"prometheus,omitempty"` }
AtlasProjectStatus defines the observed state of AtlasProject
func (*AtlasProjectStatus) DeepCopy ¶
func (in *AtlasProjectStatus) DeepCopy() *AtlasProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtlasProjectStatus.
func (*AtlasProjectStatus) DeepCopyInto ¶
func (in *AtlasProjectStatus) DeepCopyInto(out *AtlasProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AtlasProjectStatusOption ¶
type AtlasProjectStatusOption func(s *AtlasProjectStatus)
AtlasProjectStatusOption is the option that is applied to Atlas Project Status
func AtlasProjectAddPrivateEnpointsOption ¶ added in v0.7.0
func AtlasProjectAddPrivateEnpointsOption(privateEndpoints []ProjectPrivateEndpoint) AtlasProjectStatusOption
func AtlasProjectAuthModesOption ¶ added in v0.8.0
func AtlasProjectAuthModesOption(authModes []authmode.AuthMode) AtlasProjectStatusOption
func AtlasProjectCloudAccessRolesOption ¶ added in v1.3.0
func AtlasProjectCloudAccessRolesOption(cloudAccessRoles []CloudProviderAccessRole) AtlasProjectStatusOption
func AtlasProjectExpiredIPAccessOption ¶
func AtlasProjectExpiredIPAccessOption(lists []project.IPAccessList) AtlasProjectStatusOption
func AtlasProjectIDOption ¶
func AtlasProjectIDOption(id string) AtlasProjectStatusOption
func AtlasProjectPrometheusOption ¶ added in v1.1.0
func AtlasProjectPrometheusOption(prometheus *Prometheus) AtlasProjectStatusOption
func AtlasProjectSetAlertConfigOption ¶ added in v1.4.0
func AtlasProjectSetAlertConfigOption(alertConfigs *[]AlertConfiguration) AtlasProjectStatusOption
func AtlasProjectSetCustomRolesOption ¶ added in v1.4.1
func AtlasProjectSetCustomRolesOption(customRoles *[]CustomRole) AtlasProjectStatusOption
func AtlasProjectSetNetworkPeerOption ¶ added in v1.3.0
func AtlasProjectSetNetworkPeerOption(networkPeers *[]AtlasNetworkPeer) AtlasProjectStatusOption
func AtlasProjectSetPrivateEnpointsOption ¶ added in v1.2.0
func AtlasProjectSetPrivateEnpointsOption(privateEndpoints []ProjectPrivateEndpoint) AtlasProjectStatusOption
func AtlasProjectSetTeamsOption ¶ added in v1.5.0
func AtlasProjectSetTeamsOption(teams *[]ProjectTeamStatus) AtlasProjectStatusOption
type AtlasTeamStatusOption ¶ added in v1.5.0
type AtlasTeamStatusOption func(s *TeamStatus)
AtlasTeamStatusOption is the option that is applied to Atlas Project Status
func AtlasTeamSetID ¶ added in v1.5.0
func AtlasTeamSetID(ID string) AtlasTeamStatusOption
func AtlasTeamSetProjects ¶ added in v1.5.0
func AtlasTeamSetProjects(projects []TeamProject) AtlasTeamStatusOption
func AtlasTeamUnsetID ¶ added in v1.5.0
func AtlasTeamUnsetID() AtlasTeamStatusOption
type BackupPolicyStatus ¶ added in v1.6.0
type BackupPolicyStatus struct { Common `json:",inline"` // DeploymentID of the deployment using the backup policy BackupScheduleIDs []string `json:"backupScheduleIDs,omitempty"` }
func (*BackupPolicyStatus) DeepCopy ¶ added in v1.6.0
func (in *BackupPolicyStatus) DeepCopy() *BackupPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupPolicyStatus.
func (*BackupPolicyStatus) DeepCopyInto ¶ added in v1.6.0
func (in *BackupPolicyStatus) DeepCopyInto(out *BackupPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupScheduleStatus ¶ added in v1.6.0
type BackupScheduleStatus struct { Common `json:",inline"` DeploymentIDs []string `json:"deploymentID,omitempty"` }
func (*BackupScheduleStatus) DeepCopy ¶ added in v1.6.0
func (in *BackupScheduleStatus) DeepCopy() *BackupScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupScheduleStatus.
func (*BackupScheduleStatus) DeepCopyInto ¶ added in v1.6.0
func (in *BackupScheduleStatus) DeepCopyInto(out *BackupScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudProviderAccessRole ¶ added in v1.3.0
type CloudProviderAccessRole struct { AtlasAWSAccountArn string `json:"atlasAWSAccountArn,omitempty"` AtlasAssumedRoleExternalID string `json:"atlasAssumedRoleExternalId"` AuthorizedDate string `json:"authorizedDate,omitempty"` CreatedDate string `json:"createdDate,omitempty"` FeatureUsages []FeatureUsage `json:"featureUsages,omitempty"` IamAssumedRoleArn string `json:"iamAssumedRoleArn,omitempty"` ProviderName string `json:"providerName"` RoleID string `json:"roleId,omitempty"` Status string `json:"status,omitempty"` ErrorMessage string `json:"errorMessage,omitempty"` }
func NewCloudProviderAccessRole ¶ added in v1.3.0
func NewCloudProviderAccessRole(providerName, assumedRoleArn string) CloudProviderAccessRole
func (*CloudProviderAccessRole) DeepCopy ¶ added in v1.3.0
func (in *CloudProviderAccessRole) DeepCopy() *CloudProviderAccessRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderAccessRole.
func (*CloudProviderAccessRole) DeepCopyInto ¶ added in v1.3.0
func (in *CloudProviderAccessRole) DeepCopyInto(out *CloudProviderAccessRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudProviderAccessRole) Failed ¶ added in v1.3.0
func (c *CloudProviderAccessRole) Failed(errorMessage string)
func (*CloudProviderAccessRole) FailedToAuthorise ¶ added in v1.3.0
func (c *CloudProviderAccessRole) FailedToAuthorise(errorMessage string)
func (*CloudProviderAccessRole) IsEmptyARN ¶ added in v1.3.0
func (c *CloudProviderAccessRole) IsEmptyARN() bool
func (*CloudProviderAccessRole) Update ¶ added in v1.3.0
func (c *CloudProviderAccessRole) Update(role mongodbatlas.AWSIAMRole, isEmptyArn bool)
type Common ¶
type Common struct { // Conditions is the list of statuses showing the current state of the Atlas Custom Resource Conditions []Condition `json:"conditions"` // ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of. // The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource. ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
Common is the struct shared by all statuses in existing Custom Resources.
func (*Common) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Common.
func (*Common) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Common) GetConditions ¶
func (Common) GetObservedGeneration ¶
type Condition ¶
type Condition struct { // Type of Atlas Custom Resource condition. Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty"` }
Condition describes the state of an Atlas Custom Resource at a certain point.
func EnsureConditionExists ¶
EnsureConditionExists adds or updates the condition in the copy of a 'source' slice
func FalseCondition ¶
func FalseCondition(conditionType ConditionType) Condition
FalseCondition returns the Condition that has the 'Status' set to 'false' and 'Type' to 'conditionType'. The reason and message can be provided optionally
func RemoveConditionIfExists ¶ added in v1.1.0
func RemoveConditionIfExists(conditionType ConditionType, source []Condition) []Condition
func TrueCondition ¶
func TrueCondition(conditionType ConditionType) Condition
TrueCondition returns the Condition that has the 'Status' set to 'true' and 'Type' to 'conditionType'. It explicitly omits the 'Reason' and 'Message' fields.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Condition) WithMessageRegexp ¶
func (Condition) WithReason ¶
type ConditionType ¶
type ConditionType string
const ( ReadyType ConditionType = "Ready" ValidationSucceeded ConditionType = "ValidationSucceeded" )
const ( ProjectReadyType ConditionType = "ProjectReady" IPAccessListReadyType ConditionType = "IPAccessListReady" MaintenanceWindowReadyType ConditionType = "MaintenanceWindowReady" PrivateEndpointServiceReadyType ConditionType = "PrivateEndpointServiceReady" PrivateEndpointReadyType ConditionType = "PrivateEndpointReady" NetworkPeerReadyType ConditionType = "NetworkPeerReady" CloudProviderAccessReadyType ConditionType = "CloudProviderAccessReady" IntegrationReadyType ConditionType = "ThirdPartyIntegrationReady" AlertConfigurationReadyType ConditionType = "AlertConfigurationReadyType" EncryptionAtRestReadyType ConditionType = "EncryptionAtRestReady" AuditingReadyType ConditionType = "AuditingReady" ProjectSettingsReadyType ConditionType = "ProjectSettingsReady" ProjectCustomRolesReadyType ConditionType = "ProjectCustomRolesReady" ProjectTeamsReadyType ConditionType = "ProjectTeamsReady" )
AtlasProject condition types
const ( DeploymentReadyType ConditionType = "DeploymentReady" ServerlessPrivateEndpointReadyType ConditionType = "ServerlessPrivateEndpointReady" ManagedNamespacesReadyType ConditionType = "ManagedNamespacesReady" CustomZoneMappingReadyType ConditionType = "CustomZoneMappingReady" )
AtlasDeployment condition types
const (
DatabaseUserReadyType ConditionType = "DatabaseUserReady"
)
AtlasDatabaseUser condition types
const (
ResourceVersionStatus ConditionType = "ResourceVersionIsValid"
)
Generic condition type
type ConnectionStrings ¶
type ConnectionStrings struct { // Public mongodb:// connection string for this cluster. Standard string `json:"standard,omitempty"` // Public mongodb+srv:// connection string for this cluster. StandardSrv string `json:"standardSrv,omitempty"` // Private endpoint connection strings. // Each object describes the connection strings you can use to connect to this cluster through a private endpoint. // Atlas returns this parameter only if you deployed a private endpoint to all regions to which you deployed this cluster's nodes. PrivateEndpoint []PrivateEndpoint `json:"privateEndpoint,omitempty"` // Network-peering-endpoint-aware mongodb:// connection strings for each interface VPC endpoint you configured to connect to this cluster. // Atlas returns this parameter only if you created a network peering connection to this cluster. Private string `json:"private,omitempty"` // Network-peering-endpoint-aware mongodb+srv:// connection strings for each interface VPC endpoint you configured to connect to this cluster. // Atlas returns this parameter only if you created a network peering connection to this cluster. // Use this URI format if your driver supports it. If it doesn't, use connectionStrings.private. PrivateSrv string `json:"privateSrv,omitempty"` }
ConnectionStrings contains configuration for applications use to connect to this cluster
func (*ConnectionStrings) DeepCopy ¶
func (in *ConnectionStrings) DeepCopy() *ConnectionStrings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionStrings.
func (*ConnectionStrings) DeepCopyInto ¶
func (in *ConnectionStrings) DeepCopyInto(out *ConnectionStrings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CurrentValue ¶ added in v1.4.0
type CurrentValue struct { // The value of the metric. Number string `json:"number,omitempty"` // The units for the value. Depends on the type of metric. Units string `json:"units,omitempty"` }
func CurrentValueFromAtlas ¶ added in v1.4.0
func CurrentValueFromAtlas(value *mongodbatlas.CurrentValue) *CurrentValue
func (*CurrentValue) DeepCopy ¶ added in v1.4.0
func (in *CurrentValue) DeepCopy() *CurrentValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CurrentValue.
func (*CurrentValue) DeepCopyInto ¶ added in v1.4.0
func (in *CurrentValue) DeepCopyInto(out *CurrentValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomRole ¶ added in v1.4.1
type CustomRole struct { // Role name which is unique Name string `json:"name"` // The status of the given custom role (OK or FAILED) Status CustomRoleStatus `json:"status"` // The message when the custom role is in the FAILED status Error string `json:"error,omitempty"` }
func (*CustomRole) DeepCopy ¶ added in v1.4.1
func (in *CustomRole) DeepCopy() *CustomRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomRole.
func (*CustomRole) DeepCopyInto ¶ added in v1.4.1
func (in *CustomRole) DeepCopyInto(out *CustomRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomRoleStatus ¶ added in v1.4.1
type CustomRoleStatus string
const ( CustomRoleStatusOK CustomRoleStatus = "OK" CustomRoleStatusFailed CustomRoleStatus = "FAILED" )
type CustomZoneMapping ¶ added in v1.6.0
type CustomZoneMapping struct { CustomZoneMapping map[string]string `json:"customZoneMapping,omitempty"` ZoneMappingState string `json:"zoneMappingState,omitempty"` ZoneMappingErrMessage string `json:"zoneMappingErrMessage,omitempty"` }
func (*CustomZoneMapping) DeepCopy ¶ added in v1.6.0
func (in *CustomZoneMapping) DeepCopy() *CustomZoneMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomZoneMapping.
func (*CustomZoneMapping) DeepCopyInto ¶ added in v1.6.0
func (in *CustomZoneMapping) DeepCopyInto(out *CustomZoneMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Endpoint ¶
type Endpoint struct { // Unique identifier of the private endpoint. EndpointID string `json:"endpointId,omitempty"` // Cloud provider to which you deployed the private endpoint. Atlas returns AWS or AZURE. ProviderName string `json:"providerName,omitempty"` // Region to which you deployed the private endpoint. Region string `json:"region,omitempty"` // Private IP address of the private endpoint network interface you created in your Azure VNet. // +optional IP string `json:"ip,omitempty"` }
Endpoint through which you connect to Atlas
func (*Endpoint) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
func (*Endpoint) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureUsage ¶ added in v1.3.0
type FeatureUsage struct { FeatureType string `json:"featureType,omitempty"` FeatureID string `json:"featureId,omitempty"` }
func (*FeatureUsage) DeepCopy ¶ added in v1.3.0
func (in *FeatureUsage) DeepCopy() *FeatureUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureUsage.
func (*FeatureUsage) DeepCopyInto ¶ added in v1.3.0
func (in *FeatureUsage) DeepCopyInto(out *FeatureUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCPEndpoint ¶ added in v1.0.0
type GCPEndpoint struct { Status string `json:"status"` EndpointName string `json:"endpointName"` IPAddress string `json:"ipAddress"` }
func (*GCPEndpoint) DeepCopy ¶ added in v1.0.0
func (in *GCPEndpoint) DeepCopy() *GCPEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPEndpoint.
func (*GCPEndpoint) DeepCopyInto ¶ added in v1.0.0
func (in *GCPEndpoint) DeepCopyInto(out *GCPEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedNamespace ¶ added in v1.6.0
type ManagedNamespace struct { Db string `json:"db"` //nolint:stylecheck // not changing this as is a breaking change Collection string `json:"collection"` CustomShardKey string `json:"customShardKey,omitempty"` NumInitialChunks int `json:"numInitialChunks,omitempty"` IsCustomShardKeyHashed *bool `json:"isCustomShardKeyHashed,omitempty"` // Flag that specifies whether the custom shard key for the collection is hashed. IsShardKeyUnique *bool `json:"isShardKeyUnique,omitempty"` // Flag that specifies whether the underlying index enforces a unique constraint. Status string `json:"status,omitempty"` PresplitHashedZones *bool `json:"presplitHashedZones,omitempty"` ErrMessage string `json:"errMessage,omitempty"` }
func NewCreatedManagedNamespaceStatus ¶ added in v1.6.0
func NewCreatedManagedNamespaceStatus(namespace mongodbatlas.ManagedNamespace) ManagedNamespace
func NewFailedToCreateManagedNamespaceStatus ¶ added in v1.6.0
func NewFailedToCreateManagedNamespaceStatus(namespace mongodbatlas.ManagedNamespace, err error) ManagedNamespace
func (*ManagedNamespace) DeepCopy ¶ added in v1.6.0
func (in *ManagedNamespace) DeepCopy() *ManagedNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedNamespace.
func (*ManagedNamespace) DeepCopyInto ¶ added in v1.6.0
func (in *ManagedNamespace) DeepCopyInto(out *ManagedNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Matcher ¶ added in v1.4.0
type Matcher struct { // Name of the field in the target object to match on. FieldName string `json:"fieldName,omitempty"` // The operator to test the field’s value. Operator string `json:"operator,omitempty"` // Value to test with the specified operator. Value string `json:"value,omitempty"` }
func MatcherFromAtlas ¶ added in v1.4.0
func MatcherFromAtlas(matcher mongodbatlas.Matcher) Matcher
func (*Matcher) DeepCopy ¶ added in v1.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matcher.
func (*Matcher) DeepCopyInto ¶ added in v1.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricThreshold ¶ added in v1.4.0
type MetricThreshold struct { // Name of the metric to check. MetricName string `json:"metricName,omitempty"` // Operator to apply when checking the current metric value against the threshold value. Operator string `json:"operator,omitempty"` // Threshold value outside which an alert will be triggered. Threshold string `json:"threshold"` // The units for the threshold value. Units string `json:"units,omitempty"` // This must be set to AVERAGE. Atlas computes the current metric value as an average. Mode string `json:"mode,omitempty"` }
func MetricThresholdFromAtlas ¶ added in v1.4.0
func MetricThresholdFromAtlas(threshold *mongodbatlas.MetricThreshold) *MetricThreshold
func (*MetricThreshold) DeepCopy ¶ added in v1.4.0
func (in *MetricThreshold) DeepCopy() *MetricThreshold
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricThreshold.
func (*MetricThreshold) DeepCopyInto ¶ added in v1.4.0
func (in *MetricThreshold) DeepCopyInto(out *MetricThreshold)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Notification ¶ added in v1.4.0
type Notification struct { // Slack API token or Bot token. Populated for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token. APIToken string `json:"apiToken,omitempty"` // Slack channel name. Populated for the SLACK notifications type. ChannelName string `json:"channelName,omitempty"` // Datadog API Key. Found in the Datadog dashboard. Populated for the DATADOG notifications type. DatadogAPIKey string `json:"datadogApiKey,omitempty"` // Region that indicates which API URL to use DatadogRegion string `json:"datadogRegion,omitempty"` // Number of minutes to wait after an alert condition is detected before sending out the first notification. DelayMin *int `json:"delayMin,omitempty"` // Email address to which alert notifications are sent. Populated for the EMAIL notifications type. EmailAddress string `json:"emailAddress,omitempty"` // Flag indicating if email notifications should be sent. Populated for ORG, GROUP, and USER notifications types. EmailEnabled *bool `json:"emailEnabled,omitempty"` // The Flowdock personal API token. Populated for the FLOWDOCK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token. FlowdockAPIToken string `json:"flowdockApiToken,omitempty"` // Flowdock flow namse in lower-case letters. FlowName string `json:"flowName,omitempty"` // Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. IntervalMin int `json:"intervalMin,omitempty"` // Mobile number to which alert notifications are sent. Populated for the SMS notifications type. MobileNumber string `json:"mobileNumber,omitempty"` // Opsgenie API Key. Populated for the OPS_GENIE notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token. OpsGenieAPIKey string `json:"opsGenieApiKey,omitempty"` // Region that indicates which API URL to use. OpsGenieRegion string `json:"opsGenieRegion,omitempty"` // Flowdock organization name in lower-case letters. This is the name that appears after www.flowdock.com/app/ in the URL string. Populated for the FLOWDOCK notifications type. OrgName string `json:"orgName,omitempty"` // PagerDuty service key. Populated for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key. ServiceKey string `json:"serviceKey,omitempty"` // Flag indicating if text message notifications should be sent. Populated for ORG, GROUP, and USER notifications types. SMSEnabled *bool `json:"smsEnabled,omitempty"` // Unique identifier of a team. TeamID string `json:"teamId,omitempty"` // Label for the team that receives this notification. TeamName string `json:"teamName,omitempty"` // Type of alert notification. TypeName string `json:"typeName,omitempty"` // Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Populated for the USER notifications type. Username string `json:"username,omitempty"` // VictorOps API key. Populated for the VICTOR_OPS notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key. VictorOpsAPIKey string `json:"victorOpsApiKey,omitempty"` // VictorOps routing key. Populated for the VICTOR_OPS notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key. VictorOpsRoutingKey string `json:"victorOpsRoutingKey,omitempty"` // The following roles grant privileges within a project. Roles []string `json:"roles,omitempty"` }
func NotificationFromAtlas ¶ added in v1.4.0
func NotificationFromAtlas(notification mongodbatlas.Notification) Notification
func (*Notification) DeepCopy ¶ added in v1.4.0
func (in *Notification) DeepCopy() *Notification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Notification.
func (*Notification) DeepCopyInto ¶ added in v1.4.0
func (in *Notification) DeepCopyInto(out *Notification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Option ¶
type Option interface{}
Option is the function that is applied to the status field of an Atlas Custom Resource. This is the way to handle some random data that need to be written to status.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // Private-endpoint-aware mongodb:// connection string for this private endpoint. ConnectionString string `json:"connectionString,omitempty"` // Private endpoint through which you connect to Atlas when you use connectionStrings.privateEndpoint[n].connectionString or connectionStrings.privateEndpoint[n].srvConnectionString. Endpoints []Endpoint `json:"endpoints,omitempty"` // Private-endpoint-aware mongodb+srv:// connection string for this private endpoint. SRVConnectionString string `json:"srvConnectionString,omitempty"` // Type of MongoDB process that you connect to with the connection strings // // Atlas returns: // // • MONGOD for replica sets, or // // • MONGOS for sharded clusters Type string `json:"type,omitempty"` }
PrivateEndpoint connection strings. Each object describes the connection strings you can use to connect to this cluster through a private endpoint. Atlas returns this parameter only if you deployed a private endpoint to all regions to which you deployed this cluster's nodes.
func (*PrivateEndpoint) DeepCopy ¶
func (in *PrivateEndpoint) DeepCopy() *PrivateEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateEndpoint.
func (*PrivateEndpoint) DeepCopyInto ¶
func (in *PrivateEndpoint) DeepCopyInto(out *PrivateEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectPrivateEndpoint ¶ added in v0.6.1
type ProjectPrivateEndpoint struct { // Unique identifier for AWS or AZURE Private Link Connection. ID string `json:"id,omitempty"` // Cloud provider for which you want to retrieve a private endpoint service. Atlas accepts AWS or AZURE. Provider provider.ProviderName `json:"provider"` // Cloud provider region for which you want to create the private endpoint service. Region string `json:"region"` // Name of the AWS or Azure Private Link Service that Atlas manages. ServiceName string `json:"serviceName,omitempty"` // Unique identifier of the Azure Private Link Service (for AWS the same as ID). ServiceResourceID string `json:"serviceResourceId,omitempty"` // Unique identifier of the AWS or Azure Private Link Interface Endpoint. InterfaceEndpointID string `json:"interfaceEndpointId,omitempty"` // Unique alphanumeric and special character strings that identify the service attachments associated with the GCP Private Service Connect endpoint service. ServiceAttachmentNames []string `json:"serviceAttachmentNames,omitempty"` // Collection of individual GCP private endpoints that comprise your network endpoint group. Endpoints []GCPEndpoint `json:"endpoints,omitempty"` }
func (*ProjectPrivateEndpoint) DeepCopy ¶ added in v0.6.1
func (in *ProjectPrivateEndpoint) DeepCopy() *ProjectPrivateEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectPrivateEndpoint.
func (*ProjectPrivateEndpoint) DeepCopyInto ¶ added in v0.6.1
func (in *ProjectPrivateEndpoint) DeepCopyInto(out *ProjectPrivateEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ProjectPrivateEndpoint) Identifier ¶ added in v0.7.0
func (pe ProjectPrivateEndpoint) Identifier() interface{}
type ProjectTeamStatus ¶ added in v1.5.0
type ProjectTeamStatus struct { ID string `json:"id,omitempty"` TeamRef common.ResourceRefNamespaced `json:"teamRef"` }
func (*ProjectTeamStatus) DeepCopy ¶ added in v1.5.0
func (in *ProjectTeamStatus) DeepCopy() *ProjectTeamStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectTeamStatus.
func (*ProjectTeamStatus) DeepCopyInto ¶ added in v1.5.0
func (in *ProjectTeamStatus) DeepCopyInto(out *ProjectTeamStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Prometheus ¶ added in v1.0.0
type Prometheus struct { // +optional Scheme string `json:"scheme,omitempty"` // +optional DiscoveryURL string `json:"prometheusDiscoveryURL,omitempty"` }
func (*Prometheus) DeepCopy ¶ added in v1.0.0
func (in *Prometheus) DeepCopy() *Prometheus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prometheus.
func (*Prometheus) DeepCopyInto ¶ added in v1.0.0
func (in *Prometheus) DeepCopyInto(out *Prometheus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Reader ¶
type Reader interface { // GetStatus returns the status of the object. GetStatus() Status }
type ReplicaSet ¶ added in v1.7.0
func (*ReplicaSet) DeepCopy ¶ added in v1.7.0
func (in *ReplicaSet) DeepCopy() *ReplicaSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSet.
func (*ReplicaSet) DeepCopyInto ¶ added in v1.7.0
func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerlessPrivateEndpoint ¶ added in v1.5.0
type ServerlessPrivateEndpoint struct { // ID is the identifier of the Serverless PrivateLink Service. ID string `json:"_id,omitempty"` // CloudProviderEndpointID is the identifier of the cloud provider endpoint. CloudProviderEndpointID string `json:"cloudProviderEndpointId,omitempty"` // Name is the name of the Serverless PrivateLink Service. Should be unique. Name string `json:"name,omitempty"` // EndpointServiceName is the name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created. EndpointServiceName string `json:"endpointServiceName,omitempty"` // ErrorMessage is the error message if the Serverless PrivateLink Service failed to create or connect. ErrorMessage string `json:"errorMessage,omitempty"` // Status of the AWS Serverless PrivateLink connection. Status string `json:"status,omitempty"` // ProviderName is human-readable label that identifies the cloud provider. Values include AWS or AZURE. ProviderName string `json:"providerName,omitempty"` // PrivateEndpointIPAddress is the IPv4 address of the private endpoint in your Azure VNet that someone added to this private endpoint service. PrivateEndpointIPAddress string `json:"privateEndpointIpAddress,omitempty"` // PrivateLinkServiceResourceID is the root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages. MongoDB Cloud returns null while it creates the endpoint service. PrivateLinkServiceResourceID string `json:"privateLinkServiceResourceId,omitempty"` }
func FailedDuplicationSPE ¶ added in v1.5.0
func FailedDuplicationSPE(name, cloudProviderEndpointID, privateEndpointIPAddress string) ServerlessPrivateEndpoint
func FailedToConnectSPE ¶ added in v1.5.0
func FailedToConnectSPE(pe mongodbatlas.ServerlessPrivateEndpointConnection, message string) ServerlessPrivateEndpoint
func FailedToCreateSPE ¶ added in v1.5.0
func FailedToCreateSPE(comment, message string) ServerlessPrivateEndpoint
func SPEFromAtlas ¶ added in v1.5.0
func SPEFromAtlas(in mongodbatlas.ServerlessPrivateEndpointConnection) ServerlessPrivateEndpoint
func (*ServerlessPrivateEndpoint) DeepCopy ¶ added in v1.5.0
func (in *ServerlessPrivateEndpoint) DeepCopy() *ServerlessPrivateEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerlessPrivateEndpoint.
func (*ServerlessPrivateEndpoint) DeepCopyInto ¶ added in v1.5.0
func (in *ServerlessPrivateEndpoint) DeepCopyInto(out *ServerlessPrivateEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeamProject ¶ added in v1.5.0
type TeamProject struct { // Unique identifier of the project inside atlas ID string `json:"id"` // Name given to the project Name string `json:"name"` }
func (*TeamProject) DeepCopy ¶ added in v1.5.0
func (in *TeamProject) DeepCopy() *TeamProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamProject.
func (*TeamProject) DeepCopyInto ¶ added in v1.5.0
func (in *TeamProject) DeepCopyInto(out *TeamProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeamStatus ¶ added in v1.5.0
type TeamStatus struct { Common `json:",inline"` // ID of the team ID string `json:"id,omitempty"` // List of projects which the team is assigned Projects []TeamProject `json:"projects,omitempty"` }
func (*TeamStatus) DeepCopy ¶ added in v1.5.0
func (in *TeamStatus) DeepCopy() *TeamStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamStatus.
func (*TeamStatus) DeepCopyInto ¶ added in v1.5.0
func (in *TeamStatus) DeepCopyInto(out *TeamStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Threshold ¶ added in v1.4.0
type Threshold struct { // Operator to apply when checking the current metric value against the threshold value. it accepts the following values: GREATER_THAN, LESS_THAN Operator string `json:"operator,omitempty"` // The units for the threshold value Units string `json:"units,omitempty"` // Threshold value outside which an alert will be triggered. Threshold string `json:"threshold,omitempty"` }
func ThresholdFromAtlas ¶ added in v1.4.0
func ThresholdFromAtlas(threshold *mongodbatlas.Threshold) *Threshold
func (*Threshold) DeepCopy ¶ added in v1.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Threshold.
func (*Threshold) DeepCopyInto ¶ added in v1.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- alert_configurations.go
- atlasdatabaseuser.go
- atlasdeployment.go
- atlasproject.go
- backuppolicy.go
- backupschedule.go
- cloud_provider_access.go
- condition.go
- custom_roles.go
- doc.go
- global_deployment.go
- networkpeer.go
- option.go
- privateendpoint.go
- project_team.go
- prometheus.go
- serverless_private_endpoint.go
- status.go
- team.go
- zz_generated.deepcopy.go