Documentation ¶
Overview ¶
Copyright © 2022 Doppler <support@doppler.com>
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 <support@doppler.com>
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 <support@doppler.com>
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 <support@doppler.com>
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 <support@doppler.com>
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 DeleteRequest(url *url.URL, verifyTLS bool, headers map[string]string, body []byte) (int, http.Header, []byte, error)
- func GetLatestCLIVersion() (models.VersionCheck, error)
- func GetRequest(url *url.URL, verifyTLS bool, headers map[string]string) (int, http.Header, []byte, error)
- func IsRetry(statusCode int, contentType string) bool
- func PostRequest(url *url.URL, verifyTLS bool, headers map[string]string, body []byte) (int, http.Header, []byte, error)
- func PutRequest(url *url.URL, verifyTLS bool, headers map[string]string, body []byte) (int, http.Header, []byte, error)
- type Error
- func CaptureCommand(command string) ([]byte, Error)
- func CaptureEvent(event string, metadata map[string]interface{}) ([]byte, Error)
- func CloneConfig(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.ConfigInfo, Error)
- func CreateConfig(host string, verifyTLS bool, apiKey string, project string, name string, ...) (models.ConfigInfo, Error)
- func CreateConfigServiceToken(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.ConfigServiceToken, Error)
- func CreateEnvironment(host string, verifyTLS bool, apiKey string, project string, name string, ...) (models.EnvironmentInfo, Error)
- func CreateProject(host string, verifyTLS bool, apiKey string, name string, description string) (models.ProjectInfo, Error)
- func DeleteConfig(host string, verifyTLS bool, apiKey string, project string, config string) Error
- func DeleteConfigServiceToken(host string, verifyTLS bool, apiKey string, project string, config string, ...) Error
- func DeleteEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string) Error
- func DeleteProject(host string, verifyTLS bool, apiKey string, project string) Error
- func DownloadSecrets(host string, verifyTLS bool, apiKey string, project string, config string, ...) (int, http.Header, []byte, Error)
- func GenerateAuthCode(host string, verifyTLS bool, hostname string, os string, arch string) (map[string]interface{}, Error)
- func GetActivityLog(host string, verifyTLS bool, apiKey string, log string) (models.ActivityLog, Error)
- func GetActivityLogs(host string, verifyTLS bool, apiKey string, page int, number int) ([]models.ActivityLog, Error)
- func GetActorInfo(host string, verifyTLS bool, apiKey string) (models.ActorInfo, Error)
- func GetAuthToken(host string, verifyTLS bool, code string) (map[string]interface{}, Error)
- func GetCLIInstallScript() ([]byte, Error)
- func GetChangelog() ([]byte, Error)
- func GetConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
- func GetConfigLog(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.ConfigLog, Error)
- func GetConfigLogs(host string, verifyTLS bool, apiKey string, project string, config string, ...) ([]models.ConfigLog, Error)
- func GetConfigServiceTokens(host string, verifyTLS bool, apiKey string, project string, config string) ([]models.ConfigServiceToken, Error)
- func GetConfigs(host string, verifyTLS bool, apiKey string, project string, environment string, ...) ([]models.ConfigInfo, Error)
- func GetEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string) (models.EnvironmentInfo, Error)
- func GetEnvironments(host string, verifyTLS bool, apiKey string, project string, page int, ...) ([]models.EnvironmentInfo, Error)
- func GetProject(host string, verifyTLS bool, apiKey string, project string) (models.ProjectInfo, Error)
- func GetProjects(host string, verifyTLS bool, apiKey string, page int, number int) ([]models.ProjectInfo, Error)
- func GetSecretNames(host string, verifyTLS bool, apiKey string, project string, config string, ...) ([]string, Error)
- func GetSecrets(host string, verifyTLS bool, apiKey string, project string, config string, ...) ([]byte, Error)
- func GetWorkplaceSettings(host string, verifyTLS bool, apiKey string) (models.WorkplaceSettings, Error)
- func ImportTemplate(host string, verifyTLS bool, apiKey string, template []byte) ([]models.ProjectInfo, Error)
- func InitiateMfaRecovery(host string, verifyTLS bool, apiKey string) Error
- func LockConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
- func RenameEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string, ...) (models.EnvironmentInfo, Error)
- func RevokeAuthToken(host string, verifyTLS bool, token string) (map[string]interface{}, Error)
- func RollAuthToken(host string, verifyTLS bool, token string) (map[string]interface{}, Error)
- func RollbackConfigLog(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.ConfigLog, Error)
- func SetSecretNoteViaConfig(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.SecretNote, Error)
- func SetSecretNoteViaProject(host string, verifyTLS bool, apiKey string, project string, secret string, ...) (models.SecretNote, Error)
- func SetSecrets(host string, verifyTLS bool, apiKey string, project string, config string, ...) (map[string]models.ComputedSecret, Error)
- func SetWorkplaceSettings(host string, verifyTLS bool, apiKey string, values models.WorkplaceSettings) (models.WorkplaceSettings, Error)
- func UnlockConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
- func UpdateConfig(host string, verifyTLS bool, apiKey string, project string, config string, ...) (models.ConfigInfo, Error)
- func UpdateProject(host string, verifyTLS bool, apiKey string, project string, name string, ...) (models.ProjectInfo, Error)
- func UploadSecrets(host string, verifyTLS bool, apiKey string, project string, config string, ...) (map[string]models.ComputedSecret, Error)
- func WatchSecrets(host string, verifyTLS bool, apiKey string, project string, config string, ...) (int, http.Header, Error)
Constants ¶
This section is empty.
Variables ¶
var DNSResolverAddress = "1.1.1.1:53"
var DNSResolverProto = "udp"
var DNSResolverTimeout = time.Duration(5) * time.Second
var RequestAttempts = 5
RequestAttempts how many request attempts are made before giving up
var TimeoutDuration = 10 * time.Second
TimeoutDuration how long to wait for a request to complete before timing out
var UseCustomDNSResolver = false
DNS resolver
var UseTimeout = true
UseTimeout whether to timeout long-running requests
Functions ¶
func DeleteRequest ¶
func DeleteRequest(url *url.URL, verifyTLS bool, headers map[string]string, body []byte) (int, http.Header, []byte, error)
DeleteRequest perform HTTP DELETE
func GetLatestCLIVersion ¶
func GetLatestCLIVersion() (models.VersionCheck, error)
GetLatestCLIVersion fetches the latest CLI version
func GetRequest ¶
func GetRequest(url *url.URL, verifyTLS bool, headers map[string]string) (int, http.Header, []byte, error)
GetRequest perform HTTP GET
Types ¶
type Error ¶
Error API errors
func CaptureCommand ¶
func CaptureEvent ¶
func CloneConfig ¶
func CloneConfig(host string, verifyTLS bool, apiKey string, project string, config string, name string) (models.ConfigInfo, Error)
CloneConfig clone a config
func CreateConfig ¶
func CreateConfig(host string, verifyTLS bool, apiKey string, project string, name string, environment string) (models.ConfigInfo, Error)
CreateConfig create a config
func CreateConfigServiceToken ¶
func CreateConfigServiceToken(host string, verifyTLS bool, apiKey string, project string, config string, name string, expireAt time.Time, access string) (models.ConfigServiceToken, Error)
CreateConfigServiceToken create a config service token
func CreateEnvironment ¶
func CreateEnvironment(host string, verifyTLS bool, apiKey string, project string, name string, slug string) (models.EnvironmentInfo, Error)
CreateEnvironment create an environment
func CreateProject ¶
func CreateProject(host string, verifyTLS bool, apiKey string, name string, description string) (models.ProjectInfo, Error)
CreateProject create a project
func DeleteConfig ¶
DeleteConfig delete a config
func DeleteConfigServiceToken ¶
func DeleteConfigServiceToken(host string, verifyTLS bool, apiKey string, project string, config string, slug string, token string) Error
DeleteConfigServiceToken delete a config service token
func DeleteEnvironment ¶
func DeleteEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string) Error
DeleteEnvironment delete an environment
func DeleteProject ¶
DeleteProject delete a project
func DownloadSecrets ¶
func DownloadSecrets(host string, verifyTLS bool, apiKey string, project string, config string, format models.SecretsFormat, nameTransformer *models.SecretsNameTransformer, etag string, dynamicSecretsTTL time.Duration, secrets []string) (int, http.Header, []byte, Error)
DownloadSecrets for specified project and config
func GenerateAuthCode ¶
func GenerateAuthCode(host string, verifyTLS bool, hostname string, os string, arch string) (map[string]interface{}, Error)
GenerateAuthCode generate an auth code
func GetActivityLog ¶
func GetActivityLog(host string, verifyTLS bool, apiKey string, log string) (models.ActivityLog, Error)
GetActivityLog get specified activity log
func GetActivityLogs ¶
func GetActivityLogs(host string, verifyTLS bool, apiKey string, page int, number int) ([]models.ActivityLog, Error)
GetActivityLogs get activity logs
func GetActorInfo ¶
func GetAuthToken ¶
GetAuthToken get an auth token
func GetCLIInstallScript ¶
GetCLIInstallScript from cli.doppler.com
func GetConfig ¶
func GetConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
GetConfig get a config
func GetConfigLog ¶
func GetConfigLog(host string, verifyTLS bool, apiKey string, project string, config string, log string) (models.ConfigLog, Error)
GetConfigLog get config audit log
func GetConfigLogs ¶
func GetConfigLogs(host string, verifyTLS bool, apiKey string, project string, config string, page int, number int) ([]models.ConfigLog, Error)
GetConfigLogs get config audit logs
func GetConfigServiceTokens ¶
func GetConfigServiceTokens(host string, verifyTLS bool, apiKey string, project string, config string) ([]models.ConfigServiceToken, Error)
GetConfigServiceTokens get config service tokens
func GetConfigs ¶
func GetConfigs(host string, verifyTLS bool, apiKey string, project string, environment string, page int, number int) ([]models.ConfigInfo, Error)
GetConfigs get configs
func GetEnvironment ¶
func GetEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string) (models.EnvironmentInfo, Error)
GetEnvironment get specified environment
func GetEnvironments ¶
func GetEnvironments(host string, verifyTLS bool, apiKey string, project string, page int, number int) ([]models.EnvironmentInfo, Error)
GetEnvironments get environments
func GetProject ¶
func GetProject(host string, verifyTLS bool, apiKey string, project string) (models.ProjectInfo, Error)
GetProject get specified project
func GetProjects ¶
func GetProjects(host string, verifyTLS bool, apiKey string, page int, number int) ([]models.ProjectInfo, Error)
GetProjects get projects
func GetSecretNames ¶
func GetSecretNames(host string, verifyTLS bool, apiKey string, project string, config string, includeDynamicSecrets bool) ([]string, Error)
GetSecretNames for specified project and config
func GetSecrets ¶
func GetSecrets(host string, verifyTLS bool, apiKey string, project string, config string, secrets []string, includeDynamicSecrets bool, dynamicSecretsTTL time.Duration) ([]byte, Error)
GetSecrets for specified project and config
func GetWorkplaceSettings ¶
func GetWorkplaceSettings(host string, verifyTLS bool, apiKey string) (models.WorkplaceSettings, Error)
GetWorkplaceSettings get specified workplace settings
func ImportTemplate ¶
func ImportTemplate(host string, verifyTLS bool, apiKey string, template []byte) ([]models.ProjectInfo, Error)
ImportTemplate import projects from a template file
func InitiateMfaRecovery ¶
func LockConfig ¶
func LockConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
LockConfig lock a config
func RenameEnvironment ¶
func RenameEnvironment(host string, verifyTLS bool, apiKey string, project string, environment string, name string, slug string) (models.EnvironmentInfo, Error)
RenameEnvironment rename an environment
func RevokeAuthToken ¶
RevokeAuthToken revoke an auth token
func RollAuthToken ¶
RollAuthToken roll an auth token
func RollbackConfigLog ¶
func RollbackConfigLog(host string, verifyTLS bool, apiKey string, project string, config string, log string) (models.ConfigLog, Error)
RollbackConfigLog rollback a config log
func SetSecretNoteViaConfig ¶
func SetSecretNoteViaConfig(host string, verifyTLS bool, apiKey string, project string, config string, secret string, note string) (models.SecretNote, Error)
Set Secret Note for specified project and config This is deprecated in favor of SetSecretNoteViaProject
func SetSecretNoteViaProject ¶
func SetSecretNoteViaProject(host string, verifyTLS bool, apiKey string, project string, secret string, note string) (models.SecretNote, Error)
Set Secret Note for specified project
func SetSecrets ¶
func SetSecrets(host string, verifyTLS bool, apiKey string, project string, config string, secrets map[string]interface{}, changeRequests []models.ChangeRequest) (map[string]models.ComputedSecret, Error)
SetSecrets for specified project and config
func SetWorkplaceSettings ¶
func SetWorkplaceSettings(host string, verifyTLS bool, apiKey string, values models.WorkplaceSettings) (models.WorkplaceSettings, Error)
SetWorkplaceSettings set workplace settings
func UnlockConfig ¶
func UnlockConfig(host string, verifyTLS bool, apiKey string, project string, config string) (models.ConfigInfo, Error)
UnlockConfig unlock a config
func UpdateConfig ¶
func UpdateConfig(host string, verifyTLS bool, apiKey string, project string, config string, name string) (models.ConfigInfo, Error)
UpdateConfig update a config
func UpdateProject ¶
func UpdateProject(host string, verifyTLS bool, apiKey string, project string, name string, description ...string) (models.ProjectInfo, Error)
UpdateProject update a project's name and (optional) description
func UploadSecrets ¶
func UploadSecrets(host string, verifyTLS bool, apiKey string, project string, config string, secrets string) (map[string]models.ComputedSecret, Error)
UploadSecrets for specified project and config