This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from ripienaar/102
(#102) fix setting target specific TLS
- Loading branch information
Showing
6 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package config | ||
|
||
import ( | ||
security "github.com/choria-io/go-security" | ||
) | ||
|
||
// TopicConf is the configuration for a specific topic | ||
type TopicConf struct { | ||
Topic string `json:"topic"` | ||
SourceURL string `json:"source_url"` | ||
SourceID string `json:"source_cluster_id"` | ||
TargetURL string `json:"target_url"` | ||
TargetID string `json:"target_cluster_id"` | ||
Workers int `json:"workers"` | ||
Queued bool `json:"queued"` | ||
QueueGroup string `json:"queue_group"` | ||
Inspect string `json:"inspect"` | ||
UpdateFlag string `json:"update_flag"` | ||
MinAge string `json:"age"` | ||
Name string `json:"name"` | ||
MonitorPort int `json:"monitor"` | ||
Advisory *AdvisoryConf `json:"advisory"` | ||
TLSc *TLSConf `json:"tls"` | ||
DisableTargetTLS bool `json:"disable_target_tls"` | ||
DisableSourceTLS bool `json:"disable_source_tls"` | ||
|
||
SecurityProvider security.Provider `json:"-"` | ||
} | ||
|
||
// TLS determines if the topic has a TLS configuration set | ||
func (t *TopicConf) TLS() bool { | ||
return t.TLSc == nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters