Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandClient ¶
type CommandClient interface {
// GetDeploymentInfo retrieves detailed information about a specific deployment
GetDeploymentInfo(ctx context.Context, namespace, appID string) (*schema.APIResponse[schema.Deployment], error)
// ListDeployments retrieves all deployments
ListDeployments(ctx context.Context) (*schema.APIResponse[[]schema.Deployment], error)
// SaveCustomDomain associates a custom domain with a deployment
SaveCustomDomain(ctx context.Context, appID, domain string) (*schema.APIResponse[struct{}], error)
// StartDeployment starts a new deployment from a YAML file
StartDeployment(ctx context.Context, appID, yamlFile string) (*schema.APIResponse[schema.DeploymentResponse], error)
// GetLogs retrieves logs for a specific deployment
GetLogs(ctx context.Context, namespace, appID string, follow bool, tail int) ([]string, error)
// SendFeedback sends user feedback
SendFeedback(ctx context.Context, text string) error
}
CommandClient abstracts the API client for command usage
func NewCommandClient ¶
func NewCommandClient(apiClient api.APIClient) CommandClient
NewCommandClient creates a new CommandClient
Click to show internal directories.
Click to hide internal directories.