Documentation
¶
Index ¶
- Variables
- func CheckWorkspaceAccess(workspaceName string, credentials sdk.Credentials) error
- func ErrorHandler(request *http.Request, kind string, name string, body string)
- func Execute(releaseVersion string, releaseCommit string, releaseDate string) error
- func GetHuhTheme() *huh.Theme
- type ApplyResult
- type CreateAgentAppOptions
- type ErrorModel
- type GithubContentResponse
- type GithubTreeResponse
- type IgnoreDir
- type IgnoreFile
- type Operations
- func (r *Operations) ApiKeyLogin(workspace string, environment string)
- func (r *Operations) Apply(filePath string, recursive bool, upload bool) ([]ApplyResult, error)
- func (r *Operations) ApplyCmd() *cobra.Command
- func (r *Operations) CliCommand(ctx context.Context, operationId string, fn interface{})
- func (r *Operations) ClientCredentialsLogin(workspace string, environment string, clientCredentials string)
- func (r *Operations) CreateAgentAppCmd() *cobra.Command
- func (r *Operations) DeleteCmd() *cobra.Command
- func (r *Operations) DeployAgentAppCmd() *cobra.Command
- func (r *Operations) DeviceModeLogin(workspace string, environment string)
- func (r *Operations) DeviceModeLoginFinalize(deviceCode string, workspace string, environment string)
- func (r *Operations) DocCmd() *cobra.Command
- func (r *Operations) GetCmd() *cobra.Command
- func (r *Operations) GetRegistryURL() string
- func (r *Operations) ListOrSetWorkspacesCmd() *cobra.Command
- func (r *Operations) LoginCmd() *cobra.Command
- func (r *Operations) LogoutCmd() *cobra.Command
- func (r *Operations) RunCmd() *cobra.Command
- func (r *Operations) ServeCmd() *cobra.Command
- func (r *Operations) SetBaseURL(url string)
- func (r *Operations) VersionCmd() *cobra.Command
- type RegisterImpl
- type Resource
- func (resource Resource) DeleteFn(name string, options map[string]string)
- func (resource Resource) GetFn(name string, options map[string]string)
- func (resource Resource) ListFn(options map[string]string)
- func (resource Resource) PostFn(resourceName string, name string, resourceObject interface{}, upload bool) ResourceOperationResult
- func (resource Resource) PutFn(resourceName string, name string, resourceObject interface{}, upload bool) ResourceOperationResult
- type ResourceOperationResult
- type Result
- type ResultMetadata
- type TemplateConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var APP_URL = "https://app.beamlit.com"
View Source
var BASE_URL = "https://api.beamlit.com/v0"
View Source
var REGISTRY_URL = "https://us.registry.beamlit.com"
View Source
var RUN_URL = "https://run.beamlit.com"
Functions ¶
func CheckWorkspaceAccess ¶
func CheckWorkspaceAccess(workspaceName string, credentials sdk.Credentials) error
func GetHuhTheme ¶
getTheme returns a custom theme configuration for the CLI interface using the Dracula color scheme. It customizes various UI elements like buttons, text inputs, and selection indicators.
Types ¶
type ApplyResult ¶
type ApplyResult struct {
Kind string
Name string
Result ResourceOperationResult
}
type CreateAgentAppOptions ¶
type CreateAgentAppOptions struct {
Directory string // Target directory for the new agent app
ProjectName string // Name of the project
ProjectDescription string // Description of the project
Language string // Language to use for the project
Template string // Template to use for the project
Author string // Author of the project
TemplateOptions map[string]*string // Options for the template
IgnoreFiles map[string]IgnoreFile
IgnoreDirs map[string]IgnoreDir
}
CreateAgentAppOptions contains all the configuration options needed to create a new agent app.
type ErrorModel ¶
type GithubContentResponse ¶
type GithubContentResponse struct {
Content string `json:"content"`
}
type GithubTreeResponse ¶
type GithubTreeResponse struct {
Tree []struct {
Path string `json:"path"`
} `json:"tree"`
}
type IgnoreFile ¶
type Operations ¶
func (*Operations) ApiKeyLogin ¶
func (r *Operations) ApiKeyLogin(workspace string, environment string)
func (*Operations) Apply ¶
func (r *Operations) Apply(filePath string, recursive bool, upload bool) ([]ApplyResult, error)
func (*Operations) ApplyCmd ¶
func (r *Operations) ApplyCmd() *cobra.Command
func (*Operations) CliCommand ¶
func (r *Operations) CliCommand(ctx context.Context, operationId string, fn interface{})
func (*Operations) ClientCredentialsLogin ¶
func (r *Operations) ClientCredentialsLogin(workspace string, environment string, clientCredentials string)
func (*Operations) CreateAgentAppCmd ¶
func (r *Operations) CreateAgentAppCmd() *cobra.Command
CreateAgentAppCmd returns a cobra.Command that implements the 'create-agent-app' CLI command. The command creates a new Beamlit agent app in the specified directory after collecting necessary configuration through an interactive prompt. Usage: bl create-agent-app directory
func (*Operations) DeleteCmd ¶
func (r *Operations) DeleteCmd() *cobra.Command
func (*Operations) DeployAgentAppCmd ¶
func (r *Operations) DeployAgentAppCmd() *cobra.Command
func (*Operations) DeviceModeLogin ¶
func (r *Operations) DeviceModeLogin(workspace string, environment string)
func (*Operations) DeviceModeLoginFinalize ¶
func (r *Operations) DeviceModeLoginFinalize(deviceCode string, workspace string, environment string)
func (*Operations) DocCmd ¶
func (r *Operations) DocCmd() *cobra.Command
func (*Operations) GetCmd ¶
func (r *Operations) GetCmd() *cobra.Command
func (*Operations) GetRegistryURL ¶
func (r *Operations) GetRegistryURL() string
func (*Operations) ListOrSetWorkspacesCmd ¶
func (r *Operations) ListOrSetWorkspacesCmd() *cobra.Command
func (*Operations) LoginCmd ¶
func (r *Operations) LoginCmd() *cobra.Command
func (*Operations) LogoutCmd ¶
func (r *Operations) LogoutCmd() *cobra.Command
func (*Operations) RunCmd ¶
func (r *Operations) RunCmd() *cobra.Command
func (*Operations) ServeCmd ¶
func (r *Operations) ServeCmd() *cobra.Command
func (*Operations) SetBaseURL ¶
func (r *Operations) SetBaseURL(url string)
func (*Operations) VersionCmd ¶
func (r *Operations) VersionCmd() *cobra.Command
type RegisterImpl ¶
type RegisterImpl struct {
}
type Resource ¶
type Resource struct {
Kind string
Short string
Plural string
Singular string
SpecType reflect.Type
ListParamsType reflect.Type
GetParamsType reflect.Type
DeleteParamsType reflect.Type
List interface{}
Get interface{}
Delete interface{}
Put interface{}
Post interface{}
WithStatus bool
}
type ResourceOperationResult ¶
type ResultMetadata ¶
type TemplateConfig ¶
type TemplateConfig struct {
Variables []struct {
Name string `yaml:"name"`
Label *string `yaml:"label"`
Type string `yaml:"type"`
Description string `yaml:"description"`
File string `yaml:"file"`
Skip string `yaml:"skip"`
Folder string `yaml:"folder"`
Options []struct {
Label string `yaml:"label"`
Value string `yaml:"value"`
Name string `yaml:"name"`
File string `yaml:"file"`
Skip string `yaml:"skip"`
Folder string `yaml:"folder"`
} `yaml:"options"`
} `yaml:"variables"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.