Documentation
¶
Index ¶
- func ApplyCmd() *cobra.Command
- func BootChat(ctx context.Context, workspace string, resourceType string, ...) error
- func Chat(ctx context.Context, workspace string, resourceType string, ...) error
- func ChatCmd() *cobra.Command
- func CheckResource(ctx context.Context, workspace string, resourceType string, ...) error
- func CheckWorkspaceAccess(workspaceName string, credentials blaxel.Credentials) (blaxel.Workspace, error)
- func CompleteAgentNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteFunctionNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteImageNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteImageTags(resourceType, imageName, tagPrefix string) ([]string, cobra.ShellCompDirective)
- func CompleteJobExecutionIDs(jobName string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteJobExecutionTaskIDs(jobName, executionID, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteJobNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteModelNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompletePolicyNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteSandboxNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteSandboxPreviewNames(sandboxName string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteSandboxPreviewTokenNames(sandboxName, previewName, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteSandboxProcessNames(sandboxName string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteVolumeNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteWorkspaceNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ConnectCmd() *cobra.Command
- func ConnectSandboxCmd() *cobra.Command
- func CreateAgentAppCmd() *cobra.Command
- func CreateJobCmd() *cobra.Command
- func CreateMCPCmd() *cobra.Command
- func CreateSandboxCmd() *cobra.Command
- func DeleteCmd() *cobra.Command
- func DeleteFn(resource *core.Resource, name string) error
- func DeleteImagesCmd() *cobra.Command
- func DeleteSandboxPreviewNestedResource(args []string) bool
- func DeployCmd() *cobra.Command
- func Execute(releaseVersion string, releaseCommit string, releaseDate string) error
- func GetChatValidArgsFunction() ...
- func GetCmd() *cobra.Command
- func GetConnectSandboxValidArgsFunction() ...
- func GetFn(resource *core.Resource, name string)
- func GetImageValidArgsFunction() ...
- func GetImagesCmd() *cobra.Command
- func GetJobValidArgsFunction() ...
- func GetLogsValidArgsFunction() ...
- func GetNewValidArgsFunction() ...
- func GetResourceValidArgsFunction(kind string) ...
- func GetRunValidArgsFunction() ...
- func GetSandboxValidArgsFunction() ...
- func GetWorkspaceValidArgsFunction() ...
- func HandleJobNestedResource(args []string) bool
- func HandleSandboxNestedResource(args []string) bool
- func HandleSandboxPreviewNestedResource(args []string) bool
- func ListAllImages()
- func ListExec(resource *core.Resource) ([]interface{}, error)
- func ListFn(resource *core.Resource)
- func ListOrSetWorkspacesCmd() *cobra.Command
- func LoginCmd() *cobra.Command
- func LogoutCmd() *cobra.Command
- func LogsCmd() *cobra.Command
- func NewCmd() *cobra.Command
- func PushCmd() *cobra.Command
- func RunCmd() *cobra.Command
- func SendMessage(ctx context.Context, workspace string, resourceType string, ...) (string, error)
- func SendMessageStream(ctx context.Context, workspace string, resourceType string, ...) error
- func ServeCmd() *cobra.Command
- func TokenCmd() *cobra.Command
- func UpgradeCmd() *cobra.Command
- func ValidateBuildConfig(cwd, folder string, config core.Config) string
- func VersionCmd() *cobra.Command
- type ApplyOption
- type ApplyResult
- type Batch
- type Deployment
- func (d *Deployment) Apply() error
- func (d *Deployment) ApplyInteractive() error
- func (d *Deployment) Generate(skipBuild bool) error
- func (d *Deployment) GenerateDeployment(skipBuild bool) core.Result
- func (d *Deployment) IgnoredPaths() []string
- func (d *Deployment) Print(skipBuild bool) error
- func (d *Deployment) PrintTar() error
- func (d *Deployment) PrintZip() error
- func (d *Deployment) Ready()
- func (d *Deployment) Tar() error
- func (d *Deployment) Upload(url string) error
- func (d *Deployment) Zip() error
- type ResourceOperationResult
- func PostFn(resource *core.Resource, resourceName string, name string, ...) *ResourceOperationResult
- func PostThenPutFn(resource *core.Resource, resourceName string, name string, ...) *ResourceOperationResult
- func PutFn(resource *core.Resource, resourceName string, name string, ...) *ResourceOperationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResource ¶ added in v0.1.27
func CheckWorkspaceAccess ¶
func CompleteAgentNames ¶ added in v0.1.72
func CompleteAgentNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteAgentNames returns a list of agent names for shell completion
func CompleteFunctionNames ¶ added in v0.1.72
func CompleteFunctionNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteFunctionNames returns a list of function names for shell completion
func CompleteImageNames ¶ added in v0.1.72
func CompleteImageNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteImageNames returns a list of image names in the format resourceType/imageName for shell completion
func CompleteImageTags ¶ added in v0.1.72
func CompleteImageTags(resourceType, imageName, tagPrefix string) ([]string, cobra.ShellCompDirective)
CompleteImageTags returns a list of tags for a given image
func CompleteJobExecutionIDs ¶ added in v0.1.72
func CompleteJobExecutionIDs(jobName string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteJobExecutionIDs returns a list of execution IDs for a given job
func CompleteJobExecutionTaskIDs ¶ added in v0.1.72
func CompleteJobExecutionTaskIDs(jobName, executionID, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteJobExecutionTaskIDs returns a list of task IDs for a given job execution
func CompleteJobNames ¶ added in v0.1.72
func CompleteJobNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteJobNames returns a list of job names for shell completion
func CompleteModelNames ¶ added in v0.1.72
func CompleteModelNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteModelNames returns a list of model names for shell completion
func CompletePolicyNames ¶ added in v0.1.72
func CompletePolicyNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompletePolicyNames returns a list of policy names for shell completion
func CompleteSandboxNames ¶ added in v0.1.72
func CompleteSandboxNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteSandboxNames returns a list of sandbox names for shell completion
func CompleteSandboxPreviewNames ¶ added in v0.1.81
func CompleteSandboxPreviewNames(sandboxName string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteSandboxPreviewNames returns a list of preview names for a given sandbox
func CompleteSandboxPreviewTokenNames ¶ added in v0.1.81
func CompleteSandboxPreviewTokenNames(sandboxName, previewName, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteSandboxPreviewTokenNames returns a list of token names for a given sandbox preview
func CompleteSandboxProcessNames ¶ added in v0.1.72
func CompleteSandboxProcessNames(sandboxName string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteSandboxProcessNames returns a list of process names for a given sandbox
func CompleteVolumeNames ¶ added in v0.1.72
func CompleteVolumeNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteVolumeNames returns a list of volume names for shell completion
func CompleteWorkspaceNames ¶ added in v0.1.72
func CompleteWorkspaceNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteWorkspaceNames returns a list of workspace names from the local config for shell completion
func ConnectCmd ¶ added in v0.1.27
func ConnectSandboxCmd ¶ added in v0.1.27
func CreateAgentAppCmd ¶ added in v0.1.27
CreateAgentAppCmd returns a deprecated command that redirects users to `bl new agent`.
func CreateJobCmd ¶ added in v0.1.27
CreateJobCmd returns a deprecated command that redirects users to `bl new job`.
func CreateMCPCmd ¶ added in v0.1.70
CreateMCPCmd returns a deprecated command that redirects users to `bl new mcp`.
func CreateSandboxCmd ¶ added in v0.1.34
CreateSandboxCmd returns a deprecated command that redirects users to `bl new sandbox`.
func DeleteImagesCmd ¶ added in v0.1.55
func DeleteSandboxPreviewNestedResource ¶ added in v0.1.81
DeleteSandboxPreviewNestedResource handles delete for preview nested resources Supports:
bl delete sandbox <name> preview <preview-name> bl delete sandbox <name> preview <preview-name> token <token-name>
func GetChatValidArgsFunction ¶ added in v0.1.72
func GetChatValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetChatValidArgsFunction returns a ValidArgsFunction for the chat command
func GetConnectSandboxValidArgsFunction ¶ added in v0.1.72
func GetConnectSandboxValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetConnectSandboxValidArgsFunction returns a ValidArgsFunction for the connect sandbox command
func GetImageValidArgsFunction ¶ added in v0.1.72
func GetImageValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetImageValidArgsFunction returns a ValidArgsFunction for image commands
func GetImagesCmd ¶ added in v0.1.55
func GetJobValidArgsFunction ¶ added in v0.1.72
func GetJobValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetJobValidArgsFunction returns a ValidArgsFunction for job commands It handles completions for: - job names (first arg) - nested resource keywords like "execution" (second arg) - execution IDs (third arg)
func GetLogsValidArgsFunction ¶ added in v0.1.72
func GetLogsValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetLogsValidArgsFunction returns a ValidArgsFunction for the logs command It handles completions for: - resource types (first arg) - resource names (second arg) - process names for sandboxes OR execution IDs for jobs (third arg, optional) - task IDs for jobs (fourth arg, optional)
func GetNewValidArgsFunction ¶ added in v0.1.72
func GetNewValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetNewValidArgsFunction returns a ValidArgsFunction for the new command It handles completions for: - resource types (first arg)
func GetResourceValidArgsFunction ¶ added in v0.1.72
func GetResourceValidArgsFunction(kind string) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetResourceValidArgsFunction returns a ValidArgsFunction for a given resource kind
func GetRunValidArgsFunction ¶ added in v0.1.72
func GetRunValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetRunValidArgsFunction returns a ValidArgsFunction for the run command It handles completions for: - resource types (first arg) - resource names (second arg)
func GetSandboxValidArgsFunction ¶ added in v0.1.72
func GetSandboxValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetSandboxValidArgsFunction returns a ValidArgsFunction for sandbox commands It handles completions for: - sandbox names (first arg) - nested resource keywords like "process", "preview" (second arg) - process/preview names (third arg) - "token" keyword for previews (fourth arg) - token names (fifth arg)
func GetWorkspaceValidArgsFunction ¶ added in v0.1.72
func GetWorkspaceValidArgsFunction() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
GetWorkspaceValidArgsFunction returns a ValidArgsFunction for the workspace command
func HandleJobNestedResource ¶ added in v0.1.62
HandleJobNestedResource handles nested resources for jobs (like executions) Returns true if a nested resource was handled, false if this is a regular get
func HandleSandboxNestedResource ¶ added in v0.1.72
HandleSandboxNestedResource handles nested resources for sandboxes (like processes) Returns true if a nested resource was handled, false if this is a regular get
func HandleSandboxPreviewNestedResource ¶ added in v0.1.81
HandleSandboxPreviewNestedResource handles preview and preview token nested resources for sandboxes Supports:
bl get sandbox <name> previews bl get sandbox <name> preview <preview-name> bl get sandbox <name> preview <preview-name> tokens bl get sandbox <name> preview <preview-name> token <token-name>
func ListAllImages ¶ added in v0.1.55
func ListAllImages()
ListAllImages lists all images without their tags
func ListOrSetWorkspacesCmd ¶ added in v0.1.27
func NewCmd ¶ added in v0.1.39
NewCmd implements `bl new` which unifies create commands under one entrypoint. Usage:
bl new [type] [directory] [-t template] [-y]
Examples:
bl new agent my-app -t template-google-adk-py bl new mcp my-func -y bl new
func SendMessage ¶ added in v0.1.27
func SendMessageStream ¶ added in v0.1.27
func UpgradeCmd ¶ added in v0.1.57
func ValidateBuildConfig ¶ added in v0.1.87
ValidateBuildConfig checks if the project has proper configuration for building. Used by both deploy and push commands. Returns a warning message if configuration is missing, empty string if all is good.
func VersionCmd ¶ added in v0.1.27
Types ¶
type ApplyOption ¶
type ApplyOption func(*applyOptions)
ApplyOption defines a function type for apply options
func WithRecursive ¶
func WithRecursive(recursive bool) ApplyOption
WithRecursive sets the recursive option
type ApplyResult ¶
type ApplyResult struct {
Kind string
Name string
Result ResourceOperationResult
}
func Apply ¶ added in v0.1.27
func Apply(filePath string, opts ...ApplyOption) ([]ApplyResult, error)
func ApplyResources ¶ added in v0.1.27
func ApplyResources(results []core.Result) ([]ApplyResult, error)
type Batch ¶ added in v0.1.72
type Batch struct {
Tasks []map[string]interface{} `json:"tasks"`
}
Batch represents a batch of tasks for job execution
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func (*Deployment) Apply ¶
func (d *Deployment) Apply() error
func (*Deployment) ApplyInteractive ¶ added in v0.1.44
func (d *Deployment) ApplyInteractive() error
func (*Deployment) Generate ¶
func (d *Deployment) Generate(skipBuild bool) error
func (*Deployment) GenerateDeployment ¶
func (d *Deployment) GenerateDeployment(skipBuild bool) core.Result
func (*Deployment) IgnoredPaths ¶
func (d *Deployment) IgnoredPaths() []string
func (*Deployment) Print ¶
func (d *Deployment) Print(skipBuild bool) error
func (*Deployment) PrintTar ¶ added in v0.1.45
func (d *Deployment) PrintTar() error
func (*Deployment) PrintZip ¶
func (d *Deployment) PrintZip() error
func (*Deployment) Ready ¶ added in v0.1.15
func (d *Deployment) Ready()
func (*Deployment) Tar ¶ added in v0.1.45
func (d *Deployment) Tar() error
func (*Deployment) Upload ¶
func (d *Deployment) Upload(url string) error
func (*Deployment) Zip ¶
func (d *Deployment) Zip() error
type ResourceOperationResult ¶
type ResourceOperationResult struct {
Status string
UploadURL string
ErrorMsg string
CallbackSecret string
MetadataURL string
}
func PostThenPutFn ¶ added in v0.1.87
func PostThenPutFn(resource *core.Resource, resourceName string, name string, resourceObject interface{}, parentName string, metadata map[string]interface{}) *ResourceOperationResult
PostThenPutFn tries POST first, then falls back to PUT on 409 (conflict). Used for sandboxes where creating first is preferred over updating.
Source Files
¶
- apply.go
- chat.go
- completions.go
- connect.go
- createagentapp.go
- createjob.go
- createmcp.go
- createsandbox.go
- delete.go
- deploy.go
- get.go
- get_job_executions.go
- get_sandbox_previews.go
- get_sandbox_processes.go
- images.go
- login.go
- logout.go
- logs.go
- new.go
- push.go
- root.go
- run.go
- run_pty_unix.go
- serve.go
- token.go
- upgrade.go
- version.go
- workspace.go