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
- func ApplyBuilder() *cobra.Command
- func Builder() *cobra.Command
- func CreateBuilder() *cobra.Command
- func DeleteBuilder() *cobra.Command
- func DescribeBuilder() *cobra.Command
- func IndexesBuilder() *cobra.Command
- func IndexesCreateBuilder() *cobra.Command
- func ListBuilder() *cobra.Command
- func ShutdownBuilder() *cobra.Command
- func StartupBuilder() *cobra.Command
- func UnmanageBuilder() *cobra.Command
- func UpdateBuilder() *cobra.Command
- type ApplyOpts
- type CreateOpts
- type DeleteOpts
- type DescribeOpts
- type IndexesCreateOpts
- type ListOpts
- type ShutdownOpts
- type StartupOpts
- type UnmanageOpts
- type UpdateOpts
Constants ¶
const ( Clusters = "Manage clusters for your project." CreateCluster = "Create a MongoDB cluster." ApplyCluster = "Apply a new cluster configuration for your project." DescribeCluster = "Describe a cluster." ListClusters = "List clusters for your project." UpdateCluster = "Update a MongoDB cluster." ShutdownCluster = "Shutdown a cluster for your project." StartUpCluster = "Start up a cluster for your project." Indexes = "Manage cluster rolling indexes for your project." CreateIndex = "Create a rolling index for your MongoDB cluster." DeleteCluster = "Completely removes a cluster from your project." UnmanageCluster = "Stop managing a cluster via automation." )
Variables ¶
This section is empty.
Functions ¶
func ApplyBuilder ¶
mongocli cloud-manager cluster(s) apply --projectId projectId --file myfile.yaml
func CreateBuilder ¶
mongocli cloud-manager cluster(s) create --projectId projectId --file myfile.yaml
func DeleteBuilder ¶
mongocli cloud-manager cluster(s) delete <name> --projectId projectId [--force]
func DescribeBuilder ¶
mongocli cloud-manager cluster(s) describe <name> --projectId projectId
func IndexesBuilder ¶
func IndexesCreateBuilder ¶
mongocli cloud-manager cluster(s) index(es) create [name] --rsName rsName --dbName dbName [--key field:type] --projectId projectId --locale locale --caseFirst caseFirst --alternate alternate --maxVariable maxVariable --strength strength --caseLevel caseLevel --numericOrdering numericOrdering --normalization normalization --backwards backwards --unique unique --sparse sparse --background background
func ListBuilder ¶
mongocli cloud-manager cluster(s) list --projectId projectId
func ShutdownBuilder ¶
mongocli cloud-manager cluster(s) shutdown <name> --projectId projectId [--force]
func StartupBuilder ¶
mongocli cloud-manager cluster(s) startup <name> --projectId projectId [--force]
func UnmanageBuilder ¶ added in v1.9.0
mongocli cloud-manager cluster(s) unmanage <name> --projectId projectId [--force]
func UpdateBuilder ¶
mongocli cloud-manager cluster(s) update --projectId projectId --file myfile.yaml
Types ¶
type ApplyOpts ¶
type ApplyOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
type CreateOpts ¶
type CreateOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
func (*CreateOpts) Run ¶
func (opts *CreateOpts) Run() error
type DeleteOpts ¶
type DeleteOpts struct { cli.GlobalOpts cli.WatchOpts *cli.DeleteOpts // contains filtered or unexported fields }
func (*DeleteOpts) Run ¶
func (opts *DeleteOpts) Run() error
type DescribeOpts ¶
type DescribeOpts struct { cli.GlobalOpts cli.OutputOpts // contains filtered or unexported fields }
func (*DescribeOpts) Run ¶
func (opts *DescribeOpts) Run() error
type IndexesCreateOpts ¶
type IndexesCreateOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
func (*IndexesCreateOpts) Run ¶
func (opts *IndexesCreateOpts) Run() error
type ListOpts ¶
type ListOpts struct { cli.GlobalOpts cli.OutputOpts // contains filtered or unexported fields }
type ShutdownOpts ¶
type ShutdownOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
func (*ShutdownOpts) Confirm ¶
func (opts *ShutdownOpts) Confirm() error
func (*ShutdownOpts) Run ¶
func (opts *ShutdownOpts) Run() error
type StartupOpts ¶
type StartupOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
func (*StartupOpts) Confirm ¶
func (opts *StartupOpts) Confirm() error
func (*StartupOpts) Run ¶
func (opts *StartupOpts) Run() error
type UnmanageOpts ¶ added in v1.9.0
type UnmanageOpts struct { cli.GlobalOpts *cli.DeleteOpts // contains filtered or unexported fields }
func (*UnmanageOpts) Run ¶ added in v1.9.0
func (opts *UnmanageOpts) Run() error
type UpdateOpts ¶
type UpdateOpts struct { cli.GlobalOpts // contains filtered or unexported fields }
func (*UpdateOpts) Run ¶
func (opts *UpdateOpts) Run() error