config

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildSystemBazel  string = "bazel"
	BuildSystemCMake  string = "cmake"
	BuildSystemNodeJS string = "nodejs"
	BuildSystemMaven  string = "maven"
	BuildSystemGradle string = "gradle"
	BuildSystemOther  string = "other"
)
View Source
const AllowUnsupportedPlatformsEnv = "CIFUZZ_ALLOW_UNSUPPORTED_PLATFORMS"
View Source
const ProjectConfigFile = "cifuzz.yaml"

Variables

This section is empty.

Functions

func AllowUnsupportedPlatforms added in v0.29.0

func AllowUnsupportedPlatforms() bool

func CreateProjectConfig

func CreateProjectConfig(configDir string, server string, project string) (string, error)

CreateProjectConfig creates a new project config in the given directory

func DetermineBuildSystem

func DetermineBuildSystem(projectDir string) (string, error)

func EnsureProjectEntry added in v0.26.0

func EnsureProjectEntry(configContent string, project string) string

func FindAndParseProjectConfig added in v0.5.0

func FindAndParseProjectConfig(opts interface{}) error

func FindConfigDir added in v0.5.0

func FindConfigDir() (string, error)

func IsGradleMultiProject added in v0.20.0

func IsGradleMultiProject(projectDir string) (bool, error)

func NotSupportedErrorMessage added in v0.28.0

func NotSupportedErrorMessage(tool string, platform string) string

func ParseProjectConfig

func ParseProjectConfig(configDir string, opts interface{}) error

func TestTypeFileNameExtension added in v0.19.0

func TestTypeFileNameExtension(testType FuzzTestType) (string, bool)

func ValidateBuildSystem

func ValidateBuildSystem(buildSystem string) error

Types

type Engine

type Engine string
const (
	Libfuzzer Engine = "libfuzzer"
)

type FuzzTestType

type FuzzTestType string
const (
	CPP        FuzzTestType = "cpp"
	Java       FuzzTestType = "java"
	Kotlin     FuzzTestType = "kotlin"
	JavaScript FuzzTestType = "js"
)

type GradleBuildLanguage added in v0.19.0

type GradleBuildLanguage string
const (
	GradleGroovy GradleBuildLanguage = "groovy"
	GradleKotlin GradleBuildLanguage = "kotlin"
)

func DetermineGradleBuildLanguage added in v0.19.0

func DetermineGradleBuildLanguage(projectDir string) (GradleBuildLanguage, error)

Jump to

Keyboard shortcuts

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