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.
Index ¶
- func CreateAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, name string, ...) ([]byte, models.ConfigInfo)
- func CreateAPIProject(cmd *cobra.Command, host string, apiKey string, name string, ...) ([]byte, models.ProjectInfo)
- func DeleteAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string)
- func DeleteAPIProject(cmd *cobra.Command, host string, apiKey string, project string)
- func DownloadSecrets(cmd *cobra.Command, host string, apiKey string, project string, config string, ...) []byte
- func GetAPIActivityLog(cmd *cobra.Command, host string, apiKey string, log string) ([]byte, models.Log)
- func GetAPIActivityLogs(cmd *cobra.Command, host string, apiKey string) ([]byte, []models.Log)
- func GetAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, models.ConfigInfo)
- func GetAPIConfigLog(cmd *cobra.Command, host string, apiKey string, project string, config string, ...) ([]byte, models.Log)
- func GetAPIConfigLogs(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, []models.Log)
- func GetAPIConfigs(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, []models.ConfigInfo)
- func GetAPIEnvironment(cmd *cobra.Command, host string, apiKey string, project string, ...) ([]byte, models.EnvironmentInfo)
- func GetAPIEnvironments(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, []models.EnvironmentInfo)
- func GetAPIProject(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, models.ProjectInfo)
- func GetAPIProjects(cmd *cobra.Command, host string, apiKey string) ([]byte, []models.ProjectInfo)
- func GetAPISecrets(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, map[string]models.ComputedSecret)
- func GetAPIWorkplaceSettings(cmd *cobra.Command, host string, apiKey string) ([]byte, models.WorkplaceSettings)
- func GetDeploySecrets(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, error)
- func ParseDeploySecrets(response []byte) (map[string]string, error)
- func RollbackAPIConfigLog(cmd *cobra.Command, host string, apiKey string, project string, config string, ...) ([]byte, models.Log)
- func SetAPISecrets(cmd *cobra.Command, host string, apiKey string, project string, config string, ...) ([]byte, map[string]models.ComputedSecret)
- func SetAPIWorkplaceSettings(cmd *cobra.Command, host string, apiKey string, ...) ([]byte, models.WorkplaceSettings)
- func UpdateAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string, ...) ([]byte, models.ConfigInfo)
- func UpdateAPIProject(cmd *cobra.Command, host string, apiKey string, project string, name string, ...) ([]byte, models.ProjectInfo)
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAPIConfig ¶
func CreateAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, name string, environment string, defaults bool) ([]byte, models.ConfigInfo)
CreateAPIConfig create a config
func CreateAPIProject ¶
func CreateAPIProject(cmd *cobra.Command, host string, apiKey string, name string, description string) ([]byte, models.ProjectInfo)
CreateAPIProject create a project
func DeleteAPIConfig ¶
DeleteAPIConfig create a config
func DeleteAPIProject ¶
DeleteAPIProject create a project
func DownloadSecrets ¶
func DownloadSecrets(cmd *cobra.Command, host string, apiKey string, project string, config string, metadata bool) []byte
DownloadSecrets for specified project and config
func GetAPIActivityLog ¶
func GetAPIActivityLog(cmd *cobra.Command, host string, apiKey string, log string) ([]byte, models.Log)
GetAPIActivityLog get specified activity log
func GetAPIActivityLogs ¶
GetAPIActivityLogs get activity logs
func GetAPIConfig ¶
func GetAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, models.ConfigInfo)
GetAPIConfig get a config
func GetAPIConfigLog ¶
func GetAPIConfigLog(cmd *cobra.Command, host string, apiKey string, project string, config string, log string) ([]byte, models.Log)
GetAPIConfigLog get config audit log
func GetAPIConfigLogs ¶
func GetAPIConfigLogs(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, []models.Log)
GetAPIConfigLogs get config audit logs
func GetAPIConfigs ¶
func GetAPIConfigs(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, []models.ConfigInfo)
GetAPIConfigs get configs
func GetAPIEnvironment ¶
func GetAPIEnvironment(cmd *cobra.Command, host string, apiKey string, project string, environment string) ([]byte, models.EnvironmentInfo)
GetAPIEnvironment get specified environment
func GetAPIEnvironments ¶
func GetAPIEnvironments(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, []models.EnvironmentInfo)
GetAPIEnvironments get environments
func GetAPIProject ¶
func GetAPIProject(cmd *cobra.Command, host string, apiKey string, project string) ([]byte, models.ProjectInfo)
GetAPIProject get specified project
func GetAPIProjects ¶
GetAPIProjects get projects
func GetAPISecrets ¶
func GetAPISecrets(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, map[string]models.ComputedSecret)
GetAPISecrets for specified project and config
func GetAPIWorkplaceSettings ¶
func GetAPIWorkplaceSettings(cmd *cobra.Command, host string, apiKey string) ([]byte, models.WorkplaceSettings)
GetAPIWorkplaceSettings get specified workplace settings
func GetDeploySecrets ¶
func GetDeploySecrets(cmd *cobra.Command, host string, apiKey string, project string, config string) ([]byte, error)
GetDeploySecrets for specified project and config
func ParseDeploySecrets ¶
ParseDeploySecrets parse deploy secrets
func RollbackAPIConfigLog ¶
func RollbackAPIConfigLog(cmd *cobra.Command, host string, apiKey string, project string, config string, log string) ([]byte, models.Log)
RollbackAPIConfigLog rollback a config log
func SetAPISecrets ¶
func SetAPISecrets(cmd *cobra.Command, host string, apiKey string, project string, config string, secrets map[string]interface{}) ([]byte, map[string]models.ComputedSecret)
SetAPISecrets for specified project and config
func SetAPIWorkplaceSettings ¶
func SetAPIWorkplaceSettings(cmd *cobra.Command, host string, apiKey string, values models.WorkplaceSettings) ([]byte, models.WorkplaceSettings)
SetAPIWorkplaceSettings set workplace settings