Documentation ¶
Index ¶
- func GenerateGoMain(scalefileSchema *scalefile.Schema, signatureSchema *signature.Schema, ...) ([]byte, error)
- func GenerateGoModfile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo, ...) ([]byte, error)
- type FunctionInfo
- type Generator
- type GoModReplacement
- type Manifest
- func (m *Manifest) AddReplacement(oldDependency string, oldVersion string, newDependency string, ...) error
- func (m *Manifest) AddRequire(dependency string, version string) error
- func (m *Manifest) GetReplacement(dependency string) (string, string)
- func (m *Manifest) GetReplacements() []*modfile.Replace
- func (m *Manifest) HasReplacement(oldDependency string, oldVersion string, newDependency string, ...) bool
- func (m *Manifest) HasRequire(dependency string, version string, lax bool) bool
- func (m *Manifest) RemoveReplacement(dependency string, version string) error
- func (m *Manifest) RemoveRequire(dependency string) error
- func (m *Manifest) Write() ([]byte, error)
- type SignatureInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateGoMain ¶
func GenerateGoModfile ¶
func GenerateGoModfile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo, replacements []GoModReplacement) ([]byte, error)
Types ¶
type FunctionInfo ¶ added in v0.4.6
type FunctionInfo struct { // PackageName is the name of the function package PackageName string // ImportPath is the import path for the function, always a path on disk ImportPath string }
FunctionInfo is the import information for a Function
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateGoMain ¶
func (*Generator) GenerateGoModfile ¶
func (g *Generator) GenerateGoModfile(signatureInfo *SignatureInfo, functionInfo *FunctionInfo, replacements []GoModReplacement) ([]byte, error)
type GoModReplacement ¶ added in v0.4.6
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
func ParseManifest ¶
func (*Manifest) AddReplacement ¶
func (*Manifest) AddRequire ¶
func (*Manifest) GetReplacement ¶
func (*Manifest) GetReplacements ¶ added in v0.4.6
func (*Manifest) HasReplacement ¶
func (*Manifest) HasRequire ¶
func (*Manifest) RemoveReplacement ¶
func (*Manifest) RemoveRequire ¶
type SignatureInfo ¶ added in v0.4.6
type SignatureInfo struct { // Local specifies whether the signature is a locally importable signature Local bool // ImportPath is the import path for the signature, if the signature is local this will be a path on disk ImportPath string // ImportVersion is the version of the signature to import, if the signature is local this will be ignored ImportVersion string }
SignatureInfo is the import information for a Signature
Click to show internal directories.
Click to hide internal directories.