Documentation ¶
Index ¶
- type IPAccessList
- func (i IPAccessList) Identifier() interface{}
- func (i IPAccessList) ToAtlas() (*mongodbatlas.ProjectIPAccessList, error)
- func (i IPAccessList) WithAWSGroup(group string) IPAccessList
- func (i IPAccessList) WithCIDR(cidr string) IPAccessList
- func (i IPAccessList) WithComment(comment string) IPAccessList
- func (i IPAccessList) WithDeleteAfterDate(date string) IPAccessList
- func (i IPAccessList) WithIP(ip string) IPAccessList
- type Integration
- type MaintenanceWindow
- func (m MaintenanceWindow) ToAtlas() *mongodbatlas.MaintenanceWindow
- func (m MaintenanceWindow) WithAutoDefer(autoDefer bool) MaintenanceWindow
- func (m MaintenanceWindow) WithDay(day int) MaintenanceWindow
- func (m MaintenanceWindow) WithDefer(isDefer bool) MaintenanceWindow
- func (m MaintenanceWindow) WithHour(hour int) MaintenanceWindow
- func (m MaintenanceWindow) WithStartASAP(startASAP bool) MaintenanceWindow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAccessList ¶
type IPAccessList struct { // Unique identifier of AWS security group in this access list entry. // +optional AwsSecurityGroup string `json:"awsSecurityGroup,omitempty"` // Range of IP addresses in CIDR notation in this access list entry. // +optional CIDRBlock string `json:"cidrBlock,omitempty"` // Comment associated with this access list entry. // +optional Comment string `json:"comment,omitempty"` // Timestamp in ISO 8601 date and time format in UTC after which Atlas deletes the temporary access list entry. // +optional DeleteAfterDate string `json:"deleteAfterDate,omitempty"` // Entry using an IP address in this access list entry. // +optional IPAddress string `json:"ipAddress,omitempty"` }
func NewIPAccessList ¶
func NewIPAccessList() IPAccessList
func (IPAccessList) Identifier ¶
func (i IPAccessList) Identifier() interface{}
Identifier returns the "id" of the ProjectIPAccessList. Note, that it's an error to specify more than one of these fields - the business layer must validate this beforehand
func (IPAccessList) ToAtlas ¶
func (i IPAccessList) ToAtlas() (*mongodbatlas.ProjectIPAccessList, error)
ToAtlas converts the ProjectIPAccessList to native Atlas client format.
func (IPAccessList) WithAWSGroup ¶
func (i IPAccessList) WithAWSGroup(group string) IPAccessList
func (IPAccessList) WithCIDR ¶
func (i IPAccessList) WithCIDR(cidr string) IPAccessList
func (IPAccessList) WithComment ¶
func (i IPAccessList) WithComment(comment string) IPAccessList
func (IPAccessList) WithDeleteAfterDate ¶
func (i IPAccessList) WithDeleteAfterDate(date string) IPAccessList
func (IPAccessList) WithIP ¶
func (i IPAccessList) WithIP(ip string) IPAccessList
type Integration ¶ added in v1.0.0
type Integration struct { // Third Party Integration type such as Slack, New Relic, etc // +kubebuilder:validation:Enum=PAGER_DUTY;SLACK;DATADOG;NEW_RELIC;OPS_GENIE;VICTOR_OPS;FLOWDOCK;WEBHOOK;MICROSOFT_TEAMS;PROMETHEUS // +optional Type string `json:"type,omitempty"` // +optional LicenseKeyRef common.ResourceRefNamespaced `json:"licenseKeyRef,omitempty"` // +optional AccountID string `json:"accountId,omitempty"` // +optional WriteTokenRef common.ResourceRefNamespaced `json:"writeTokenRef,omitempty"` // +optional ReadTokenRef common.ResourceRefNamespaced `json:"readTokenRef,omitempty"` // +optional APIKeyRef common.ResourceRefNamespaced `json:"apiKeyRef,omitempty"` // +optional Region string `json:"region,omitempty"` // +optional ServiceKeyRef common.ResourceRefNamespaced `json:"serviceKeyRef,omitempty"` // +optional APITokenRef common.ResourceRefNamespaced `json:"apiTokenRef,omitempty"` // +optional TeamName string `json:"teamName,omitempty"` // +optional ChannelName string `json:"channelName,omitempty"` // +optional RoutingKeyRef common.ResourceRefNamespaced `json:"routingKeyRef,omitempty"` // +optional FlowName string `json:"flowName,omitempty"` // +optional OrgName string `json:"orgName,omitempty"` // +optional URL string `json:"url,omitempty"` // +optional SecretRef common.ResourceRefNamespaced `json:"secretRef,omitempty"` // +optional Name string `json:"name,omitempty"` // +optional MicrosoftTeamsWebhookURL string `json:"microsoftTeamsWebhookUrl,omitempty"` // +optional UserName string `json:"username,omitempty"` // +optional PasswordRef common.ResourceRefNamespaced `json:"passwordRef,omitempty"` // +optional ServiceDiscovery string `json:"serviceDiscovery,omitempty"` // +optional Scheme string `json:"scheme,omitempty"` // +optional Enabled bool `json:"enabled,omitempty"` }
func (Integration) Identifier ¶ added in v1.0.0
func (i Integration) Identifier() interface{}
func (Integration) ToAtlas ¶ added in v1.0.0
func (i Integration) ToAtlas(c client.Client, defaultNS string) (result *mongodbatlas.ThirdPartyIntegration, err error)
type MaintenanceWindow ¶ added in v1.1.0
type MaintenanceWindow struct { // Day of the week when you would like the maintenance window to start as a 1-based integer. // Sunday 1, Monday 2, Tuesday 3, Wednesday 4, Thursday 5, Friday 6, Saturday 7 // +optional // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=7 DayOfWeek int `json:"dayOfWeek,omitempty"` // Hour of the day when you would like the maintenance window to start. // This parameter uses the 24-hour clock, where midnight is 0, noon is 12. // +optional // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=23 HourOfDay int `json:"hourOfDay,omitempty"` // Flag indicating whether any scheduled project maintenance should be deferred automatically for one week. // +optional AutoDefer bool `json:"autoDefer,omitempty"` // Flag indicating whether project maintenance has been directed to start immediately. // Cannot be specified if defer is true // +optional StartASAP bool `json:"startASAP,omitempty"` // Flag indicating whether the next scheduled project maintenance should be deferred for one week. // Cannot be specified if startASAP is true // +optional Defer bool `json:"defer,omitempty"` }
func NewMaintenanceWindow ¶ added in v1.1.0
func NewMaintenanceWindow() MaintenanceWindow
func (MaintenanceWindow) ToAtlas ¶ added in v1.1.0
func (m MaintenanceWindow) ToAtlas() *mongodbatlas.MaintenanceWindow
ToAtlas converts the MaintenanceWindow to native Atlas client format.
func (MaintenanceWindow) WithAutoDefer ¶ added in v1.1.0
func (m MaintenanceWindow) WithAutoDefer(autoDefer bool) MaintenanceWindow
func (MaintenanceWindow) WithDay ¶ added in v1.1.0
func (m MaintenanceWindow) WithDay(day int) MaintenanceWindow
func (MaintenanceWindow) WithDefer ¶ added in v1.1.0
func (m MaintenanceWindow) WithDefer(isDefer bool) MaintenanceWindow
func (MaintenanceWindow) WithHour ¶ added in v1.1.0
func (m MaintenanceWindow) WithHour(hour int) MaintenanceWindow
func (MaintenanceWindow) WithStartASAP ¶ added in v1.1.0
func (m MaintenanceWindow) WithStartASAP(startASAP bool) MaintenanceWindow
Click to show internal directories.
Click to hide internal directories.