Documentation ¶
Index ¶
- Constants
- func GenerateString(l int) (string, error)
- func GetWithCredentials(addrs []string, adminPassword string, ssl bool) (*mgo.Session, error)
- type Automation
- type Binder
- type Cluster
- type DashboardURLGenerator
- type DocContext
- type Group
- type GroupCreateRequest
- type GroupHosts
- type GroupUpdateRequest
- type ManifestGenerator
- type MongoDbVersionsType
- type OMClient
- func (oc *OMClient) ConfigureBackupAgent(configurationDoc string, groupID string) error
- func (oc *OMClient) ConfigureGroup(configurationDoc string, groupID string) error
- func (oc *OMClient) ConfigureMonitoringAgent(configurationDoc string, groupID string) error
- func (oc *OMClient) CreateGroup(id string, request GroupCreateRequest) (Group, error)
- func (oc *OMClient) CreateGroupAPIKey(groupID string) (string, error)
- func (oc *OMClient) DeleteGroup(groupID string) error
- func (oc *OMClient) GetAvailableVersions(groupID string) (Automation, error)
- func (oc *OMClient) GetGroup(groupID string) (Group, error)
- func (oc *OMClient) GetGroupByName(name string) (Group, error)
- func (oc *OMClient) GetGroupHostnames(groupID string, planID string) ([]string, error)
- func (oc *OMClient) GetGroupHosts(groupID string) (GroupHosts, error)
- func (oc *OMClient) GetLatestVersion(groupID string) (string, error)
- func (oc *OMClient) LoadDoc(p string, ctx *DocContext) (string, error)
- func (oc *OMClient) UpdateGroup(id string, request GroupUpdateRequest) (Group, error)
- func (oc *OMClient) ValidateVersion(groupID string, version string) (string, error)
- func (oc *OMClient) ValidateVersionManifest(version string) (string, error)
Constants ¶
View Source
const ( StemcellAlias = "mongodb-stemcell" MongodInstanceGroupName = "mongod_node" MongodJobName = "mongod_node" AliasesJobName = "mongodb-dns-aliases" SyslogJobName = "syslog_forwarder" BPMJobName = "bpm" BoshDNSEnableJobName = "bosh-dns-enable" ConfigAgentJobName = "mongodb_config_agent" CleanupErrandJobName = "cleanup_service" ConfigureBackupsErrandJobName = "configure_backups" LifecycleErrandType = "errand" )
View Source
const ( PlanStandalone = "standalone" PlanReplicaSet = "replica_set" PlanShardedCluster = "sharded_cluster" MonitoringAgentConfiguration = "monitoring_agent_config" BackupAgentConfiguration = "backup_agent_config" )
Variables ¶
This section is empty.
Functions ¶
func GenerateString ¶
GenerateString generates a random string or panics if something goes wrong.
Types ¶
type Automation ¶
type Automation struct {
MongoDbVersions []MongoDbVersionsType
}
type Binder ¶
func (Binder) CreateBinding ¶
func (b Binder) CreateBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest bosh.BoshManifest, requestParams serviceadapter.RequestParameters, secrets serviceadapter.ManifestSecrets, dnsAddresses serviceadapter.DNSAddresses) (serviceadapter.Binding, error)
func (Binder) DeleteBinding ¶
func (Binder) DeleteBinding(bindingID string, deploymentTopology bosh.BoshVMs, manifest bosh.BoshManifest, requestParams serviceadapter.RequestParameters, secrets serviceadapter.ManifestSecrets) error
type DashboardURLGenerator ¶
type DashboardURLGenerator struct{}
func (*DashboardURLGenerator) DashboardUrl ¶
func (d *DashboardURLGenerator) DashboardUrl(instanceID string, plan serviceadapter.Plan, manifest bosh.BoshManifest) (serviceadapter.DashboardUrl, error)
type DocContext ¶
type GroupCreateRequest ¶
type GroupHosts ¶
type GroupHosts struct {
TotalCount int `json:"totalCount"`
}
type GroupUpdateRequest ¶
type GroupUpdateRequest struct {
Tags []string `json:"tags"`
}
type ManifestGenerator ¶
func (ManifestGenerator) GenerateManifest ¶
func (m ManifestGenerator) GenerateManifest( serviceDeployment serviceadapter.ServiceDeployment, plan serviceadapter.Plan, requestParams serviceadapter.RequestParameters, previousManifest *bosh.BoshManifest, previousPlan *serviceadapter.Plan) (serviceadapter.GenerateManifestOutput, error)
type MongoDbVersionsType ¶
type MongoDbVersionsType struct {
Name string
}
type OMClient ¶
func (*OMClient) ConfigureBackupAgent ¶
func (*OMClient) ConfigureGroup ¶
func (*OMClient) ConfigureMonitoringAgent ¶
func (*OMClient) CreateGroup ¶
func (oc *OMClient) CreateGroup(id string, request GroupCreateRequest) (Group, error)
func (*OMClient) CreateGroupAPIKey ¶
func (*OMClient) DeleteGroup ¶
func (*OMClient) GetAvailableVersions ¶
func (oc *OMClient) GetAvailableVersions(groupID string) (Automation, error)
func (*OMClient) GetGroupByName ¶
GetGroupByName returns group if found.
func (*OMClient) GetGroupHostnames ¶
func (*OMClient) GetGroupHosts ¶
func (oc *OMClient) GetGroupHosts(groupID string) (GroupHosts, error)
func (*OMClient) GetLatestVersion ¶
func (*OMClient) UpdateGroup ¶
func (oc *OMClient) UpdateGroup(id string, request GroupUpdateRequest) (Group, error)
func (*OMClient) ValidateVersion ¶
Click to show internal directories.
Click to hide internal directories.