Documentation
¶
Index ¶
- func ReadDocument(u uri.URI) (contents []byte, err error)
- type BakeHCLDocument
- type ComposeDocument
- type DockerfileDocument
- type Document
- type DocumentMap
- type Manager
- func (m *Manager) Get(ctx context.Context, u uri.URI) Document
- func (m *Manager) Keys() []uri.URI
- func (m *Manager) Overwrite(ctx context.Context, u uri.URI, version int32, input []byte) (bool, error)
- func (m *Manager) Read(ctx context.Context, u uri.URI) (doc Document, err error)
- func (m *Manager) Remove(u uri.URI)
- func (m *Manager) Version(ctx context.Context, u uri.URI) (int32, error)
- func (m *Manager) Write(ctx context.Context, u uri.URI, identifier protocol.LanguageIdentifier, ...) (bool, error)
- type ManagerOpt
- type NewDocumentFunc
- type ReadDocumentFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BakeHCLDocument ¶
type BakeHCLDocument interface {
Document
Decoder() *decoder.PathDecoder
File() *hcl.File
}
func NewBakeHCLDocument ¶
func NewBakeHCLDocument(u uri.URI, version int32, input []byte) BakeHCLDocument
type ComposeDocument ¶
type ComposeDocument interface {
Document
RootNode() yaml.Node
}
func NewComposeDocument ¶
func NewComposeDocument(u uri.URI, version int32, input []byte) ComposeDocument
type DockerfileDocument ¶
type DockerfileDocument interface {
Document
Instruction(p protocol.Position) *parser.Node
Nodes() []*parser.Node
}
func NewDockerfileDocument ¶
func NewDockerfileDocument(u uri.URI, version int32, input []byte) DockerfileDocument
type Document ¶
type Document interface {
URI() uri.URI
Copy() Document
Input() []byte
Version() int32
Update(version int32, input []byte) bool
Close()
LanguageIdentifier() protocol.LanguageIdentifier
}
func NewDocument ¶
type DocumentMap ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager provides simplified file read/write operations for the LSP server.
func NewDocumentManager ¶
func NewDocumentManager(opts ...ManagerOpt) *Manager
type ManagerOpt ¶
type ManagerOpt func(manager *Manager)
func WithNewDocumentFunc ¶
func WithNewDocumentFunc(newDocFunc NewDocumentFunc) ManagerOpt
func WithReadDocumentFunc ¶
func WithReadDocumentFunc(readDocFunc ReadDocumentFunc) ManagerOpt
type NewDocumentFunc ¶
Click to show internal directories.
Click to hide internal directories.