mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 20:11:09 +00:00
b990f48 Merge pull request #42 from kinvolk/lorenzo/fix-git-diff 224a145 Check if SHA1 exists before calling `git diff` 1c3000d Add auto_apply config for wcloud 0ebf5c0 Fix wcloud -serivice4fe078aMerge pull request #39 from weaveworks/fix-wrong-subtree-use3f4934dRemove generate_latest_map48beb60Sync changes done directly in scope/tools45dcdd5Merge pull request #37 from weaveworks/fix-mflag-missingb895344Use mflag package from weaveworks fork until we find a better solutione030008Merge pull request #36 from weaveworks/wcloud-service-flags9cbab40Add wcloud Makefileef55901Review feedback, and build wcloud in circle.3fe92f5Add wcloud deploy --service flag3527b56Merge pull request #34 from weaveworks/repo-branch92cd0b8[wcloud] Add support for repo_branch option9f760abAllow wcloud users to override username38037f8Merge pull request #33 from weaveworks/wcloud-templates7acfbd7Propagate the local usernamee6876d1Add template fields to wcloud config.f1bb537Merge pull request #30 from weaveworks/mike/shell-lint/dont-error-if-emptye60f5dfMerge pull request #31 from weaveworks/mike/fix-shell-lint-errorse8e2b69integrations: Fix a shellcheck linter errora781575shell-lint: Don't fail if no shell scripts founddb5efc0Merge pull request #28 from weaveworks/mike/add-image-tag5312c40Import image-tag script into build tools so it can be shared7e850f8Fix logs pathdda9785Update deploy apif2f4e5bFix the wcloud client3925eb6Merge pull request #27 from weaveworks/wcloud-events77355b9Lintd9a1c6cAdd wcloud events, update flags and error nicely when there is no config git-subtree-dir: tools git-subtree-split: b990f488bdc7909b62d9245bc4b4caf58f5ae7ea
44 lines
1.6 KiB
Go
44 lines
1.6 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"`
|
|
|
|
TriggeringUser string `json:"triggering_user"`
|
|
IntendedServices []string `json:"intended_services"`
|
|
}
|
|
|
|
// Config for the deployment system for a user.
|
|
type Config struct {
|
|
RepoURL string `json:"repo_url" yaml:"repo_url"`
|
|
RepoBranch string `json:"repo_branch" yaml:"repo_branch"`
|
|
RepoPath string `json:"repo_path" yaml:"repo_path"`
|
|
RepoKey string `json:"repo_key" yaml:"repo_key"`
|
|
KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"`
|
|
AutoApply bool `json:"auto_apply" yaml:"auto_apply"`
|
|
|
|
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"`
|
|
|
|
CommitMessageTemplate string `json:"commit_message_template" yaml:"commit_message_template"` // See https://golang.org/pkg/text/template/
|
|
}
|
|
|
|
// 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"`
|
|
MessageTemplate string `json:"message_template" yaml:"message_template"`
|
|
ApplyMessageTemplate string `json:"apply_message_template" yaml:"apply_message_template"`
|
|
}
|