common

package
v0.407.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const BuildLockTimeout = time.Minute
View Source
const ErrorFile = "errors.pb"
View Source
const JavaBuildToolGradle string = "gradle"
View Source
const JavaBuildToolMaven string = "maven"
View Source
const SchemaFile = "schema.pb"

Variables

This section is empty.

Functions

This section is empty.

Types

type JavaConfig

type JavaConfig struct {
	BuildTool string `mapstructure:"build-tool"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(scaffoldFiles *zip.Reader) *Service

func (*Service) Build

Build the module and stream back build events.

A BuildSuccess or BuildFailure event must be streamed back with the request's context id to indicate the end of the build.

The request can include the option to "rebuild_automatically". In this case the plugin should watch for file changes and automatically rebuild as needed as long as this build request is alive. Each automactic rebuild must include the latest build context id provided by the request or subsequent BuildContextUpdated calls.

func (*Service) BuildContextUpdated

BuildContextUpdated is called whenever the build context is update while a Build call with "rebuild_automatically" is active.

Each time this call is made, the Build call must send back a corresponding BuildSuccess or BuildFailure event with the updated build context id with "is_automatic_rebuild" as false.

func (*Service) CreateModule

CreateModule generates files for a new module with the requested name

func (*Service) Ping

Jump to

Keyboard shortcuts

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