coolify

package
v0.0.4-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the Python CoolifyClient for Go usage.

func NewClient

func NewClient(cfg Config) (*Client, error)

NewClient creates a new Coolify client.

func (*Client) Call

func (c *Client) Call(ctx context.Context, operationID string, params map[string]any) (map[string]any, error)

Call invokes a Coolify API operation by operationId.

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, name, description string) (map[string]any, error)

CreateProject creates a new project.

func (*Client) DeployApplication

func (c *Client) DeployApplication(ctx context.Context, uuid string) (map[string]any, error)

DeployApplication triggers deployment of an application.

func (*Client) GetApplication

func (c *Client) GetApplication(ctx context.Context, uuid string) (map[string]any, error)

GetApplication returns an application by UUID.

func (*Client) GetDatabase

func (c *Client) GetDatabase(ctx context.Context, uuid string) (map[string]any, error)

GetDatabase returns a database by UUID.

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, uuid string) (map[string]any, error)

GetProject returns a project by UUID.

func (*Client) GetServer

func (c *Client) GetServer(ctx context.Context, uuid string) (map[string]any, error)

GetServer returns a server by UUID.

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, uuid string) (map[string]any, error)

GetService returns a service by UUID.

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context) (map[string]any, error)

GetTeam returns the current team.

func (*Client) GetTeamMembers

func (c *Client) GetTeamMembers(ctx context.Context) ([]map[string]any, error)

GetTeamMembers returns members of the current team.

func (*Client) ListApplications

func (c *Client) ListApplications(ctx context.Context) ([]map[string]any, error)

ListApplications returns all applications.

func (*Client) ListDatabases

func (c *Client) ListDatabases(ctx context.Context) ([]map[string]any, error)

ListDatabases returns all databases.

func (*Client) ListEnvironments

func (c *Client) ListEnvironments(ctx context.Context, projectUUID string) ([]map[string]any, error)

ListEnvironments returns environments for a project.

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context) ([]map[string]any, error)

ListProjects returns all projects.

func (*Client) ListServers

func (c *Client) ListServers(ctx context.Context) ([]map[string]any, error)

ListServers returns all servers.

func (*Client) ListServices

func (c *Client) ListServices(ctx context.Context) ([]map[string]any, error)

ListServices returns all services.

func (*Client) ValidateServer

func (c *Client) ValidateServer(ctx context.Context, uuid string) (map[string]any, error)

ValidateServer validates a server by UUID.

type Config

type Config struct {
	BaseURL   string
	APIToken  string
	Timeout   int
	VerifySSL bool
}

Config holds Coolify client configuration.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default configuration from environment.

Jump to

Keyboard shortcuts

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