mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 18:51:17 +00:00
e9e7e6bMerge pull request #26 from weaveworks/this-time-for-suredf494d6Remove dependenciesc045d16Properly exclude vendor from lint2cfcf08Add blacklist to wcloud clientca6ebfbMerge pull request #25 from weaveworks/fix-brokennessbfb1747Test directories need ./ prefixes, obviously.5b9b314Merge pull request #24 from weaveworks/find-files8786427Remove spurious debugging code from test8b7ec6eSpeed up test by using git ls-filescf53dc1Exclude vendor from shell lintingb2ab380Fix field namec86fd3dAdd notification config for wcloudf643920Merge pull request #23 from weaveworks/only-lint-git-files47a0152Only lint git files50d47f9Merge pull request #22 from weaveworks/shell-lint git-subtree-dir: tools git-subtree-split:e9e7e6b0f0
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Deployment describes a deployment
|
|
type Deployment struct {
|
|
ID string `json:"id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
ImageName string `json:"image_name"`
|
|
Version string `json:"version"`
|
|
Priority int `json:"priority"`
|
|
State string `json:"status"`
|
|
LogKey string `json:"-"`
|
|
}
|
|
|
|
// Config for the deployment system for a user.
|
|
type Config struct {
|
|
RepoURL string `json:"repo_url" yaml:"repo_url"`
|
|
RepoPath string `json:"repo_path" yaml:"repo_path"`
|
|
RepoKey string `json:"repo_key" yaml:"repo_key"`
|
|
KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"`
|
|
|
|
Notifications []NotificationConfig `json:"notifications" yaml:"notifications"`
|
|
|
|
// Globs of files not to change, relative to the route of the repo
|
|
ConfigFileBlackList []string `json:"config_file_black_list" yaml:"config_file_black_list"`
|
|
}
|
|
|
|
// NotificationConfig describes how to send notifications
|
|
type NotificationConfig struct {
|
|
SlackWebhookURL string `json:"slack_webhook_url" yaml:"slack_webhook_url"`
|
|
SlackUsername string `json:"slack_username" yaml:"slack_username"`
|
|
}
|