common

package
v0.1.0-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL