ShellServerToolEnvironment - Go SDK

ShellServerToolEnvironment type definition

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

Server-side execution environment for the shell tool. Only container-backed environments are supported; “local” shells are not.

Supported Types

ContainerAutoEnvironment

1shellServerToolEnvironment := components.CreateShellServerToolEnvironmentContainerAuto(components.ContainerAutoEnvironment{/* values here */})

ContainerReferenceEnvironment

1shellServerToolEnvironment := components.CreateShellServerToolEnvironmentContainerReference(components.ContainerReferenceEnvironment{/* values here */})

Union Discrimination

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

1switch shellServerToolEnvironment.Type {
2 case components.ShellServerToolEnvironmentTypeContainerAuto:
3 // shellServerToolEnvironment.ContainerAutoEnvironment is populated
4 case components.ShellServerToolEnvironmentTypeContainerReference:
5 // shellServerToolEnvironment.ContainerReferenceEnvironment is populated
6}