languagepb

package
v0.384.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_ErrorLevel_name = map[int32]string{
		0: "INFO",
		1: "WARN",
		2: "ERROR",
	}
	Error_ErrorLevel_value = map[string]int32{
		"INFO":  0,
		"WARN":  1,
		"ERROR": 2,
	}
)

Enum value maps for Error_ErrorLevel.

View Source
var (
	LogMessage_LogLevel_name = map[int32]string{
		0: "DEBUG",
		1: "INFO",
		2: "WARN",
		3: "ERROR",
	}
	LogMessage_LogLevel_value = map[string]int32{
		"DEBUG": 0,
		"INFO":  1,
		"WARN":  2,
		"ERROR": 3,
	}
)

Enum value maps for LogMessage_LogLevel.

View Source
var File_xyz_block_ftl_v1_language_language_proto protoreflect.FileDescriptor

Functions

func ErrorsFromProto

func ErrorsFromProto(e *ErrorList) []builderrors.Error

ErrorsFromProto converts a protobuf ErrorList to a []builderrors.Error.

func LogLevelFromProto added in v0.378.0

func LogLevelFromProto(level LogMessage_LogLevel) log.Level

func PosFromProto

func PosFromProto(pos *Position) builderrors.Position

Types

type AutoRebuildStarted

type AutoRebuildStarted struct {
	ContextId string `protobuf:"bytes,1,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
	// contains filtered or unexported fields
}

AutoRebuildStarted should be sent when the plugin decides to start rebuilding automatically.

It is not required to send this event, though it helps inform the user that their changes are not yet built. FTL may ignore this event if it does not match FTL's current build context and state. If the plugin decides to cancel the build because another build started, no failure or cancellation event needs to be sent.

func (*AutoRebuildStarted) Descriptor deprecated

func (*AutoRebuildStarted) Descriptor() ([]byte, []int)

Deprecated: Use AutoRebuildStarted.ProtoReflect.Descriptor instead.

func (*AutoRebuildStarted) GetContextId

func (x *AutoRebuildStarted) GetContextId() string

func (*AutoRebuildStarted) ProtoMessage

func (*AutoRebuildStarted) ProtoMessage()

func (*AutoRebuildStarted) ProtoReflect

func (x *AutoRebuildStarted) ProtoReflect() protoreflect.Message

func (*AutoRebuildStarted) Reset

func (x *AutoRebuildStarted) Reset()

func (*AutoRebuildStarted) String

func (x *AutoRebuildStarted) String() string

type BuildContext

type BuildContext struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The configuration for the module
	ModuleConfig *ModuleConfig `protobuf:"bytes,2,opt,name=module_config,json=moduleConfig,proto3" json:"module_config,omitempty"`
	// The FTL schema including all dependencies
	Schema *schema.Schema `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	// The dependencies for the module
	Dependencies []string `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

BuildContext contains contextual information needed to build.

Plugins must include the build context's id when a build succeeds or fails. For automatic rebuilds, plugins must use the most recent build context they have received.

func (*BuildContext) Descriptor deprecated

func (*BuildContext) Descriptor() ([]byte, []int)

Deprecated: Use BuildContext.ProtoReflect.Descriptor instead.

func (*BuildContext) GetDependencies

func (x *BuildContext) GetDependencies() []string

func (*BuildContext) GetId

func (x *BuildContext) GetId() string

func (*BuildContext) GetModuleConfig

func (x *BuildContext) GetModuleConfig() *ModuleConfig

func (*BuildContext) GetSchema

func (x *BuildContext) GetSchema() *schema.Schema

func (*BuildContext) ProtoMessage

func (*BuildContext) ProtoMessage()

func (*BuildContext) ProtoReflect

func (x *BuildContext) ProtoReflect() protoreflect.Message

func (*BuildContext) Reset

func (x *BuildContext) Reset()

func (*BuildContext) String

func (x *BuildContext) String() string

type BuildContextUpdatedRequest

type BuildContextUpdatedRequest struct {
	BuildContext *BuildContext `protobuf:"bytes,1,opt,name=buildContext,proto3" json:"buildContext,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildContextUpdatedRequest) Descriptor deprecated

func (*BuildContextUpdatedRequest) Descriptor() ([]byte, []int)

Deprecated: Use BuildContextUpdatedRequest.ProtoReflect.Descriptor instead.

func (*BuildContextUpdatedRequest) GetBuildContext

func (x *BuildContextUpdatedRequest) GetBuildContext() *BuildContext

func (*BuildContextUpdatedRequest) ProtoMessage

func (*BuildContextUpdatedRequest) ProtoMessage()

func (*BuildContextUpdatedRequest) ProtoReflect

func (*BuildContextUpdatedRequest) Reset

func (x *BuildContextUpdatedRequest) Reset()

func (*BuildContextUpdatedRequest) String

func (x *BuildContextUpdatedRequest) String() string

type BuildContextUpdatedResponse

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

func (*BuildContextUpdatedResponse) Descriptor deprecated

func (*BuildContextUpdatedResponse) Descriptor() ([]byte, []int)

Deprecated: Use BuildContextUpdatedResponse.ProtoReflect.Descriptor instead.

func (*BuildContextUpdatedResponse) ProtoMessage

func (*BuildContextUpdatedResponse) ProtoMessage()

func (*BuildContextUpdatedResponse) ProtoReflect

func (*BuildContextUpdatedResponse) Reset

func (x *BuildContextUpdatedResponse) Reset()

func (*BuildContextUpdatedResponse) String

func (x *BuildContextUpdatedResponse) String() string

type BuildEvent

type BuildEvent struct {

	// Types that are assignable to Event:
	//
	//	*BuildEvent_AutoRebuildStarted
	//	*BuildEvent_BuildSuccess
	//	*BuildEvent_BuildFailure
	//	*BuildEvent_LogMessage
	Event isBuildEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

Every type of message that can be streamed from the language plugin for a build.

func (*BuildEvent) Descriptor deprecated

func (*BuildEvent) Descriptor() ([]byte, []int)

Deprecated: Use BuildEvent.ProtoReflect.Descriptor instead.

func (*BuildEvent) GetAutoRebuildStarted

func (x *BuildEvent) GetAutoRebuildStarted() *AutoRebuildStarted

func (*BuildEvent) GetBuildFailure

func (x *BuildEvent) GetBuildFailure() *BuildFailure

func (*BuildEvent) GetBuildSuccess

func (x *BuildEvent) GetBuildSuccess() *BuildSuccess

func (*BuildEvent) GetEvent

func (m *BuildEvent) GetEvent() isBuildEvent_Event

func (*BuildEvent) GetLogMessage

func (x *BuildEvent) GetLogMessage() *LogMessage

func (*BuildEvent) ProtoMessage

func (*BuildEvent) ProtoMessage()

func (*BuildEvent) ProtoReflect

func (x *BuildEvent) ProtoReflect() protoreflect.Message

func (*BuildEvent) Reset

func (x *BuildEvent) Reset()

func (*BuildEvent) String

func (x *BuildEvent) String() string

type BuildEvent_AutoRebuildStarted

type BuildEvent_AutoRebuildStarted struct {
	AutoRebuildStarted *AutoRebuildStarted `protobuf:"bytes,2,opt,name=auto_rebuild_started,json=autoRebuildStarted,proto3,oneof"`
}

type BuildEvent_BuildFailure

type BuildEvent_BuildFailure struct {
	BuildFailure *BuildFailure `protobuf:"bytes,4,opt,name=build_failure,json=buildFailure,proto3,oneof"`
}

type BuildEvent_BuildSuccess

type BuildEvent_BuildSuccess struct {
	BuildSuccess *BuildSuccess `protobuf:"bytes,3,opt,name=build_success,json=buildSuccess,proto3,oneof"`
}

type BuildEvent_LogMessage

type BuildEvent_LogMessage struct {
	LogMessage *LogMessage `protobuf:"bytes,5,opt,name=log_message,json=logMessage,proto3,oneof"`
}

type BuildFailure

type BuildFailure struct {

	// The id of build context used while building.
	ContextId string `protobuf:"bytes,1,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
	// Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
	IsAutomaticRebuild bool `protobuf:"varint,2,opt,name=is_automatic_rebuild,json=isAutomaticRebuild,proto3" json:"is_automatic_rebuild,omitempty"`
	// Errors contains any errors that occurred during the build
	Errors *ErrorList `protobuf:"bytes,3,opt,name=errors,proto3" json:"errors,omitempty"`
	// Indicates the plugin determined that the dependencies in the BuildContext are out of date.
	// If a Build stream is being kept open for automatic rebuilds, FTL will call GetDependencies, followed by
	// BuildContextUpdated.
	InvalidateDependencies bool `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

BuildFailure should be sent when a build fails.

FTL may ignore this event if it does not match FTL's current build context and state.

func (*BuildFailure) Descriptor deprecated

func (*BuildFailure) Descriptor() ([]byte, []int)

Deprecated: Use BuildFailure.ProtoReflect.Descriptor instead.

func (*BuildFailure) GetContextId

func (x *BuildFailure) GetContextId() string

func (*BuildFailure) GetErrors

func (x *BuildFailure) GetErrors() *ErrorList

func (*BuildFailure) GetInvalidateDependencies

func (x *BuildFailure) GetInvalidateDependencies() bool

func (*BuildFailure) GetIsAutomaticRebuild

func (x *BuildFailure) GetIsAutomaticRebuild() bool

func (*BuildFailure) ProtoMessage

func (*BuildFailure) ProtoMessage()

func (*BuildFailure) ProtoReflect

func (x *BuildFailure) ProtoReflect() protoreflect.Message

func (*BuildFailure) Reset

func (x *BuildFailure) Reset()

func (*BuildFailure) String

func (x *BuildFailure) String() string

type BuildRequest

type BuildRequest struct {

	// The root path for the FTL project
	ProjectPath string `protobuf:"bytes,1,opt,name=project_path,json=projectPath,proto3" json:"project_path,omitempty"`
	// Indicates whether to watch for file changes and automatically rebuild
	RebuildAutomatically bool          `protobuf:"varint,2,opt,name=rebuild_automatically,json=rebuildAutomatically,proto3" json:"rebuild_automatically,omitempty"`
	BuildContext         *BuildContext `protobuf:"bytes,3,opt,name=build_context,json=buildContext,proto3" json:"build_context,omitempty"`
	// contains filtered or unexported fields
}

Request to build a module.

func (*BuildRequest) Descriptor deprecated

func (*BuildRequest) Descriptor() ([]byte, []int)

Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.

func (*BuildRequest) GetBuildContext

func (x *BuildRequest) GetBuildContext() *BuildContext

func (*BuildRequest) GetProjectPath

func (x *BuildRequest) GetProjectPath() string

func (*BuildRequest) GetRebuildAutomatically

func (x *BuildRequest) GetRebuildAutomatically() bool

func (*BuildRequest) ProtoMessage

func (*BuildRequest) ProtoMessage()

func (*BuildRequest) ProtoReflect

func (x *BuildRequest) ProtoReflect() protoreflect.Message

func (*BuildRequest) Reset

func (x *BuildRequest) Reset()

func (*BuildRequest) String

func (x *BuildRequest) String() string

type BuildSuccess

type BuildSuccess struct {

	// The id of build context used while building.
	ContextId string `protobuf:"bytes,1,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
	// Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
	IsAutomaticRebuild bool `protobuf:"varint,2,opt,name=is_automatic_rebuild,json=isAutomaticRebuild,proto3" json:"is_automatic_rebuild,omitempty"`
	// Module schema for the built module
	Module *schema.Module `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`
	// Paths for files/directories to be deployed
	Deploy []string `protobuf:"bytes,4,rep,name=deploy,proto3" json:"deploy,omitempty"`
	// Name of the docker image to use for the runner
	DockerImage string `protobuf:"bytes,5,opt,name=docker_image,json=dockerImage,proto3" json:"docker_image,omitempty"`
	// Errors contains any errors that occurred during the build
	// No errors can have a level of ERROR, instead a BuildFailure should be sent
	// Instead this is useful for INFO and WARN level errors.
	Errors *ErrorList `protobuf:"bytes,6,opt,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

BuildSuccess should be sent when a build succeeds.

FTL may ignore this event if it does not match FTL's current build context and state.

func (*BuildSuccess) Descriptor deprecated

func (*BuildSuccess) Descriptor() ([]byte, []int)

Deprecated: Use BuildSuccess.ProtoReflect.Descriptor instead.

func (*BuildSuccess) GetContextId

func (x *BuildSuccess) GetContextId() string

func (*BuildSuccess) GetDeploy

func (x *BuildSuccess) GetDeploy() []string

func (*BuildSuccess) GetDockerImage

func (x *BuildSuccess) GetDockerImage() string

func (*BuildSuccess) GetErrors

func (x *BuildSuccess) GetErrors() *ErrorList

func (*BuildSuccess) GetIsAutomaticRebuild

func (x *BuildSuccess) GetIsAutomaticRebuild() bool

func (*BuildSuccess) GetModule

func (x *BuildSuccess) GetModule() *schema.Module

func (*BuildSuccess) ProtoMessage

func (*BuildSuccess) ProtoMessage()

func (*BuildSuccess) ProtoReflect

func (x *BuildSuccess) ProtoReflect() protoreflect.Message

func (*BuildSuccess) Reset

func (x *BuildSuccess) Reset()

func (*BuildSuccess) String

func (x *BuildSuccess) String() string

type CreateModuleRequest

type CreateModuleRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The root path for the module, which does not yet exist.
	// The plugin should create the directory.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// The project configuration
	ProjectConfig *ProjectConfig `protobuf:"bytes,3,opt,name=project_config,json=projectConfig,proto3" json:"project_config,omitempty"`
	// Flags contains any values set for those configured in the GetCreateModuleFlags call
	Flags *structpb.Struct `protobuf:"bytes,4,opt,name=Flags,proto3" json:"Flags,omitempty"`
	// contains filtered or unexported fields
}

Request to create a new module.

func (*CreateModuleRequest) Descriptor deprecated

func (*CreateModuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateModuleRequest.ProtoReflect.Descriptor instead.

func (*CreateModuleRequest) GetFlags

func (x *CreateModuleRequest) GetFlags() *structpb.Struct

func (*CreateModuleRequest) GetName

func (x *CreateModuleRequest) GetName() string

func (*CreateModuleRequest) GetPath

func (x *CreateModuleRequest) GetPath() string

func (*CreateModuleRequest) GetProjectConfig

func (x *CreateModuleRequest) GetProjectConfig() *ProjectConfig

func (*CreateModuleRequest) ProtoMessage

func (*CreateModuleRequest) ProtoMessage()

func (*CreateModuleRequest) ProtoReflect

func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message

func (*CreateModuleRequest) Reset

func (x *CreateModuleRequest) Reset()

func (*CreateModuleRequest) String

func (x *CreateModuleRequest) String() string

type CreateModuleResponse

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

Response to a create module request.

func (*CreateModuleResponse) Descriptor deprecated

func (*CreateModuleResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateModuleResponse.ProtoReflect.Descriptor instead.

func (*CreateModuleResponse) ProtoMessage

func (*CreateModuleResponse) ProtoMessage()

func (*CreateModuleResponse) ProtoReflect

func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message

func (*CreateModuleResponse) Reset

func (x *CreateModuleResponse) Reset()

func (*CreateModuleResponse) String

func (x *CreateModuleResponse) String() string

type DependenciesRequest

type DependenciesRequest struct {
	ModuleConfig *ModuleConfig `protobuf:"bytes,1,opt,name=module_config,json=moduleConfig,proto3" json:"module_config,omitempty"`
	// contains filtered or unexported fields
}

func (*DependenciesRequest) Descriptor deprecated

func (*DependenciesRequest) Descriptor() ([]byte, []int)

Deprecated: Use DependenciesRequest.ProtoReflect.Descriptor instead.

func (*DependenciesRequest) GetModuleConfig

func (x *DependenciesRequest) GetModuleConfig() *ModuleConfig

func (*DependenciesRequest) ProtoMessage

func (*DependenciesRequest) ProtoMessage()

func (*DependenciesRequest) ProtoReflect

func (x *DependenciesRequest) ProtoReflect() protoreflect.Message

func (*DependenciesRequest) Reset

func (x *DependenciesRequest) Reset()

func (*DependenciesRequest) String

func (x *DependenciesRequest) String() string

type DependenciesResponse

type DependenciesResponse struct {
	Modules []string `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*DependenciesResponse) Descriptor deprecated

func (*DependenciesResponse) Descriptor() ([]byte, []int)

Deprecated: Use DependenciesResponse.ProtoReflect.Descriptor instead.

func (*DependenciesResponse) GetModules

func (x *DependenciesResponse) GetModules() []string

func (*DependenciesResponse) ProtoMessage

func (*DependenciesResponse) ProtoMessage()

func (*DependenciesResponse) ProtoReflect

func (x *DependenciesResponse) ProtoReflect() protoreflect.Message

func (*DependenciesResponse) Reset

func (x *DependenciesResponse) Reset()

func (*DependenciesResponse) String

func (x *DependenciesResponse) String() string

type Error

type Error struct {
	Msg   string           `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Level Error_ErrorLevel `protobuf:"varint,4,opt,name=level,proto3,enum=xyz.block.ftl.v1.language.Error_ErrorLevel" json:"level,omitempty"`
	Pos   *Position        `protobuf:"bytes,5,opt,name=pos,proto3" json:"pos,omitempty"`
	// contains filtered or unexported fields
}

Error contains information about an error that occurred during a build. Errors do not always cause a build failure. Use lesser levels to help guide the user.

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetLevel

func (x *Error) GetLevel() Error_ErrorLevel

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) GetPos

func (x *Error) GetPos() *Position

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ErrorList

type ErrorList struct {
	Errors []*Error `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func ErrorsToProto

func ErrorsToProto(errs []builderrors.Error) *ErrorList

func (*ErrorList) Descriptor deprecated

func (*ErrorList) Descriptor() ([]byte, []int)

Deprecated: Use ErrorList.ProtoReflect.Descriptor instead.

func (*ErrorList) GetErrors

func (x *ErrorList) GetErrors() []*Error

func (*ErrorList) ProtoMessage

func (*ErrorList) ProtoMessage()

func (*ErrorList) ProtoReflect

func (x *ErrorList) ProtoReflect() protoreflect.Message

func (*ErrorList) Reset

func (x *ErrorList) Reset()

func (*ErrorList) String

func (x *ErrorList) String() string

type Error_ErrorLevel

type Error_ErrorLevel int32
const (
	Error_INFO  Error_ErrorLevel = 0
	Error_WARN  Error_ErrorLevel = 1
	Error_ERROR Error_ErrorLevel = 2
)

func (Error_ErrorLevel) Descriptor

func (Error_ErrorLevel) Enum

func (Error_ErrorLevel) EnumDescriptor deprecated

func (Error_ErrorLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error_ErrorLevel.Descriptor instead.

func (Error_ErrorLevel) Number

func (Error_ErrorLevel) String

func (x Error_ErrorLevel) String() string

func (Error_ErrorLevel) Type

type GetCreateModuleFlagsRequest

type GetCreateModuleFlagsRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCreateModuleFlagsRequest) Descriptor deprecated

func (*GetCreateModuleFlagsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCreateModuleFlagsRequest.ProtoReflect.Descriptor instead.

func (*GetCreateModuleFlagsRequest) GetLanguage

func (x *GetCreateModuleFlagsRequest) GetLanguage() string

func (*GetCreateModuleFlagsRequest) ProtoMessage

func (*GetCreateModuleFlagsRequest) ProtoMessage()

func (*GetCreateModuleFlagsRequest) ProtoReflect

func (*GetCreateModuleFlagsRequest) Reset

func (x *GetCreateModuleFlagsRequest) Reset()

func (*GetCreateModuleFlagsRequest) String

func (x *GetCreateModuleFlagsRequest) String() string

type GetCreateModuleFlagsResponse

type GetCreateModuleFlagsResponse struct {
	Flags []*GetCreateModuleFlagsResponse_Flag `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCreateModuleFlagsResponse) Descriptor deprecated

func (*GetCreateModuleFlagsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCreateModuleFlagsResponse.ProtoReflect.Descriptor instead.

func (*GetCreateModuleFlagsResponse) GetFlags

func (*GetCreateModuleFlagsResponse) ProtoMessage

func (*GetCreateModuleFlagsResponse) ProtoMessage()

func (*GetCreateModuleFlagsResponse) ProtoReflect

func (*GetCreateModuleFlagsResponse) Reset

func (x *GetCreateModuleFlagsResponse) Reset()

func (*GetCreateModuleFlagsResponse) String

type GetCreateModuleFlagsResponse_Flag

type GetCreateModuleFlagsResponse_Flag struct {
	Name  string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Help  string  `protobuf:"bytes,2,opt,name=help,proto3" json:"help,omitempty"`
	Envar *string `protobuf:"bytes,3,opt,name=envar,proto3,oneof" json:"envar,omitempty"`
	// short must be a single character
	Short       *string `protobuf:"bytes,4,opt,name=short,proto3,oneof" json:"short,omitempty"`
	Placeholder *string `protobuf:"bytes,5,opt,name=placeholder,proto3,oneof" json:"placeholder,omitempty"`
	Default     *string `protobuf:"bytes,6,opt,name=default,proto3,oneof" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCreateModuleFlagsResponse_Flag) Descriptor deprecated

func (*GetCreateModuleFlagsResponse_Flag) Descriptor() ([]byte, []int)

Deprecated: Use GetCreateModuleFlagsResponse_Flag.ProtoReflect.Descriptor instead.

func (*GetCreateModuleFlagsResponse_Flag) GetDefault

func (x *GetCreateModuleFlagsResponse_Flag) GetDefault() string

func (*GetCreateModuleFlagsResponse_Flag) GetEnvar

func (*GetCreateModuleFlagsResponse_Flag) GetHelp

func (*GetCreateModuleFlagsResponse_Flag) GetName

func (*GetCreateModuleFlagsResponse_Flag) GetPlaceholder

func (x *GetCreateModuleFlagsResponse_Flag) GetPlaceholder() string

func (*GetCreateModuleFlagsResponse_Flag) GetShort

func (*GetCreateModuleFlagsResponse_Flag) ProtoMessage

func (*GetCreateModuleFlagsResponse_Flag) ProtoMessage()

func (*GetCreateModuleFlagsResponse_Flag) ProtoReflect

func (*GetCreateModuleFlagsResponse_Flag) Reset

func (*GetCreateModuleFlagsResponse_Flag) String

type LogMessage

type LogMessage struct {
	Message string              `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Level   LogMessage_LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=xyz.block.ftl.v1.language.LogMessage_LogLevel" json:"level,omitempty"`
	// contains filtered or unexported fields
}

Log message from the language service.

func (*LogMessage) Descriptor deprecated

func (*LogMessage) Descriptor() ([]byte, []int)

Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.

func (*LogMessage) GetLevel

func (x *LogMessage) GetLevel() LogMessage_LogLevel

func (*LogMessage) GetMessage

func (x *LogMessage) GetMessage() string

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) ProtoReflect

func (x *LogMessage) ProtoReflect() protoreflect.Message

func (*LogMessage) Reset

func (x *LogMessage) Reset()

func (*LogMessage) String

func (x *LogMessage) String() string

type LogMessage_LogLevel

type LogMessage_LogLevel int32
const (
	LogMessage_DEBUG LogMessage_LogLevel = 0
	LogMessage_INFO  LogMessage_LogLevel = 1
	LogMessage_WARN  LogMessage_LogLevel = 2
	LogMessage_ERROR LogMessage_LogLevel = 3
)

func (LogMessage_LogLevel) Descriptor

func (LogMessage_LogLevel) Enum

func (LogMessage_LogLevel) EnumDescriptor deprecated

func (LogMessage_LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogMessage_LogLevel.Descriptor instead.

func (LogMessage_LogLevel) Number

func (LogMessage_LogLevel) String

func (x LogMessage_LogLevel) String() string

func (LogMessage_LogLevel) Type

type ModuleConfig

type ModuleConfig struct {

	// name of the module
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// absolute path to the module's directory
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// absolute path
	DeployDir          string   `protobuf:"bytes,3,opt,name=deployDir,proto3" json:"deployDir,omitempty"`
	Build              *string  `protobuf:"bytes,4,opt,name=build,proto3,oneof" json:"build,omitempty"`
	GeneratedSchemaDir *string  `protobuf:"bytes,5,opt,name=generated_schema_dir,json=generatedSchemaDir,proto3,oneof" json:"generated_schema_dir,omitempty"`
	Watch              []string `protobuf:"bytes,6,rep,name=watch,proto3" json:"watch,omitempty"`
	// LanguageConfig contains any metadata specific to a specific language.
	// These are stored in the ftl.toml file under the same key as the language (eg: "go", "java")
	LanguageConfig *structpb.Struct `protobuf:"bytes,7,opt,name=language_config,json=languageConfig,proto3" json:"language_config,omitempty"`
	// contains filtered or unexported fields
}

ModuleConfig contains the configuration for a module, found in the module's ftl.toml file.

func (*ModuleConfig) Descriptor deprecated

func (*ModuleConfig) Descriptor() ([]byte, []int)

Deprecated: Use ModuleConfig.ProtoReflect.Descriptor instead.

func (*ModuleConfig) GetBuild

func (x *ModuleConfig) GetBuild() string

func (*ModuleConfig) GetDeployDir

func (x *ModuleConfig) GetDeployDir() string

func (*ModuleConfig) GetGeneratedSchemaDir

func (x *ModuleConfig) GetGeneratedSchemaDir() string

func (*ModuleConfig) GetLanguageConfig

func (x *ModuleConfig) GetLanguageConfig() *structpb.Struct

func (*ModuleConfig) GetName

func (x *ModuleConfig) GetName() string

func (*ModuleConfig) GetPath

func (x *ModuleConfig) GetPath() string

func (*ModuleConfig) GetWatch

func (x *ModuleConfig) GetWatch() []string

func (*ModuleConfig) ProtoMessage

func (*ModuleConfig) ProtoMessage()

func (*ModuleConfig) ProtoReflect

func (x *ModuleConfig) ProtoReflect() protoreflect.Message

func (*ModuleConfig) Reset

func (x *ModuleConfig) Reset()

func (*ModuleConfig) String

func (x *ModuleConfig) String() string

type ModuleConfigDefaultsRequest

type ModuleConfigDefaultsRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*ModuleConfigDefaultsRequest) Descriptor deprecated

func (*ModuleConfigDefaultsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ModuleConfigDefaultsRequest.ProtoReflect.Descriptor instead.

func (*ModuleConfigDefaultsRequest) GetPath

func (x *ModuleConfigDefaultsRequest) GetPath() string

func (*ModuleConfigDefaultsRequest) ProtoMessage

func (*ModuleConfigDefaultsRequest) ProtoMessage()

func (*ModuleConfigDefaultsRequest) ProtoReflect

func (*ModuleConfigDefaultsRequest) Reset

func (x *ModuleConfigDefaultsRequest) Reset()

func (*ModuleConfigDefaultsRequest) String

func (x *ModuleConfigDefaultsRequest) String() string

type ModuleConfigDefaultsResponse

type ModuleConfigDefaultsResponse struct {

	// Default relative path to the directory containing all build artifacts for deployments
	DeployDir string `protobuf:"bytes,1,opt,name=deployDir,proto3" json:"deployDir,omitempty"`
	// Default build command
	Build *string `protobuf:"bytes,2,opt,name=build,proto3,oneof" json:"build,omitempty"`
	// Default relative path to the directory containing generated schema files
	GeneratedSchemaDir *string `protobuf:"bytes,3,opt,name=generated_schema_dir,json=generatedSchemaDir,proto3,oneof" json:"generated_schema_dir,omitempty"`
	// Default patterns to watch for file changes
	Watch []string `protobuf:"bytes,4,rep,name=watch,proto3" json:"watch,omitempty"`
	// Default language specific configuration.
	// These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
	LanguageConfig *structpb.Struct `protobuf:"bytes,5,opt,name=language_config,json=languageConfig,proto3" json:"language_config,omitempty"`
	// contains filtered or unexported fields
}

ModuleConfigDefaultsResponse provides defaults for ModuleConfig.

The result may be cached by FTL, so defaulting logic should not be changing due to normal module changes. For example, it is valid to return defaults based on which build tool is configured within the module directory, as that is not expected to change during normal operation. It is not recommended to read the module's toml file to determine defaults, as when the toml file is updated, the module defaults will not be recalculated.

func (*ModuleConfigDefaultsResponse) Descriptor deprecated

func (*ModuleConfigDefaultsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ModuleConfigDefaultsResponse.ProtoReflect.Descriptor instead.

func (*ModuleConfigDefaultsResponse) GetBuild

func (x *ModuleConfigDefaultsResponse) GetBuild() string

func (*ModuleConfigDefaultsResponse) GetDeployDir

func (x *ModuleConfigDefaultsResponse) GetDeployDir() string

func (*ModuleConfigDefaultsResponse) GetGeneratedSchemaDir

func (x *ModuleConfigDefaultsResponse) GetGeneratedSchemaDir() string

func (*ModuleConfigDefaultsResponse) GetLanguageConfig

func (x *ModuleConfigDefaultsResponse) GetLanguageConfig() *structpb.Struct

func (*ModuleConfigDefaultsResponse) GetWatch

func (x *ModuleConfigDefaultsResponse) GetWatch() []string

func (*ModuleConfigDefaultsResponse) ProtoMessage

func (*ModuleConfigDefaultsResponse) ProtoMessage()

func (*ModuleConfigDefaultsResponse) ProtoReflect

func (*ModuleConfigDefaultsResponse) Reset

func (x *ModuleConfigDefaultsResponse) Reset()

func (*ModuleConfigDefaultsResponse) String

type Position

type Position struct {
	Filename    string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Line        int64  `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	StartColumn int64  `protobuf:"varint,3,opt,name=startColumn,proto3" json:"startColumn,omitempty"`
	EndColumn   int64  `protobuf:"varint,4,opt,name=endColumn,proto3" json:"endColumn,omitempty"`
	// contains filtered or unexported fields
}

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetEndColumn

func (x *Position) GetEndColumn() int64

func (*Position) GetFilename

func (x *Position) GetFilename() string

func (*Position) GetLine

func (x *Position) GetLine() int64

func (*Position) GetStartColumn

func (x *Position) GetStartColumn() int64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type ProjectConfig

type ProjectConfig struct {
	Path   string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	NoGit  bool   `protobuf:"varint,3,opt,name=no_git,json=noGit,proto3" json:"no_git,omitempty"`
	Hermit bool   `protobuf:"varint,4,opt,name=hermit,proto3" json:"hermit,omitempty"`
	// contains filtered or unexported fields
}

ProjectConfig contains the configuration for a project, found in the ftl-project.toml file.

func (*ProjectConfig) Descriptor deprecated

func (*ProjectConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProjectConfig.ProtoReflect.Descriptor instead.

func (*ProjectConfig) GetHermit

func (x *ProjectConfig) GetHermit() bool

func (*ProjectConfig) GetName

func (x *ProjectConfig) GetName() string

func (*ProjectConfig) GetNoGit

func (x *ProjectConfig) GetNoGit() bool

func (*ProjectConfig) GetPath

func (x *ProjectConfig) GetPath() string

func (*ProjectConfig) ProtoMessage

func (*ProjectConfig) ProtoMessage()

func (*ProjectConfig) ProtoReflect

func (x *ProjectConfig) ProtoReflect() protoreflect.Message

func (*ProjectConfig) Reset

func (x *ProjectConfig) Reset()

func (*ProjectConfig) String

func (x *ProjectConfig) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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