Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateProject(req *models.ProjectCreateRequest) (*models.Project, error)
- func (c *Client) CreateServer(req *models.ServerCreateRequest) (*models.Server, error)
- func (c *Client) DeleteAddonDeployment(deploymentID string) error
- func (c *Client) DeleteProject(projectID string) error
- func (c *Client) DeleteServer(serverID string) error
- func (c *Client) DeployAddon(req *models.AddonDeployRequest) (*models.AddonDeployResponse, error)
- func (c *Client) GetAddon(addonID string) (*models.Addon, error)
- func (c *Client) GetAddonDeployments(projectID string) ([]models.AddonDeployment, error)
- func (c *Client) GetAddons() (*models.AddonListResponse, error)
- func (c *Client) GetConfig() *config.Config
- func (c *Client) GetContainers(projectID string, addonID string) (*models.ListContainersResponse, error)
- func (c *Client) GetLogs(req *models.LogsRequest) (*models.LogsResponse, error)
- func (c *Client) GetOperatorID() string
- func (c *Client) GetProject(projectID string) (*models.Project, error)
- func (c *Client) GetProjects() (*models.ProjectsResponse, error)
- func (c *Client) GetServer(serverID string) (*models.Server, error)
- func (c *Client) GetServers() (*models.ServersResponse, error)
- func (c *Client) GetServices(projectID string, addonID string) (*models.ListServicesResponse, error)
- func (c *Client) GetToken() string
- func (c *Client) IsAuthenticated() bool
- func (c *Client) LoadConfig() error
- func (c *Client) SaveConfig() error
- func (c *Client) SetOperatorID(operatorID string)
- func (c *Client) SetToken(token string)
- func (c *Client) StartExec(req *models.ExecRequest) (*models.ExecResponse, error)
- func (c *Client) StartProxy(req *models.ProxyRequest) (*models.ProxyResponse, error)
- func (c *Client) StartShell(req *models.ShellRequest) (*models.ShellResponse, error)
- func (c *Client) StreamLogs(req *models.LogsRequest, callback func(*models.StreamLogEntry) error) error
- func (c *Client) UpdateProject(projectID string, req *models.ProjectUpdateRequest) (*models.Project, error)
- func (c *Client) UpdateServer(serverID string, req *models.ServerUpdateRequest) (*models.Server, error)
- func (c *Client) VerifyToken() (*models.PipeOpsTokenVerificationResponse, error)
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 NewClientWithConfig ¶ added in v0.2.9
NewClientWithConfig creates a new PipeOps client with the provided configuration
func (*Client) CreateProject ¶
CreateProject creates a new project
func (*Client) CreateServer ¶ added in v0.2.9
CreateServer creates a new server
func (*Client) DeleteAddonDeployment ¶
DeleteAddonDeployment deletes an addon deployment
func (*Client) DeleteProject ¶
DeleteProject deletes a project
func (*Client) DeleteServer ¶ added in v0.2.9
DeleteServer deletes a server
func (*Client) DeployAddon ¶
func (c *Client) DeployAddon(req *models.AddonDeployRequest) (*models.AddonDeployResponse, error)
DeployAddon deploys an addon
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) 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 ¶
GetOperatorID returns the operator ID
func (*Client) GetProject ¶
GetProject retrieves a specific project
func (*Client) GetProjects ¶
func (c *Client) GetProjects() (*models.ProjectsResponse, error)
GetProjects retrieves all projects
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) IsAuthenticated ¶
IsAuthenticated checks if the user is authenticated
func (*Client) LoadConfig ¶
LoadConfig loads the configuration from the config file
func (*Client) SaveConfig ¶
SaveConfig saves the configuration to the config file
func (*Client) SetOperatorID ¶
SetOperatorID sets the operator ID
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