-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into f-ui/long-client-names
- Loading branch information
Showing
78 changed files
with
5,772 additions
and
4,213 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 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 logmon | ||
|
||
import ( | ||
"os" | ||
|
||
hclog "github.com/hashicorp/go-hclog" | ||
plugin "github.com/hashicorp/go-plugin" | ||
"github.com/hashicorp/nomad/plugins/base" | ||
) | ||
|
||
// Install a plugin cli handler to ease working with tests | ||
// and external plugins. | ||
// This init() must be initialized last in package required by the child plugin | ||
// process. It's recommended to avoid any other `init()` or inline any necessary calls | ||
// here. See eeaa95d commit message for more details. | ||
func init() { | ||
if len(os.Args) > 1 && os.Args[1] == "logmon" { | ||
logger := hclog.New(&hclog.LoggerOptions{ | ||
Level: hclog.Trace, | ||
JSONFormat: true, | ||
Name: "logmon", | ||
}) | ||
plugin.Serve(&plugin.ServeConfig{ | ||
HandshakeConfig: base.Handshake, | ||
Plugins: map[string]plugin.Plugin{ | ||
"logmon": NewPlugin(NewLogMon(logger)), | ||
}, | ||
GRPCServer: plugin.DefaultGRPCServer, | ||
Logger: logger, | ||
}) | ||
os.Exit(0) | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
package docklog | ||
|
||
import ( | ||
"os" | ||
|
||
log "github.com/hashicorp/go-hclog" | ||
plugin "github.com/hashicorp/go-plugin" | ||
"github.com/hashicorp/nomad/plugins/base" | ||
) | ||
|
||
// Install a plugin cli handler to ease working with tests | ||
// and external plugins. | ||
// This init() must be initialized last in package required by the child plugin | ||
// process. It's recommended to avoid any other `init()` or inline any necessary calls | ||
// here. See eeaa95d commit message for more details. | ||
func init() { | ||
if len(os.Args) > 1 && os.Args[1] == PluginName { | ||
logger := log.New(&log.LoggerOptions{ | ||
Level: log.Trace, | ||
JSONFormat: true, | ||
Name: PluginName, | ||
}) | ||
|
||
plugin.Serve(&plugin.ServeConfig{ | ||
HandshakeConfig: base.Handshake, | ||
Plugins: map[string]plugin.Plugin{ | ||
PluginName: NewPlugin(NewDockerLogger(logger)), | ||
}, | ||
GRPCServer: plugin.DefaultGRPCServer, | ||
Logger: logger, | ||
}) | ||
os.Exit(0) | ||
} | ||
} |
Oops, something went wrong.