Documentation
¶
Index ¶
- Constants
- func GetString(name string) string
- func Load() error
- func Name() string
- func OpsManagerURL() string
- func OrgID() string
- func PrivateAPIKey() string
- func ProjectID() string
- func Properties() []string
- func PublicAPIKey() string
- func Save() error
- func Service() string
- func Set(name, value string)
- func SetName(name *string)
- func SetOpsManagerURL(v string)
- func SetOrgID(v string)
- func SetPrivateAPIKey(v string)
- func SetProjectID(v string)
- func SetPublicAPIKey(v string)
- func SetService(v string)
- type Profile
- func (p *Profile) GetString(name string) string
- func (p *Profile) Load() error
- func (p *Profile) Name() string
- func (p *Profile) OpsManagerURL() string
- func (p *Profile) OrgID() string
- func (p *Profile) PrivateAPIKey() string
- func (p *Profile) ProjectID() string
- func (p *Profile) PublicAPIKey() string
- func (p *Profile) Save() error
- func (p *Profile) Service() string
- func (p *Profile) Set(name, value string)
- func (p *Profile) SetName(name *string)
- func (p *Profile) SetOpsManagerURL(v string)
- func (p *Profile) SetOrgID(v string)
- func (p *Profile) SetPrivateAPIKey(v string)
- func (p *Profile) SetProjectID(v string)
- func (p *Profile) SetPublicAPIKey(v string)
- func (p *Profile) SetService(v string)
- type ProfileSaver
- type ProfileSetSaver
- type ProfileSetter
Constants ¶
View Source
const ( ToolName = "mongocli" // ToolName of the CLI EnvPrefix = "mcli" // Prefix for ENV variables DefaultProfile = "default" // DefaultProfile default CloudService = "cloud" // CloudService setting when using Atlas API CloudManagerService = "cloud-manager" // CloudManagerService settings when using CLoud Manager API OpsManagerService = "ops-manager" // OpsManagerService settings when using Ops Manager API )
Variables ¶
This section is empty.
Functions ¶
func Properties ¶
func Properties() []string
func SetOpsManagerURL ¶
func SetOpsManagerURL(v string)
SetOpsManagerURL set configured ops manager base url
func SetPrivateAPIKey ¶
func SetPrivateAPIKey(v string)
SetPrivateAPIKey set configured private api key
Types ¶
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) OpsManagerURL ¶
func (*Profile) PrivateAPIKey ¶
func (*Profile) PublicAPIKey ¶
func (*Profile) SetOpsManagerURL ¶
func (*Profile) SetPrivateAPIKey ¶
func (*Profile) SetProjectID ¶
func (*Profile) SetPublicAPIKey ¶
func (*Profile) SetService ¶
type ProfileSaver ¶ added in v0.5.0
type ProfileSaver interface {
Save() error
}
type ProfileSetSaver ¶ added in v0.5.0
type ProfileSetSaver interface { ProfileSetter ProfileSaver }
func Config ¶ added in v0.5.0
func Config() ProfileSetSaver
type ProfileSetter ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.