Documentation ¶
Index ¶
- type BackendOptimizer
- type BackendSerializer
- type BackendTargetGenerator
- type FqdnResolver
- type MiddleendVisitor
- type Module
- func (m *Module) BackendPhase(file pgs.File, registry *jsonschema.Registry, optimizer BackendOptimizer, ...) pgs.Artifact
- func (m *Module) Execute(targets map[string]pgs.File, packages map[string]pgs.Package) []pgs.Artifact
- func (m *Module) InitContext(c pgs.BuildContext)
- func (m *Module) Name() string
- type MultiDraftGenerator
- type OptimizerImpl
- type SerializerImpl
- type WellKnownFieldType
- type WellKnownMessageType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendOptimizer ¶
type BackendOptimizer interface {
Optimize(registry *jsonschema.Registry, entrypointMessage pgs.Message)
}
type BackendSerializer ¶
type BackendTargetGenerator ¶
type BackendTargetGenerator interface {
Generate(registry *jsonschema.Registry, entrypointMessage pgs.Message, fileOptions *proto.FileOptions) any
}
type FqdnResolver ¶
type FqdnResolver interface {
FullyQualifiedName() string
}
type MiddleendVisitor ¶
MiddleendVisitor generate intermediate jsonschema from protobuf
func NewVisitor ¶
func NewVisitor(debugger pgs.DebuggerCommon) *MiddleendVisitor
func (*MiddleendVisitor) VisitField ¶
func (*MiddleendVisitor) VisitMessage ¶
type Module ¶
type Module struct { *pgs.ModuleBase // contains filtered or unexported fields }
func (*Module) BackendPhase ¶
func (m *Module) BackendPhase(file pgs.File, registry *jsonschema.Registry, optimizer BackendOptimizer, generator BackendTargetGenerator, serializer BackendSerializer) pgs.Artifact
func (*Module) InitContext ¶
func (m *Module) InitContext(c pgs.BuildContext)
type MultiDraftGenerator ¶
type MultiDraftGenerator struct {
// contains filtered or unexported fields
}
func NewMultiDraftGenerator ¶
func NewMultiDraftGenerator(pluginOptions *proto.PluginOptions) *MultiDraftGenerator
func (*MultiDraftGenerator) Generate ¶
func (g *MultiDraftGenerator) Generate(registry *jsonschema.Registry, entrypointMessage pgs.Message, fileOptions *proto.FileOptions) any
type OptimizerImpl ¶
type OptimizerImpl struct {
// contains filtered or unexported fields
}
func NewOptimizerImpl ¶
func NewOptimizerImpl(pluginOptions *proto.PluginOptions) *OptimizerImpl
func (*OptimizerImpl) Optimize ¶
func (o *OptimizerImpl) Optimize(registry *jsonschema.Registry, entrypointMessage pgs.Message)
type SerializerImpl ¶
type SerializerImpl struct {
// contains filtered or unexported fields
}
func NewSerializerImpl ¶
func NewSerializerImpl(pluginOptions *proto.PluginOptions) *SerializerImpl
func (*SerializerImpl) ToFileName ¶
func (s *SerializerImpl) ToFileName(file pgs.File) string
type WellKnownFieldType ¶
type WellKnownFieldType int
const ( WellKnownTypeNone WellKnownFieldType = iota WellKnownTypeTimestamp WellKnownTypeDuration WellKnownTypeAny WellKnownTypeNullValue WellKnownTypeStruct WellKnownTypeListValue WellKnownTypeValue )
type WellKnownMessageType ¶
type WellKnownMessageType int
const ( WellKnownMessageTypeNone WellKnownMessageType = iota WellKnownMessageTypeK8sIntOrString WellKnownMessageTypeK8sVolume WellKnownMessageTypeK8sSecretProjection WellKnownMessageTypeK8sConfigMapVolumeSource WellKnownMessageTypeK8sConfigMapProjection WellKnownMessageTypeK8sConfigMapKeySelector WellKnownMessageTypeK8sSecretKeySelector WellKnownMessageTypeK8sConfigMapEnvSource WellKnownMessageTypeK8sSecretEnvSource WellKnownMessageTypeK8sProbe WellKnownMessageTypeK8sEphemeralContainer )
Click to show internal directories.
Click to hide internal directories.