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 ¶
- Variables
- func GetBuilderVector(ctx context.Context) (string, bool)
- func GetConstructorFuncMap(ctx context.Context) (map[string][]*ssa.Function, bool)
- func GetOption(ctx context.Context) (atgconstant.Options, bool)
- func GetSetupFunc(ctx context.Context) (setup.Functions, bool)
- func GetSetupFuncMap(ctx context.Context) (map[string]setup.Functions, bool)
- func GetTestContext() context.Context
- func GetTestContextV2() context.Context
- func GetVariableContext(ctx context.Context) (atgconstant.VariableContext, bool)
- func SetBuilderVector(ctx context.Context, id string) context.Context
- func SetConstructorFuncMap(ctx context.Context, constructorMap map[string][]*ssa.Function) context.Context
- func SetOption(ctx context.Context, opt atgconstant.Options) context.Context
- func SetSetupFunc(ctx context.Context, st setup.Functions) context.Context
- func SetSetupFuncMap(ctx context.Context, st map[string]setup.Functions) context.Context
- func SetVariableContext(ctx context.Context, vtx atgconstant.VariableContext) context.Context
Constants ¶
This section is empty.
Variables ¶
var BuilderVectorKey = builderVectorKey{}
var ConstructorMapKey = constructorMapKey{}
var FuncMapKey = funcMapKey{}
var FunctionsKey = functionsKey{}
var OptionKey = optionKey{}
var VariableContext = variableContext{}
Functions ¶
func GetConstructorFuncMap ¶
func GetTestContext ¶
func GetTestContextV2 ¶
func GetVariableContext ¶
func GetVariableContext(ctx context.Context) (atgconstant.VariableContext, bool)
func SetConstructorFuncMap ¶
func SetSetupFuncMap ¶
func SetVariableContext ¶
func SetVariableContext(ctx context.Context, vtx atgconstant.VariableContext) context.Context
Types ¶
This section is empty.