context

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandPrefix added in v0.9.0

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

func DiagnosticsNotifier added in v0.20.1

func DiagnosticsNotifier(ctx context.Context) (*diagnostics.Notifier, error)

func ExperimentalFeatures added in v0.12.0

func ExperimentalFeatures(ctx context.Context) (settings.ExperimentalFeatures, error)

func LanguageServerVersion added in v0.11.0

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

func ModuleWalker added in v0.13.0

func ModuleWalker(ctx context.Context) (*module.Walker, error)

func ProgressToken added in v0.11.0

func ProgressToken(ctx context.Context) (lsp.ProgressToken, bool)

func RootDirectory added in v0.4.0

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

func SetCommandPrefix added in v0.9.0

func SetCommandPrefix(ctx context.Context, prefix string) error

func SetExperimentalFeatures added in v0.12.0

func SetExperimentalFeatures(ctx context.Context, expFeatures settings.ExperimentalFeatures) 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 Watcher added in v0.4.0

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

func WithCommandPrefix added in v0.9.0

func WithCommandPrefix(ctx context.Context, prefix *string) context.Context

func WithDiagnosticsNotifier added in v0.20.1

func WithDiagnosticsNotifier(ctx context.Context, diags *diagnostics.Notifier) context.Context

func WithExperimentalFeatures added in v0.12.0

func WithExperimentalFeatures(ctx context.Context, expFeatures *settings.ExperimentalFeatures) context.Context

func WithLanguageServerVersion added in v0.11.0

func WithLanguageServerVersion(ctx context.Context, version string) context.Context

func WithModuleWalker added in v0.13.0

func WithModuleWalker(ctx context.Context, w *module.Walker) context.Context

func WithProgressToken added in v0.11.0

func WithProgressToken(ctx context.Context, pt lsp.ProgressToken) context.Context

func WithRootDirectory added in v0.4.0

func WithRootDirectory(ctx context.Context, dir *string) 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 WithWatcher added in v0.4.0

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