Documentation ¶
Overview ¶
Copyright 2022, Pulumi Corporation. All rights reserved.
The logic specific to Pulumi YAML.
Index ¶
- func MakeIOWriter[T any](f func(Writer, T)) func(io.Writer, T)
- func Methods(host plugin.Host) *lsp.Methods
- func NewDocumentAnalysisPipeline(c lsp.Client, text lsp.Document, loader schema.ReferenceLoader) *documentAnalysisPipeline
- type Invoke
- type KeyPos
- type Object
- type Reference
- type Resource
- type SchemaCache
- type SchemaLoader
- type UnparsableError
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocumentAnalysisPipeline ¶
func NewDocumentAnalysisPipeline(c lsp.Client, text lsp.Document, loader schema.ReferenceLoader) *documentAnalysisPipeline
Creates a new asynchronous analysis pipeline, returning a handle to the process. To avoid a memory leak, ${RESULT}.cancel must be called.
Types ¶
type Object ¶
type Object interface { Describe() (protocol.MarkupContent, bool) Range() *protocol.Range // contains filtered or unexported methods }
An object in the schema that can be acted upon.
type SchemaCache ¶
type SchemaCache struct {
// contains filtered or unexported fields
}
A server level cache for schema loading.
func (*SchemaCache) Loader ¶
func (c *SchemaCache) Loader(client lsp.Client) schema.ReferenceLoader
func (SchemaCache) ResolveFunction ¶
ResolveFunction resolves an arbitrary function token into an appropriate schema.Resource.
func (SchemaCache) ResolveResource ¶
ResolveResource resolves an arbitrary resource token into an appropriate schema.Resource.
type SchemaLoader ¶
type SchemaLoader struct {
// contains filtered or unexported fields
}
func (SchemaLoader) LoadPackage ¶
func (SchemaLoader) LoadPackageReference ¶
func (l SchemaLoader) LoadPackageReference(pkg string, version *semver.Version) (schema.PackageReference, error)
type UnparsableError ¶
type UnparsableError struct { Bail bool // If an attempt should be made to continue without the parsed schema // contains filtered or unexported fields }
func (UnparsableError) Error ¶
func (e UnparsableError) Error() string
Click to show internal directories.
Click to hide internal directories.