pipeops

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 Client

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

Client represents the PipeOps client

func NewClient

func NewClient() *Client

NewClient creates a new PipeOps client

func NewClientWithConfig added in v0.2.9

func NewClientWithConfig(cfg *config.Config) *Client

NewClientWithConfig creates a new PipeOps client with the provided configuration

func (*Client) CreateProject

func (c *Client) CreateProject(req *models.ProjectCreateRequest) (*models.Project, error)

CreateProject creates a new project

func (*Client) CreateServer added in v0.2.9

func (c *Client) CreateServer(req *models.ServerCreateRequest) (*models.Server, error)

CreateServer creates a new server

func (*Client) DeleteAddonDeployment

func (c *Client) DeleteAddonDeployment(deploymentID string) error

DeleteAddonDeployment deletes an addon deployment

func (*Client) DeleteProject

func (c *Client) DeleteProject(projectID string) error

DeleteProject deletes a project

func (*Client) DeleteServer added in v0.2.9

func (c *Client) DeleteServer(serverID string) error

DeleteServer deletes a server

func (*Client) DeployAddon

DeployAddon deploys an addon

func (*Client) GetAddon

func (c *Client) GetAddon(addonID string) (*models.Addon, error)

GetAddon retrieves a specific addon by ID

func (*Client) GetAddonDeployments

func (c *Client) GetAddonDeployments(projectID string) ([]models.AddonDeployment, error)

GetAddonDeployments retrieves a list of addon deployments

func (*Client) GetAddons

func (c *Client) GetAddons() (*models.AddonListResponse, error)

GetAddons retrieves a list of addons

func (*Client) GetConfig

func (c *Client) GetConfig() *config.Config

GetConfig returns the configuration

func (*Client) GetContainers

func (c *Client) GetContainers(projectID string, addonID string) (*models.ListContainersResponse, error)

GetContainers retrieves containers for a project

func (*Client) GetLogs

func (c *Client) GetLogs(req *models.LogsRequest) (*models.LogsResponse, error)

GetLogs retrieves project logs

func (*Client) GetOperatorID

func (c *Client) GetOperatorID() string

GetOperatorID returns the operator ID

func (*Client) GetProject

func (c *Client) GetProject(projectID string) (*models.Project, error)

GetProject retrieves a specific project

func (*Client) GetProjects

func (c *Client) GetProjects() (*models.ProjectsResponse, error)

GetProjects retrieves all projects

func (*Client) GetServer added in v0.2.9

func (c *Client) GetServer(serverID string) (*models.Server, error)

GetServer retrieves a specific server by ID

func (*Client) GetServers added in v0.2.9

func (c *Client) GetServers() (*models.ServersResponse, error)

GetServers retrieves all servers

func (*Client) GetServices

func (c *Client) GetServices(projectID string, addonID string) (*models.ListServicesResponse, error)

GetServices retrieves services for a project

func (*Client) GetToken

func (c *Client) GetToken() string

GetToken returns the authentication token

func (*Client) IsAuthenticated

func (c *Client) IsAuthenticated() bool

IsAuthenticated checks if the user is authenticated

func (*Client) LoadConfig

func (c *Client) LoadConfig() error

LoadConfig loads the configuration from the config file

func (*Client) SaveConfig

func (c *Client) SaveConfig() error

SaveConfig saves the configuration to the config file

func (*Client) SetOperatorID

func (c *Client) SetOperatorID(operatorID string)

SetOperatorID sets the operator ID

func (*Client) SetToken

func (c *Client) SetToken(token string)

SetToken sets the authentication token

func (*Client) StartExec

func (c *Client) StartExec(req *models.ExecRequest) (*models.ExecResponse, error)

StartExec starts an exec session

func (*Client) StartProxy

func (c *Client) StartProxy(req *models.ProxyRequest) (*models.ProxyResponse, error)

StartProxy starts a proxy session

func (*Client) StartShell

func (c *Client) StartShell(req *models.ShellRequest) (*models.ShellResponse, error)

StartShell starts a shell session

func (*Client) StreamLogs

func (c *Client) StreamLogs(req *models.LogsRequest, callback func(*models.StreamLogEntry) error) error

StreamLogs streams project logs

func (*Client) UpdateProject

func (c *Client) UpdateProject(projectID string, req *models.ProjectUpdateRequest) (*models.Project, error)

UpdateProject updates a project

func (*Client) UpdateServer added in v0.2.9

func (c *Client) UpdateServer(serverID string, req *models.ServerUpdateRequest) (*models.Server, error)

UpdateServer updates an existing server

func (*Client) VerifyToken

func (c *Client) VerifyToken() (*models.PipeOpsTokenVerificationResponse, error)

VerifyToken verifies the authentication token

Jump to

Keyboard shortcuts

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