Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.3.0
type Config struct { ProtoFiles *protoregistry.Files ProtoTypes *protoregistry.Types File string Entrypoint string Vars starlark.StringDict Interactive bool OutputType OutputType Marshaler func(m protoreflect.ProtoMessage) ([]byte, error) }
type OutputType ¶ added in v0.3.0
type OutputType string
const ( OutputJson OutputType = "json" OutputStableJson OutputType = "stablejson" OutputProto OutputType = "proto" OutputText OutputType = "text" OutputYaml OutputType = "yaml" )
type Program ¶ added in v0.2.0
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶ added in v0.2.0
func NewProgram(cfg *Config, loadOptions ...skycfg.LoadOption) (*Program, error)
func (*Program) Exec ¶ added in v0.3.0
func (p *Program) Exec() ([]protoreflect.ProtoMessage, error)
func (*Program) Format ¶ added in v0.4.0
func (p *Program) Format(msgs ...protoreflect.ProtoMessage) error
Click to show internal directories.
Click to hide internal directories.