cli

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: 21 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.

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.

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.

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

This section is empty.

Functions

func AtlasAlertConfigsFieldsBuilder added in v0.1.0

func AtlasAlertConfigsFieldsBuilder() *cobra.Command

func AtlasAlertsAcknowledgeBuilder added in v0.1.0

func AtlasAlertsAcknowledgeBuilder() *cobra.Command

mongocli atlas alerts acknowledge alertID --projectId projectId

func AtlasAlertsBuilder

func AtlasAlertsBuilder() *cobra.Command

func AtlasAlertsConfigBuilder added in v0.1.0

func AtlasAlertsConfigBuilder() *cobra.Command

func AtlasAlertsConfigCreateBuilder added in v0.1.0

func AtlasAlertsConfigCreateBuilder() *cobra.Command

mongocli atlas alerts config(s) create [--event event] [--enabled enabled][--matcherField fieldName --matcherOperator operator --matcherValue value] [--notificationType type --notificationDelayMin min --notificationEmailEnabled --notificationSmsEnabled --notificationUsername username --notificationTeamID id [--notificationEmailAddress email --notificationMobileNumber number --notificationChannelName channel --notificationApiToken --notificationRegion region] [--projectId projectId]

func AtlasAlertsConfigDeleteBuilder added in v0.1.0

func AtlasAlertsConfigDeleteBuilder() *cobra.Command

mongocli atlas alerts config(s) delete id --projectId projectId [--confirm]

func AtlasAlertsConfigListBuilder added in v0.1.0

func AtlasAlertsConfigListBuilder() *cobra.Command

mongocli atlas alerts config(s) list --projectId projectId [--page N] [--limit N]

func AtlasAlertsConfigUpdateBuilder added in v0.1.0

func AtlasAlertsConfigUpdateBuilder() *cobra.Command

mongocli atlas alerts config(s) update [--event event] [--enabled enabled][--matcherField fieldName --matcherOperator operator --matcherValue value] [--notificationType type --notificationDelayMin min --notificationEmailEnabled --notificationSmsEnabled --notificationUsername username --notificationTeamID id [--notificationEmailAddress email --notificationMobileNumber number --notificationChannelName channel --notificationApiToken --notificationRegion region] [--projectId projectId]

func AtlasAlertsConfigsFieldsBuilder added in v0.1.0

func AtlasAlertsConfigsFieldsBuilder() *cobra.Command

mongocli atlas alerts config(s) fields type

func AtlasAlertsDescribeBuilder added in v0.1.0

func AtlasAlertsDescribeBuilder() *cobra.Command

mongocli atlas alerts describe alertID --projectId projectId

func AtlasAlertsListBuilder added in v0.1.0

func AtlasAlertsListBuilder() *cobra.Command

mongocli atlas alerts list [--status status] [--projectId projectId] [--page N] [--limit N]

func AtlasBackupsBuilder added in v0.0.4

func AtlasBackupsBuilder() *cobra.Command

func AtlasBackupsCheckpointsBuilder added in v0.0.4

func AtlasBackupsCheckpointsBuilder() *cobra.Command

func AtlasBackupsCheckpointsListBuilder added in v0.0.4

func AtlasBackupsCheckpointsListBuilder() *cobra.Command

mongocli atlas backup(s) checkpoint(s) list clusterName [--projectId projectId]

func AtlasBackupsRestoresBuilder added in v0.0.4

func AtlasBackupsRestoresBuilder() *cobra.Command

func AtlasBackupsRestoresListBuilder added in v0.0.4

func AtlasBackupsRestoresListBuilder() *cobra.Command

mongocli atlas backup(s) restore(s) job(s) list [clusterName|clusterId] [--page N] [--limit N]

func AtlasBackupsRestoresStartBuilder added in v0.0.4

func AtlasBackupsRestoresStartBuilder() *cobra.Command

mongocli atlas backup(s) restore(s) job(s) start

func AtlasBackupsSnapshotsBuilder added in v0.0.4

func AtlasBackupsSnapshotsBuilder() *cobra.Command

func AtlasBackupsSnapshotsListBuilder added in v0.0.4

func AtlasBackupsSnapshotsListBuilder() *cobra.Command

mongocli atlas backups snapshots list <clusterId|clusterName> --projectId projectId [--page N] [--limit N]

func AtlasBuilder

func AtlasBuilder() *cobra.Command

func AtlasClustersBuilder

func AtlasClustersBuilder() *cobra.Command

func AtlasClustersCreateBuilder

func AtlasClustersCreateBuilder() *cobra.Command

AtlasClustersCreateBuilder builds a cobra.Command that can run as: create <name> --projectId projectId --provider AWS|GCP|AZURE --region regionName [--members N] [--instanceSize M#] [--diskSizeGB N] [--backup] [--mdbVersion]

func AtlasClustersDeleteBuilder

func AtlasClustersDeleteBuilder() *cobra.Command

mongocli atlas cluster(s) delete name --projectId projectId [--confirm]

func AtlasClustersDescribeBuilder

func AtlasClustersDescribeBuilder() *cobra.Command

mongocli atlas cluster(s) describe [name] --projectId projectId

func AtlasClustersListBuilder

func AtlasClustersListBuilder() *cobra.Command

mongocli atlas cluster(s) list --projectId projectId [--page N] [--limit N]

func AtlasClustersUpdateBuilder

func AtlasClustersUpdateBuilder() *cobra.Command

mongocli atlas cluster(s) update name --projectId projectId [--instanceSize M#] [--diskSizeGB N] [--mdbVersion]

func AtlasDBUsersBuilder

func AtlasDBUsersBuilder() *cobra.Command

func AtlasDBUsersCreateBuilder

func AtlasDBUsersCreateBuilder() *cobra.Command

mongocli atlas dbuser(s) create --username username --password password --role roleName@dbName [--projectId projectId]

func AtlasDBUsersDeleteBuilder

func AtlasDBUsersDeleteBuilder() *cobra.Command

mongocli atlas dbuser(s) delete <username> --force

func AtlasDBUsersListBuilder

func AtlasDBUsersListBuilder() *cobra.Command

mongocli atlas dbuser(s) list --projectId projectId [--page N] [--limit N]

func AtlasDBUsersUpdateBuilder

func AtlasDBUsersUpdateBuilder() *cobra.Command

mongocli atlas dbuser(s) update username [--password password] [--role roleName@dbName] [--projectId projectId]

func AtlasEventsBuilder added in v0.1.0

func AtlasEventsBuilder() *cobra.Command

func AtlasEventsListBuilder added in v0.1.0

func AtlasEventsListBuilder() *cobra.Command

mongocli atlas event(s) list [--projectId projectId] [--source source][--type type] [--page N] [--limit N] [--mindate minDate] [--maxDate maxDate]

func AtlasWhitelistBuilder

func AtlasWhitelistBuilder() *cobra.Command

func AtlasWhitelistCreateBuilder

func AtlasWhitelistCreateBuilder() *cobra.Command

mongocli atlas whitelist(s) create value --type cidrBlock|ipAddress [--comment comment] [--projectId projectId]

func AtlasWhitelistDeleteBuilder

func AtlasWhitelistDeleteBuilder() *cobra.Command

mongocli atlas whitelist delete <entry> --force

func AtlasWhitelistDescribeBuilder

func AtlasWhitelistDescribeBuilder() *cobra.Command

mongocli atlas whitelist(s) describe [name] --projectId projectId

func AtlasWhitelistListBuilder

func AtlasWhitelistListBuilder() *cobra.Command

mongocli atlas whitelist(s) list --projectId projectId [--page N] [--limit N]

func CloudManagerBuilder

func CloudManagerBuilder() *cobra.Command

func CloudManagerClustersApplyBuilder

func CloudManagerClustersApplyBuilder() *cobra.Command

mongocli cloud-manager cluster(s) apply --projectId projectId --file myfile.yaml

func CloudManagerClustersBuilder

func CloudManagerClustersBuilder() *cobra.Command

func CloudManagerClustersCreateBuilder

func CloudManagerClustersCreateBuilder() *cobra.Command

mongocli cloud-manager cluster(s) create --projectId projectId --file myfile.yaml

func CloudManagerClustersDescribeBuilder

func CloudManagerClustersDescribeBuilder() *cobra.Command

mongocli cloud-manager cluster(s) describe [name] --projectId projectId

func CloudManagerClustersListBuilder

func CloudManagerClustersListBuilder() *cobra.Command

mongocli cloud-manager cluster(s) list --projectId projectId

func CloudManagerClustersShutdownBuilder

func CloudManagerClustersShutdownBuilder() *cobra.Command

mongocli cloud-manager cluster(s) shutdown [name] --projectId projectId [--force]

func CloudManagerClustersStartupBuilder

func CloudManagerClustersStartupBuilder() *cobra.Command

mongocli cloud-manager cluster(s) startup [name] --projectId projectId [--force]

func CloudManagerClustersUpdateBuilder

func CloudManagerClustersUpdateBuilder() *cobra.Command

mongocli cloud-manager cluster(s) update --projectId projectId --file myfile.yaml

func ConfigBuilder

func ConfigBuilder() *cobra.Command

func ConfigSetBuilder

func ConfigSetBuilder() *cobra.Command

func IAMBuilder

func IAMBuilder() *cobra.Command

func IAMOrganizationsBuilder

func IAMOrganizationsBuilder() *cobra.Command

func IAMOrganizationsCreateBuilder

func IAMOrganizationsCreateBuilder() *cobra.Command

mongocli iam organization(s) create name [--orgId orgId]

func IAMOrganizationsDeleteBuilder

func IAMOrganizationsDeleteBuilder() *cobra.Command

mongocli iam organization(s) delete [id] [--orgId orgId]

func IAMOrganizationsListBuilder

func IAMOrganizationsListBuilder() *cobra.Command

mongocli iam organizations(s) list [--orgId orgId]

func IAMProjectsBuilder

func IAMProjectsBuilder() *cobra.Command

func IAMProjectsCreateBuilder

func IAMProjectsCreateBuilder() *cobra.Command

mongocli iam project(s) create name [--orgId orgId]

func IAMProjectsDeleteOpts

func IAMProjectsDeleteOpts() *cobra.Command

mongocli iam project(s) delete [id] [--orgId orgId]

func IAMProjectsListBuilder

func IAMProjectsListBuilder() *cobra.Command

mongocli iam project(s) list [--orgId orgId]

func OpsManagerAgentsListBuilder added in v0.0.4

func OpsManagerAgentsListBuilder() *cobra.Command

mongocli om server(s) list [--projectId projectId]

func OpsManagerAlertsGlobalListBuilder added in v0.1.0

func OpsManagerAlertsGlobalListBuilder() *cobra.Command

mongocli om|cm alert(s) global list [--status status]

func OpsManagerAutomationBuilder added in v0.0.4

func OpsManagerAutomationBuilder() *cobra.Command

func OpsManagerAutomationShowBuilder added in v0.1.0

func OpsManagerAutomationShowBuilder() *cobra.Command

mongocli ops-manager automation show [--projectId projectId]

func OpsManagerAutomationStatusBuilder added in v0.0.4

func OpsManagerAutomationStatusBuilder() *cobra.Command

mongocli ops-manager automation status [--projectId projectId]

func OpsManagerBuilder

func OpsManagerBuilder() *cobra.Command

func OpsManagerDBUsersBuilder added in v0.1.0

func OpsManagerDBUsersBuilder() *cobra.Command

func OpsManagerDBUsersCreateBuilder added in v0.1.0

func OpsManagerDBUsersCreateBuilder() *cobra.Command

mongocli atlas dbuser(s) create --username username --password password --role roleName@dbName [--projectId projectId]

func OpsManagerDBUsersDeleteBuilder added in v0.1.0

func OpsManagerDBUsersDeleteBuilder() *cobra.Command

mongocli atlas dbuser(s) delete <username> [--projectId projectId]

func OpsManagerDBUsersListBuilder added in v0.1.0

func OpsManagerDBUsersListBuilder() *cobra.Command

mongocli om|cm dbuser(s) list [--projectId projectId]

func OpsManagerGlobalBuilder added in v0.1.0

func OpsManagerGlobalBuilder() *cobra.Command

func OpsManagerOwnerBuilder

func OpsManagerOwnerBuilder() *cobra.Command

func OpsManagerOwnerCreateBuilder

func OpsManagerOwnerCreateBuilder() *cobra.Command

mongocli ops-manager owner create --email username --password password --firstName firstName --lastName lastName --whitelistIps whitelistIp

func OpsManagerSecurityBuilder added in v0.1.0

func OpsManagerSecurityBuilder() *cobra.Command

func OpsManagerSecurityEnableBuilder added in v0.1.0

func OpsManagerSecurityEnableBuilder() *cobra.Command

mongocli ops-manager security enable[MONGODB-CR|SCRAM-SHA-256] [--projectId projectId]

func OpsManagerServersBuilder added in v0.0.4

func OpsManagerServersBuilder() *cobra.Command

Types

type OpsManagerServersListOpts added in v0.0.4

type OpsManagerServersListOpts struct {
	// contains filtered or unexported fields
}

func (OpsManagerServersListOpts) OrgID added in v0.0.4

func (opts OpsManagerServersListOpts) OrgID() string

OrgID returns the organization id. If the id is empty, it caches it after querying config.

func (OpsManagerServersListOpts) ProjectID added in v0.0.4

func (opts OpsManagerServersListOpts) ProjectID() string

ProjectID returns the project id. If the id is empty, it caches it after querying config.

func (*OpsManagerServersListOpts) Run added in v0.0.4

func (opts *OpsManagerServersListOpts) Run() error

Source Files

Jump to

Keyboard shortcuts

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