BashServerToolEnvironment - Go SDK

BashServerToolEnvironment type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Execution environment for the bash server tool.

Supported Types

ContainerAutoEnvironment

1bashServerToolEnvironment := components.CreateBashServerToolEnvironmentContainerAuto(components.ContainerAutoEnvironment{/* values here */})

ContainerReferenceEnvironment

1bashServerToolEnvironment := components.CreateBashServerToolEnvironmentContainerReference(components.ContainerReferenceEnvironment{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

1switch bashServerToolEnvironment.Type {
2 case components.BashServerToolEnvironmentTypeContainerAuto:
3 // bashServerToolEnvironment.ContainerAutoEnvironment is populated
4 case components.BashServerToolEnvironmentTypeContainerReference:
5 // bashServerToolEnvironment.ContainerReferenceEnvironment is populated
6}