Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHost ¶
NewHost creates a schema-only plugin host, supporting multiple package versions in tests. This enables running tests offline. If this host is used to load a plugin, that is, to run a Codeinfra program, it will panic.
func NewHostWithProviders ¶
func NewHostWithProviders(schemaDirectoryPath string, providers ...SchemaProvider) plugin.Host
NewHost creates a schema-only plugin host, supporting multiple package versions in tests. This enables running tests offline. If this host is used to load a plugin, that is, to run a Codeinfra program, it will panic.
Types ¶
type SchemaProvider ¶
type SchemaProvider struct {
// contains filtered or unexported fields
}
func NewSchemaProvider ¶
func NewSchemaProvider(name, version string) SchemaProvider
Click to show internal directories.
Click to hide internal directories.