{"modulePath":"github.com/stacklok/toolhive","version":"v0.76.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\nPackage runtime provides workload deployment setup functionality that was previously part of the transport package.\n\n## Types\n\n```go\ntype SetupResult struct {\n\tContainerName string\n\tTargetURI     string\n\tTargetPort    int\n\tTargetHost    string\n}\n```\nSetupResult contains the results of setting up a workload\n\n```go\nfunc Setup(\n\tctx context.Context,\n\ttransportType types.TransportType,\n\truntime rt.Deployer,\n\tcontainerName string,\n\timage string,\n\tcmdArgs []string,\n\tenvVars, labels map[string]string,\n\tpermissionProfile *permissions.Profile,\n\tk8sPodTemplatePatch string,\n\tisolateNetwork bool,\n\tallowDockerGateway bool,\n\treadOnlyRootfs bool,\n\tignoreConfig *ignore.Config,\n\thost string,\n\ttargetPort int,\n\ttargetHost string,\n\tpublishedPorts []string,\n\tscalingConfig *rt.ScalingConfig,\n\trunConfigMCPServerGeneration int64,\n) (*SetupResult, error)\n```\nSetup prepares and deploys a workload for use with a transport. The runtime parameter provides access to container operations. The permissionProfile is used to configure container permissions (including network mode). The k8sPodTemplatePatch is a JSON string to patch the Kubernetes pod template. Returns the container name and target URI for configuring the transport.\n\n","path":"github.com/stacklok/toolhive/pkg/runtime","name":"runtime","synopsis":"Package runtime provides workload deployment setup functionality that was previously part of the transport package.","isRedistributable":true}
