models

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: 0 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputedSecret

type ComputedSecret struct {
	Name          string `json:"name"`
	RawValue      string `json:"raw"`
	ComputedValue string `json:"computed"`
}

ComputedSecret holds computed and raw value

type Config

type Config struct {
	Project    string `json:"project"`
	Config     string `json:"config"`
	Key        string `json:"key"`
	APIHost    string `json:"api-host"`
	DeployHost string `json:"deploy-host"`
}

Config options

type ConfigInfo

type ConfigInfo struct {
	Name             string   `json:"name"`
	Environment      string   `json:"stage"`
	Project          string   `json:"project"`
	CreatedAt        string   `json:"created_at"`
	DeployedAt       string   `json:"deployed_at"`
	MissingVariables []string `json:"missing_variables"`
}

ConfigInfo project info

func ParseConfigInfo

func ParseConfigInfo(info map[string]interface{}) ConfigInfo

ParseConfigInfo parse config info

type EnvironmentInfo

type EnvironmentInfo struct {
	ID               string   `json:"id"`
	Name             string   `json:"name"`
	CreatedAt        string   `json:"created_at"`
	FirstDeployAt    string   `json:"first_deploy_at"`
	SetupAt          string   `json:"setup_at"`
	Project          string   `json:"pipeline"`
	MissingVariables []string `json:"missing_variables"`
}

EnvironmentInfo environment info

func ParseEnvironmentInfo

func ParseEnvironmentInfo(info map[string]interface{}) EnvironmentInfo

ParseEnvironmentInfo parse environment info

type Log

type Log struct {
	ID          string `json:"id"`
	Text        string `json:"text"`
	HTML        string `json:"html"`
	CreatedAt   string `json:"created_at"`
	Config      string `json:"environment"`
	Environment string `json:"stage"`
	Project     string `json:"pipeline"`
	User        User   `json:"user"`
}

Log a log

func ParseLog

func ParseLog(log map[string]interface{}) Log

ParseLog parse log

type Pair

type Pair struct {
	Value string `json:"value"`
	Scope string `json:"scope"`
}

Pair value and its scope

type ProjectInfo

type ProjectInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	CreatedAt   string `json:"created_at"`
	SetupAt     string `json:"setup_at"`
}

ProjectInfo project info

func ParseProjectInfo

func ParseProjectInfo(info map[string]interface{}) ProjectInfo

ParseProjectInfo parse project info

type ScopedConfig

type ScopedConfig struct {
	Project    Pair `json:"project"`
	Config     Pair `json:"config"`
	Key        Pair `json:"key"`
	APIHost    Pair `json:"api-host"`
	DeployHost Pair `json:"deploy-host"`
}

ScopedConfig options with their scope

type User

type User struct {
	Email        string `json:"email"`
	Name         string `json:"name"`
	Username     string `json:"username"`
	ProfileImage string `json:"profile_image_url"`
}

User user profile

type WorkplaceSettings

type WorkplaceSettings struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	BillingEmail string `json:"billing_email"`
}

WorkplaceSettings workplace settings

func ParseWorkplaceSettings

func ParseWorkplaceSettings(info map[string]interface{}) WorkplaceSettings

ParseWorkplaceSettings parse workplace settings

Jump to

Keyboard shortcuts

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