contexthelper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 ByteDance Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var BuilderVectorKey = builderVectorKey{}
View Source
var ConstructorMapKey = constructorMapKey{}
View Source
var FuncMapKey = funcMapKey{}
View Source
var FunctionsKey = functionsKey{}
View Source
var OptionKey = optionKey{}
View Source
var VariableContext = variableContext{}

Functions

func GetBuilderVector

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

func GetConstructorFuncMap

func GetConstructorFuncMap(ctx context.Context) (map[string][]*ssa.Function, bool)

func GetOption

func GetOption(ctx context.Context) (atgconstant.Options, bool)

func GetSetupFunc

func GetSetupFunc(ctx context.Context) (setup.Functions, bool)

func GetSetupFuncMap

func GetSetupFuncMap(ctx context.Context) (map[string]setup.Functions, bool)

func GetTestContext

func GetTestContext() context.Context

func GetTestContextV2

func GetTestContextV2() context.Context

func GetVariableContext

func GetVariableContext(ctx context.Context) (atgconstant.VariableContext, bool)

func SetBuilderVector

func SetBuilderVector(ctx context.Context, id string) context.Context

func SetConstructorFuncMap

func SetConstructorFuncMap(ctx context.Context, constructorMap map[string][]*ssa.Function) context.Context

func SetOption

func SetOption(ctx context.Context, opt atgconstant.Options) context.Context

func SetSetupFunc

func SetSetupFunc(ctx context.Context, st setup.Functions) context.Context

func SetSetupFuncMap

func SetSetupFuncMap(ctx context.Context, st map[string]setup.Functions) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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