context

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 RootModuleManager added in v0.4.0

func RootModuleManager(ctx context.Context) (rootmodule.RootModuleManager, 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 TerraformExecutorFinder added in v0.4.0

func TerraformExecutorFinder(ctx context.Context) (rootmodule.TerraformExecFinder, error)

func Watcher added in v0.4.0

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

func WithClientCapabilities

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

func WithClientCapabilitiesSetter

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

func WithFilesystem

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

func WithParserFinder added in v0.4.0

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

func WithRootDirectory added in v0.4.0

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

func WithRootModuleCandidateFinder added in v0.4.0

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

func WithRootModuleManager added in v0.4.0

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

func WithSignalCancel

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

func WithTerraformExecFinder added in v0.4.0

func WithTerraformExecFinder(tef rootmodule.TerraformExecFinder, ctx context.Context) context.Context

func WithTerraformExecLogPath

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

func WithTerraformExecPath added in v0.4.0

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

func WithTerraformExecTimeout added in v0.3.0

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

func WithWatcher added in v0.4.0

func WithWatcher(w watcher.Watcher, ctx context.Context) 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