Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Plugin is the name of the plugin/subcommand binary Plugin string // Version is the version of the binary to release Version string // Platforms is a map of OSes to architectures that the target binary will be compiled for Platforms map[string][]string // Bucket is the name of the S3 bucket that the compiled binaries will be uploaded to Bucket string // Namespace is the namespace prefix to use in the upload key for the binary. If not provided then // defaults to `task-agent-plugins`. Valid options are: `task-agent-plugins` or `task-agent-subcommands` Namespace Namespace // Client is an S3 client Client *s3.Client }
type Namespace ¶
type Namespace int
Namespace is an enum representing the valid namespaces that a binary can be uploaded to
type Opts ¶
type Opts struct { // Source is the source package of the plugin to compile and upload Source string // WorkingDir is the directory from which the compilation should be run from WorkingDir string }
Opts are the options available when running the Releaser
type Releaser ¶
type Releaser struct {
// contains filtered or unexported fields
}
Releaser is responsible for compiling and uploading the Go binaries for task-agent plugins/subcommands in a standardised way
Click to show internal directories.
Click to hide internal directories.