Skip to content

Commit

Permalink
update topic & dbconn struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilsondo committed Aug 25, 2023
1 parent 2d3fa78 commit 92b98b0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,24 @@ type DatabaseCA struct {

// DatabaseConnection represents a database connection
type DatabaseConnection struct {
URI string `json:"uri,omitempty"`
Database string `json:"database,omitempty"`
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
SSL bool `json:"ssl,omitempty"`
Protocol string `json:"protocol"`
URI string `json:"uri,omitempty"`
Database string `json:"database,omitempty"`
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
SSL bool `json:"ssl,omitempty"`
ApplicationPorts map[string]uint32 `json:"application_ports,omitempty"`
}

// DatabaseUser represents a user in the database
type DatabaseUser struct {
Name string `json:"name,omitempty"`
Role string `json:"role,omitempty"`
Password string `json:"password,omitempty"`
AccessCert string `json:"access_cert,omitempty"`
AccessKey string `json:"access_key,omitempty"`
MySQLSettings *DatabaseMySQLUserSettings `json:"mysql_settings,omitempty"`
KafkaSettings *DatabaseKafkaUserSettings `json:"settings,omitempty"`
}
Expand Down Expand Up @@ -296,6 +300,7 @@ type DatabaseTopic struct {
Name string `json:"name"`
PartitionCount *uint32 `json:"partition_count,omitempty"`
ReplicationFactor *uint32 `json:"replication_factor,omitempty"`
State string `json:"state,omitempty"`
Config *TopicConfig `json:"config,omitempty"`
}

Expand Down

0 comments on commit 92b98b0

Please sign in to comment.