common

package
v0.463.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 47 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

View Source
var ErrInvalidateDependencies = errors.New("dependencies need to be updated")

Functions

This section is empty.

Types

type JavaConfig

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

type JvmLogRecord added in v0.462.0

type JvmLogRecord struct {
	Timestamp       time.Time `json:"timestamp"`
	Sequence        int       `json:"sequence"`
	LoggerClassName string    `json:"loggerClassName"`
	LoggerName      string    `json:"loggerName"`
	Level           string    `json:"level"`
	Message         string    `json:"message"`
	ThreadName      string    `json:"threadName"`
	ThreadID        int       `json:"threadId"`
	Mdc             any       `json:"mdc"`
	Ndc             string    `json:"ndc"`
	HostName        string    `json:"hostName"`
	ProcessName     string    `json:"processName"`
	ProcessID       int       `json:"processId"`
}

func (*JvmLogRecord) ToEntry added in v0.462.0

func (r *JvmLogRecord) ToEntry() log.Entry

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