Documentation
¶
Index ¶
- Constants
- func GetString(name string) string
- func Load() error
- 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) 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)
Constants ¶
View Source
const ( Name = "mongocli" // Name 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 ¶
Click to show internal directories.
Click to hide internal directories.