bldr_plugin_vardef

package
v0.51.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortPluginVars

func SortPluginVars(vars []*PluginVar)

SortPluginVars sorts a slice of plugin vars.

Types

type PluginDevInfo

type PluginDevInfo struct {

	// PluginVars is the set of variables to set at init time by the development plugin.
	PluginVars []*PluginVar `protobuf:"bytes,1,rep,name=plugin_vars,json=pluginVars,proto3" json:"pluginVars,omitempty"`
	// contains filtered or unexported fields
}

PluginDevInfo is information passed as a .bin file as part of the development plugin entrypoint.

func (*PluginDevInfo) CloneMessageVT

func (m *PluginDevInfo) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*PluginDevInfo) CloneVT

func (m *PluginDevInfo) CloneVT() *PluginDevInfo

func (*PluginDevInfo) EqualMessageVT

func (this *PluginDevInfo) EqualMessageVT(thatMsg any) bool

func (*PluginDevInfo) EqualVT

func (this *PluginDevInfo) EqualVT(that *PluginDevInfo) bool

func (*PluginDevInfo) GetPluginVars

func (x *PluginDevInfo) GetPluginVars() []*PluginVar

func (*PluginDevInfo) LookupPluginDevVar

func (v *PluginDevInfo) LookupPluginDevVar(pkgImportPath, varName string) *PluginVar

LookupPluginDevVar looks up a plugin dev var from the set of vars.

func (*PluginDevInfo) MarshalJSON

func (x *PluginDevInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PluginDevInfo to JSON.

func (*PluginDevInfo) MarshalProtoJSON

func (x *PluginDevInfo) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PluginDevInfo message to JSON.

func (*PluginDevInfo) MarshalProtoText

func (x *PluginDevInfo) MarshalProtoText() string

func (*PluginDevInfo) MarshalToSizedBufferVT

func (m *PluginDevInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PluginDevInfo) MarshalToVT

func (m *PluginDevInfo) MarshalToVT(dAtA []byte) (int, error)

func (*PluginDevInfo) MarshalVT

func (m *PluginDevInfo) MarshalVT() (dAtA []byte, err error)

func (*PluginDevInfo) ProtoMessage

func (*PluginDevInfo) ProtoMessage()

func (*PluginDevInfo) Reset

func (x *PluginDevInfo) Reset()

func (*PluginDevInfo) SizeVT

func (m *PluginDevInfo) SizeVT() (n int)

func (*PluginDevInfo) String

func (x *PluginDevInfo) String() string

func (*PluginDevInfo) UnmarshalJSON

func (x *PluginDevInfo) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PluginDevInfo from JSON.

func (*PluginDevInfo) UnmarshalProtoJSON

func (x *PluginDevInfo) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PluginDevInfo message from JSON.

func (*PluginDevInfo) UnmarshalVT

func (m *PluginDevInfo) UnmarshalVT(dAtA []byte) error

type PluginVar

type PluginVar struct {

	// PkgImportPath is the go package import path.
	PkgImportPath string `protobuf:"bytes,1,opt,name=pkg_import_path,json=pkgImportPath,proto3" json:"pkgImportPath,omitempty"`
	// PkgVar is the variable within the go package.
	PkgVar string `protobuf:"bytes,2,opt,name=pkg_var,json=pkgVar,proto3" json:"pkgVar,omitempty"`
	// Body contains the variable value depending on the variable type.
	//
	// Types that are assignable to Body:
	//
	//	*PluginVar_StringValue
	//	*PluginVar_WebBundlerOutput
	Body isPluginVar_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

PluginVar contains a definition of a variable set by the development plugin entrypoint.

func NewPluginVar

func NewPluginVar(pkgImportPath, pkgVar string, body isPluginVar_Body) *PluginVar

NewPluginVar constructs a new plugin var.

func (*PluginVar) CloneMessageVT

func (m *PluginVar) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*PluginVar) CloneVT

func (m *PluginVar) CloneVT() *PluginVar

func (*PluginVar) EqualMessageVT

func (this *PluginVar) EqualMessageVT(thatMsg any) bool

func (*PluginVar) EqualVT

func (this *PluginVar) EqualVT(that *PluginVar) bool

func (*PluginVar) GetBody

func (m *PluginVar) GetBody() isPluginVar_Body

func (*PluginVar) GetPkgImportPath

func (x *PluginVar) GetPkgImportPath() string

func (*PluginVar) GetPkgVar

func (x *PluginVar) GetPkgVar() string

func (*PluginVar) GetStringValue

func (x *PluginVar) GetStringValue() string

func (*PluginVar) GetVariablePath

func (v *PluginVar) GetVariablePath() string

GetVariablePath returns the package/path.VariableName.

func (*PluginVar) GetWebBundlerOutput

func (x *PluginVar) GetWebBundlerOutput() *bundler.WebBundlerOutput

func (*PluginVar) GetWebBundlerOutputValue

func (v *PluginVar) GetWebBundlerOutputValue() bldr_web_bundler.WebBundlerOutput

GetWebBundlerOutputValue returns the dereferenced value of WebBundlerOutput or empty if unset.

func (*PluginVar) MarshalJSON

func (x *PluginVar) MarshalJSON() ([]byte, error)

MarshalJSON marshals the PluginVar to JSON.

func (*PluginVar) MarshalProtoJSON

func (x *PluginVar) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the PluginVar message to JSON.

func (*PluginVar) MarshalProtoText

func (x *PluginVar) MarshalProtoText() string

func (*PluginVar) MarshalToSizedBufferVT

func (m *PluginVar) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PluginVar) MarshalToVT

func (m *PluginVar) MarshalToVT(dAtA []byte) (int, error)

func (*PluginVar) MarshalVT

func (m *PluginVar) MarshalVT() (dAtA []byte, err error)

func (*PluginVar) ProtoMessage

func (*PluginVar) ProtoMessage()

func (*PluginVar) Reset

func (x *PluginVar) Reset()

func (*PluginVar) SizeVT

func (m *PluginVar) SizeVT() (n int)

func (*PluginVar) String

func (x *PluginVar) String() string

func (*PluginVar) UnmarshalJSON

func (x *PluginVar) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the PluginVar from JSON.

func (*PluginVar) UnmarshalProtoJSON

func (x *PluginVar) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the PluginVar message from JSON.

func (*PluginVar) UnmarshalVT

func (m *PluginVar) UnmarshalVT(dAtA []byte) error

type PluginVar_StringValue

type PluginVar_StringValue struct {
	// StringValue is a value set to a string variable.
	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"`
}

func (*PluginVar_StringValue) CloneOneofVT

func (m *PluginVar_StringValue) CloneOneofVT() isPluginVar_Body

func (*PluginVar_StringValue) CloneVT

func (*PluginVar_StringValue) EqualVT

func (this *PluginVar_StringValue) EqualVT(thatIface isPluginVar_Body) bool

func (*PluginVar_StringValue) MarshalToSizedBufferVT

func (m *PluginVar_StringValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PluginVar_StringValue) MarshalToVT

func (m *PluginVar_StringValue) MarshalToVT(dAtA []byte) (int, error)

func (*PluginVar_StringValue) SizeVT

func (m *PluginVar_StringValue) SizeVT() (n int)

type PluginVar_WebBundlerOutput

type PluginVar_WebBundlerOutput struct {
	// WebBundlerOutput is a web bundler build output / entrypoint.
	WebBundlerOutput *bundler.WebBundlerOutput `protobuf:"bytes,4,opt,name=web_bundler_output,json=webBundlerOutput,proto3,oneof"`
}

func (*PluginVar_WebBundlerOutput) CloneOneofVT

func (m *PluginVar_WebBundlerOutput) CloneOneofVT() isPluginVar_Body

func (*PluginVar_WebBundlerOutput) CloneVT

func (*PluginVar_WebBundlerOutput) EqualVT

func (this *PluginVar_WebBundlerOutput) EqualVT(thatIface isPluginVar_Body) bool

func (*PluginVar_WebBundlerOutput) MarshalToSizedBufferVT

func (m *PluginVar_WebBundlerOutput) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PluginVar_WebBundlerOutput) MarshalToVT

func (m *PluginVar_WebBundlerOutput) MarshalToVT(dAtA []byte) (int, error)

func (*PluginVar_WebBundlerOutput) SizeVT

func (m *PluginVar_WebBundlerOutput) SizeVT() (n int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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