golang

package
Version: v0.0.0-...-949e484 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package golang provides golang toolchain (`go`) support for dukkha

Index

Constants

View Source
const TaskKindBuild = "build"
View Source
const TaskKindTest = "test"
View Source
const ToolKind = "golang"

Variables

This section is empty.

Functions

This section is empty.

Types

type CGOSepc

type CGOSepc struct {
	field.BaseField

	// Enable cgo
	Enabled bool `yaml:"enabled"`

	// CGO_CPPFLAGS
	CPPFlags []string `yaml:"cppflags"`

	// CGO_CFLAGS
	CFlags []string `yaml:"cflags"`

	// CGO_CXXFLAGS
	CXXFlags []string `yaml:"cxxflags"`

	// CGO_FFLAGS
	FFlags []string `yaml:"fflags"`

	// CGO_LDFLAGS
	LDFlags []string `yaml:"ldflags"`

	CC string `yaml:"cc"`

	CXX string `yaml:"cxx"`
}

type TaskBuild

type TaskBuild struct {
	field.BaseField

	tools.BaseTask `yaml:",inline"`

	Chdir     string   `yaml:"chdir"`
	Path      string   `yaml:"path"`
	ExtraArgs []string `yaml:"extra_args"`
	Outputs   []string `yaml:"outputs"`

	BuildOptions buildOptions `yaml:",inline"`

	CGO CGOSepc `yaml:"cgo"`
}

func (*TaskBuild) GetExecSpecs

type TaskTest

type TaskTest struct {
	field.BaseField

	tools.BaseTask `yaml:",inline"`

	CGO CGOSepc `yaml:"cgo"`

	Path  string `yaml:"path"`
	Chdir string `yaml:"chdir"`

	Build buildOptions `yaml:",inline"`
	Test  testSpec     `yaml:",inline"`

	Benchmark testBenchmarkSpec `yaml:"benchmark"`
	Profile   testProfileSpec   `yaml:"profile"`

	// custom args only used when running the test
	CustomArgs []string `yaml:"custom_args"`
}

func (*TaskTest) GetExecSpecs

func (c *TaskTest) GetExecSpecs(
	rc dukkha.TaskExecContext, options dukkha.TaskMatrixExecOptions,
) ([]dukkha.TaskExecSpec, error)

type Tool

type Tool struct {
	field.BaseField

	tools.BaseTool `yaml:",inline"`
}

func (*Tool) Init

func (t *Tool) Init(kind dukkha.ToolKind, cachdDir string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to