installer

package module
v0.0.0-...-3631c0f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityConfig

type CapabilityConfig struct {
	Category      string
	Pkg           string
	MajorVersion  int
	PreReleaseTag string
	Files         []string
}

func (*CapabilityConfig) FullProtoFiles

func (c *CapabilityConfig) FullProtoFiles() []string

func (*CapabilityConfig) Validate

func (c *CapabilityConfig) Validate() error

type Generator

type Generator struct {
	GeneratorHelper
}

func (*Generator) Generate

func (g *Generator) Generate(config *CapabilityConfig) error

func (*Generator) GenerateMany

func (g *Generator) GenerateMany(dirToConfig map[string]*CapabilityConfig) error

type GeneratorHelper

type GeneratorHelper interface {
	// FullGoPackageName specifies a go package name for the capability.
	FullGoPackageName(c *CapabilityConfig) string
	// SdkPgk returns where the base SDK and metadata protos are generated
	SdkPgk() string
	// PluginName returns the fully quantified name of the protoc plugin to install.
	// It will be verified that the package generating uses the same version of github.com/smartcontractkit/chainlink-common/pkg/values
	// as the plugin.
	PluginName() string
	// HelperName returns the fully quantified name of the helper package for the generator.
	HelperName() string
}

GeneratorHelper defines parameters for generating capability code with a protoc plugin.

Jump to

Keyboard shortcuts

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