context

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCapabilities

func ClientCapabilities(ctx context.Context) (lsp.ClientCapabilities, error)

func Filesystem

func Filesystem(ctx context.Context) (filesystem.Filesystem, error)

func ParserFinder added in v0.4.0

func ParserFinder(ctx context.Context) (rootmodule.ParserFinder, error)

func RootDirectory added in v0.4.0

func RootDirectory(ctx context.Context) (string, bool)

func RootModuleCandidateFinder added in v0.4.0

func RootModuleCandidateFinder(ctx context.Context) (rootmodule.RootModuleCandidateFinder, error)

func RootModuleLoader added in v0.5.0

func RootModuleLoader(ctx context.Context) (rootmodule.RootModuleLoader, error)

func RootModuleManager added in v0.4.0

func RootModuleManager(ctx context.Context) (rootmodule.RootModuleManager, error)

func RootModuleWalker added in v0.5.0

func RootModuleWalker(ctx context.Context) (*rootmodule.Walker, error)

func SetClientCapabilities

func SetClientCapabilities(ctx context.Context, caps *lsp.ClientCapabilities) error

func SetRootDirectory added in v0.4.0

func SetRootDirectory(ctx context.Context, dir string) error

func TerraformExecLogPath

func TerraformExecLogPath(ctx context.Context) (string, bool)

func TerraformExecPath added in v0.4.0

func TerraformExecPath(ctx context.Context) (string, bool)

func TerraformExecTimeout added in v0.3.0

func TerraformExecTimeout(ctx context.Context) (time.Duration, bool)

func TerraformFormatterFinder added in v0.5.0

func TerraformFormatterFinder(ctx context.Context) (rootmodule.TerraformFormatterFinder, error)

func Watcher added in v0.4.0

func Watcher(ctx context.Context) (watcher.Watcher, error)

func WithClientCapabilities

func WithClientCapabilities(ctx context.Context, caps *lsp.ClientCapabilities) context.Context

func WithClientCapabilitiesSetter

func WithClientCapabilitiesSetter(ctx context.Context, caps *lsp.ClientCapabilities) context.Context

func WithFilesystem

func WithFilesystem(ctx context.Context, fs filesystem.Filesystem) context.Context

func WithParserFinder added in v0.4.0

func WithParserFinder(ctx context.Context, pf rootmodule.ParserFinder) context.Context

func WithRootDirectory added in v0.4.0

func WithRootDirectory(ctx context.Context, dir *string) context.Context

func WithRootModuleCandidateFinder added in v0.4.0

func WithRootModuleCandidateFinder(ctx context.Context, rmcf rootmodule.RootModuleCandidateFinder) context.Context

func WithRootModuleLoader added in v0.5.0

func WithRootModuleLoader(ctx context.Context, rml rootmodule.RootModuleLoader) context.Context

func WithRootModuleManager added in v0.4.0

func WithRootModuleManager(ctx context.Context, wm rootmodule.RootModuleManager) context.Context

func WithRootModuleWalker added in v0.5.0

func WithRootModuleWalker(ctx context.Context, w *rootmodule.Walker) context.Context

func WithSignalCancel

func WithSignalCancel(ctx context.Context, l *log.Logger, sigs ...os.Signal) (
	context.Context, context.CancelFunc)

func WithTerraformExecLogPath

func WithTerraformExecLogPath(ctx context.Context, path string) context.Context

func WithTerraformExecPath added in v0.4.0

func WithTerraformExecPath(ctx context.Context, path string) context.Context

func WithTerraformExecTimeout added in v0.3.0

func WithTerraformExecTimeout(ctx context.Context, timeout time.Duration) context.Context

func WithTerraformFormatterFinder added in v0.5.0

func WithTerraformFormatterFinder(ctx context.Context, tef rootmodule.TerraformFormatterFinder) context.Context

func WithWatcher added in v0.4.0

func WithWatcher(ctx context.Context, w watcher.Watcher) context.Context

Types

type MissingContextErr added in v0.2.1

type MissingContextErr struct {
	CtxKey *contextKey
}

func (*MissingContextErr) Error added in v0.2.1

func (e *MissingContextErr) Error() string

Jump to

Keyboard shortcuts

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