api

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

func DeleteAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string)

DeleteAPIConfig create a config

func DeleteAPIProject

func DeleteAPIProject(cmd *cobra.Command, host string, apiKey string, project string)

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

func GetAPIActivityLogs(cmd *cobra.Command, host string, apiKey string) ([]byte, []models.Log)

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

func GetAPIProjects(cmd *cobra.Command, host string, apiKey string) ([]byte, []models.ProjectInfo)

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

func ParseDeploySecrets(response []byte) (map[string]string, error)

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

func UpdateAPIConfig

func UpdateAPIConfig(cmd *cobra.Command, host string, apiKey string, project string, config string, name string) ([]byte, models.ConfigInfo)

UpdateAPIConfig create a config

func UpdateAPIProject

func UpdateAPIProject(cmd *cobra.Command, host string, apiKey string, project string, name string, description string) ([]byte, models.ProjectInfo)

UpdateAPIProject update a project

Types

type Secret

type Secret struct {
	Name  string
	Value string
}

Secret key/value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL