fixtures

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2020 MongoDB Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var Organization = &om.Organization{
	ID:   "5a0a1e7e0f2912c554080adc",
	Name: "Organization 0",
	Links: []*atlas.Link{
		{
			Href: "https://cloud.mongodb.com/api/public/v1.0/orgs/5a0a1e7e0f2912c554080adc",
			Rel:  "self",
		},
	},
}
View Source
var Project1 = &atlas.Project{
	ClusterCount: 2,
	Created:      "2016-07-14T14:19:33Z",
	ID:           "5a0a1e7e0f2912c554080ae6",
	Links: []*atlas.Link{
		{
			Href: "https://cloud.mongodb.com/api/atlas/v1.0/groups/5a0a1e7e0f2912c554080ae6",
			Rel:  "self",
		},
	},
	Name:  "ProjectBar",
	OrgID: "5a0a1e7e0f2912c554080adc",
}
View Source
var Project2 = &atlas.Project{
	ClusterCount: 0,
	Created:      "2017-10-16T15:24:01Z",
	ID:           "5a0a1e7e0f2912c554080ae7",
	Links: []*atlas.Link{
		{
			Href: "https://cloud.mongodb.com/api/atlas/v1.0/groups/5a0a1e7e0f2912c554080ae7",
			Rel:  "self",
		},
	},
	Name:  "Project Foo",
	OrgID: "5a0a1e7e0f2912c554080adc",
}

Functions

func Agent added in v0.0.4

func Agent() *om.Agent

func Agents added in v0.0.4

func Agents() *om.Agents

func Alert added in v0.1.0

func Alert() *atlas.Alert

func AlertConfig

func AlertConfig() *atlas.AlertConfiguration

func AlertConfigs

func AlertConfigs() []atlas.AlertConfiguration

func AlertsResponse added in v0.1.0

func AlertsResponse() *atlas.AlertsResponse

func AllClusters added in v0.0.4

func AllClusters() *om.AllClustersProjects

func AutomationConfig

func AutomationConfig() *opsmngr.AutomationConfig

func AutomationConfigWithMongoDBUsers added in v0.1.0

func AutomationConfigWithMongoDBUsers() *opsmngr.AutomationConfig

func AutomationConfigWithOneReplicaSet

func AutomationConfigWithOneReplicaSet(name string, disabled bool) *opsmngr.AutomationConfig

func AutomationConfigWithoutMongoDBUsers added in v0.1.0

func AutomationConfigWithoutMongoDBUsers() *opsmngr.AutomationConfig

func AutomationStatus added in v0.0.4

func AutomationStatus() *om.AutomationStatus

func Checkpoint added in v0.0.4

func Checkpoint() *atlas.Checkpoint

func Checkpoints added in v0.0.4

func Checkpoints() *atlas.Checkpoints

func Cluster

func Cluster() *atlas.Cluster

func Clusters

func Clusters() []atlas.Cluster

func ContinuousJobs added in v0.0.4

func ContinuousJobs() *atlas.ContinuousJobs

func ContinuousSnapshots added in v0.0.4

func ContinuousSnapshots() *atlas.ContinuousSnapshots

func DatabaseUser

func DatabaseUser() *atlas.DatabaseUser

func DatabaseUsers

func DatabaseUsers() []atlas.DatabaseUser

func EmptyAutomationConfig

func EmptyAutomationConfig() *opsmngr.AutomationConfig

func Event added in v0.1.0

func Event() *atlas.Event

func Events added in v0.1.0

func Events() *atlas.EventResponse

func GlobalAlert added in v0.1.0

func GlobalAlert() *om.GlobalAlert

func GlobalAlerts added in v0.1.0

func GlobalAlerts() *om.GlobalAlerts

func IPWhiteList

func IPWhiteList() *atlas.ProjectIPWhitelist

func MatcherFieldsType added in v0.1.0

func MatcherFieldsType() []string

func MongoDBUsers added in v0.1.0

func MongoDBUsers() *opsmngr.MongoDBUser

func Organizations

func Organizations() *om.Organizations

func OwnerResponse

func OwnerResponse(email, firstName, lastName string) *opsmngr.CreateUserResponse

func ProjectIPWhitelist

func ProjectIPWhitelist() []atlas.ProjectIPWhitelist

func Projects

func Projects() *atlas.Projects

Types

This section is empty.

Jump to

Keyboard shortcuts

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