-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a package for filehandling version of dsnexec
- Loading branch information
1 parent
d140926
commit 706add6
Showing
10 changed files
with
445 additions
and
117 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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
package fdsnexec | ||
|
||
import "github.com/infobloxopen/db-controller/dsnexec/pkg/dsnexec" | ||
|
||
type Source struct { | ||
Driver string `yaml:"driver"` | ||
Filename string `yaml:"filename"` | ||
} | ||
|
||
// InputFile is the input file format for fdsnexec. It is a yaml file with | ||
// a top level key of configs. The configs key is a map of config names to | ||
// Configs. | ||
type InputFile struct { | ||
Configs map[string]*Config `yaml:"configs"` | ||
} | ||
|
||
// Config is the config for a single fdsnexec instance. | ||
type Config struct { | ||
Disabled bool `yaml:"disabled"` | ||
Sources []Source `yaml:"sources"` | ||
Destination dsnexec.DBConnInfo `yaml:"destination"` | ||
Commands []dsnexec.Command `yaml:"commands"` | ||
} |
Oops, something went wrong.