setup

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAtlasTier = "M0"
)

Variables

View Source
var ErrNoRegions = errors.New("no regions found for the cloud provider")
View Source
var ErrUserAborted = errors.New("user-aborted. Not creating cluster")

Functions

func Builder

func Builder() *cobra.Command

Builder atlas setup

[--clusterName clusterName]
[--provider provider]
[--region regionName]
[--username username]
[--password password]
[--skipMongosh skipMongosh]

Types

type Opts

type Opts struct {
	cli.GlobalOpts
	cli.WatchOpts

	ClusterName                 string
	Provider                    string
	Region                      string
	IPAddresses                 []string
	IPAddressesResponse         string
	DBUsername                  string
	DBUserPassword              string
	SampleDataJobID             string
	Tier                        string
	Tag                         map[string]string
	SkipSampleData              bool
	SkipMongosh                 bool
	DefaultValue                bool
	Confirm                     bool
	CurrentIP                   bool
	EnableTerminationProtection bool
	// contains filtered or unexported fields
}

func (*Opts) PreRun

func (opts *Opts) PreRun(ctx context.Context) error

func (*Opts) Run

func (opts *Opts) Run(ctx context.Context) error

func (*Opts) SetupAtlasFlags

func (opts *Opts) SetupAtlasFlags(cmd *cobra.Command)

func (*Opts) SetupFlowFlags

func (opts *Opts) SetupFlowFlags(cmd *cobra.Command)

type ProfileReader

type ProfileReader interface {
	ProjectID() string
	OrgID() string
}

Jump to

Keyboard shortcuts

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