plugin-shell-script

command module
v0.0.0-...-2c6cf82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

plugin-template-go

This plugin template for go is great for anyone that wants to make their own plugins. By no means is it necessary to use this template, only that this plugin interface must be honored: plugin-interface

There's a script in app/script/run.sh that can be configured and this template will automatically run the script. You can also configure the cleanup script within the same run.sh script.

In the v0 version, scripts are embedded directly into the go binary to make deployment really easy (no volume mounts). There are caveats to this:

  • no secure information should be put into the scripts
  • this means use a secrets manager or address a credentials file like .aws/credentials
  • plugin binaries will be slightly larger

We intend on making it easier to configure how the scripts are loaded with hypothecary.

Please be sure to change the Template struct name.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL