Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerGoBuilder ¶
type DockerGoBuilder struct {
// contains filtered or unexported fields
}
DockerGoBuilder builds the test plan as a go-based container.
func (*DockerGoBuilder) Build ¶
func (b *DockerGoBuilder) Build(ctx context.Context, in *api.BuildInput, ow *rpc.OutputWriter) (*api.BuildOutput, error)
TODO cache build outputs https://github.com/ipfs/testground/issues/36 Build builds a testplan written in Go and outputs a Docker container.
func (*DockerGoBuilder) ConfigType ¶
func (*DockerGoBuilder) ConfigType() reflect.Type
func (*DockerGoBuilder) ID ¶
func (*DockerGoBuilder) ID() string
type DockerGoBuilderConfig ¶
type DockerGoBuilderConfig struct { Enabled bool GoVersion string `toml:"go_version" overridable:"yes"` GoIPFSVersion string `toml:"go_ipfs_version" overridable:"yes"` ModulePath string `toml:"module_path" overridable:"yes"` ExecPkg string `toml:"exec_pkg" overridable:"yes"` FreshGomod bool `toml:"fresh_gomod" overridable:"yes"` // PushRegistry, if true, will push the resulting image to a Docker // registry. PushRegistry bool `toml:"push_registry" overridable:"yes"` // RegistryType is the type of registry this builder will push the generated // Docker image to, if PushRegistry is true. RegistryType string `toml:"registry_type" overridable:"yes"` // GoProxyMode specifies one of "on", "off", "custom". // // * The "local" mode (default) will start a proxy container (if one // doesn't exist yet) with bridge networking, and will configure the // build to use that proxy. // * The "direct" mode sets the `GOPROXY=direct` env var on the go build. // * The "remote" mode specifies a custom proxy. The `GoProxyURL` field // must be non-empty. GoProxyMode string `toml:"go_proxy_mode" overridable:"yes"` // GoProxyURL specifies the URL of the proxy when GoProxyMode = "custom". GoProxyURL string `toml:"go_proxy_url" overridable:"yes"` }
type ExecGoBuilder ¶
type ExecGoBuilder struct{}
ExecGoBuilder (id: "exec:go") is a builder that compiles the test plan into an executable using the system Go SDK. The resulting artifact can be used with a containerless runner.
func (*ExecGoBuilder) Build ¶
func (b *ExecGoBuilder) Build(ctx context.Context, input *api.BuildInput, ow *rpc.OutputWriter) (*api.BuildOutput, error)
Build builds a testplan written in Go and outputs an executable.
func (*ExecGoBuilder) ConfigType ¶
func (*ExecGoBuilder) ConfigType() reflect.Type
func (*ExecGoBuilder) ID ¶
func (*ExecGoBuilder) ID() string
type ExecGoBuilderConfig ¶
Click to show internal directories.
Click to hide internal directories.