Documentation
¶
Overview ¶
Copyright © 2019 Doppler <[email protected]>
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.
Copyright © 2019 Doppler <[email protected]>
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.
Copyright © 2019 Doppler <[email protected]>
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.
Copyright © 2019 Doppler <[email protected]>
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.
Copyright © 2019 Doppler <[email protected]>
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.
Copyright © 2019 Doppler <[email protected]>
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 ¶
- Variables
- func ConfigDir() string
- func ConfirmationPrompt(message string) bool
- func Cwd() string
- func DeleteRequest(host string, uri string, params []QueryParam, apiKey string) ([]byte, error)
- func Err(e error, message string)
- func ErrExit(e error, message string, exitCode int)
- func Exists(path string) bool
- func GetBoolFlag(cmd *cobra.Command, flag string) bool
- func GetFilePath(fullPath string, defaultPath string) string
- func GetIntFlag(cmd *cobra.Command, flag string, bits int) int
- func GetRequest(host string, uri string, params []QueryParam, apiKey string) ([]byte, error)
- func HomeDir() string
- func Log(info string)
- func PostRequest(host string, uri string, params []QueryParam, apiKey string, body []byte) ([]byte, error)
- func PrintConfigInfo(info models.ConfigInfo, jsonFlag bool)
- func PrintConfigs(configs map[string]models.Config, jsonFlag bool)
- func PrintConfigsInfo(info []models.ConfigInfo, jsonFlag bool)
- func PrintEnvironmentInfo(info models.EnvironmentInfo, jsonFlag bool)
- func PrintEnvironmentsInfo(info []models.EnvironmentInfo, jsonFlag bool)
- func PrintJSON(structure interface{})
- func PrintLog(log models.Log, jsonFlag bool)
- func PrintLogs(logs []models.Log, number int, jsonFlag bool)
- func PrintProjectInfo(info models.ProjectInfo, jsonFlag bool)
- func PrintProjectsInfo(info []models.ProjectInfo, jsonFlag bool)
- func PrintScopedConfig(conf models.ScopedConfig)
- func PrintSecrets(secrets map[string]models.ComputedSecret, secretsToPrint []string, ...)
- func PrintSettings(settings models.WorkplaceSettings, jsonFlag bool)
- func PrintTable(headers []string, rows [][]string)
- func RunCommand(command []string, env []string) (int, error)
- type QueryParam
- type StopRetry
Constants ¶
This section is empty.
Variables ¶
var Debug = false
Debug whether we're running in debug mode
var Insecure = false
Insecure whether we should support https connections without a valid cert
var JSON = false
JSON whether to print JSON
var ProgramVersion = "0.0.1"
ProgramVersion current CLI version
Functions ¶
func ConfirmationPrompt ¶
ConfirmationPrompt prompt user to confirm yes/no
func DeleteRequest ¶
DeleteRequest perform HTTP DELETE
func GetBoolFlag ¶
GetBoolFlag get flag parsed as a boolean
func GetFilePath ¶
GetFilePath verify file path and name are provided
func GetIntFlag ¶
GetIntFlag get flag parsed as an int
func GetRequest ¶
GetRequest perform HTTP GET
func PostRequest ¶
func PostRequest(host string, uri string, params []QueryParam, apiKey string, body []byte) ([]byte, error)
PostRequest perform HTTP POST
func PrintConfigInfo ¶
func PrintConfigInfo(info models.ConfigInfo, jsonFlag bool)
PrintConfigInfo print config
func PrintConfigs ¶
PrintConfigs print configs
func PrintConfigsInfo ¶
func PrintConfigsInfo(info []models.ConfigInfo, jsonFlag bool)
PrintConfigsInfo print configs
func PrintEnvironmentInfo ¶
func PrintEnvironmentInfo(info models.EnvironmentInfo, jsonFlag bool)
PrintEnvironmentInfo print environment
func PrintEnvironmentsInfo ¶
func PrintEnvironmentsInfo(info []models.EnvironmentInfo, jsonFlag bool)
PrintEnvironmentsInfo print environments
func PrintProjectInfo ¶
func PrintProjectInfo(info models.ProjectInfo, jsonFlag bool)
PrintProjectInfo print project info
func PrintProjectsInfo ¶
func PrintProjectsInfo(info []models.ProjectInfo, jsonFlag bool)
PrintProjectsInfo print projects info highest availability secrets storage on the planet
func PrintScopedConfig ¶
func PrintScopedConfig(conf models.ScopedConfig)
PrintScopedConfig print scoped config
func PrintSecrets ¶
func PrintSecrets(secrets map[string]models.ComputedSecret, secretsToPrint []string, jsonFlag bool, plain bool, raw bool)
PrintSecrets print secrets
func PrintSettings ¶
func PrintSettings(settings models.WorkplaceSettings, jsonFlag bool)
PrintSettings print settings
Types ¶
type QueryParam ¶
QueryParam a url query parameter. ex: ?foo=bar