Versions in this module Expand all Collapse all v1 v1.8.0 Oct 16, 2025 Changes in this version + const ErrorCodeEnvironmentNotFound + const ErrorCodeInvalidToken + const ErrorCodeK8sConnectionFailed + const ErrorCodeLogsNotAvailable + const ErrorCodeServiceNotFound + const ErrorCodeUnknown + func GetErrorCode(err error) string + func GetErrorContext(err error) map[string]interface + func IsBusinessError(err error) bool + func ParseAPIError(err error, context map[string]interface{}) error + type BusinessError struct + Code string + Context map[string]interface{} + Message string + func (e *BusinessError) Error() string + type GetLogsRequest struct + EnvironmentID string + Follow bool + Page int + PageSize int + ServiceName string + TailLines int64 + type LogLine struct + Content string + Service string + Timestamp time.Time + type LogsManager struct + func NewLogsManager(client client.Client) *LogsManager + func (s *LogsManager) FormatLogsAsText(logs []LogLine) string + func (s *LogsManager) GetLogs(ctx context.Context, req GetLogsRequest) (*LogsResponse, error) + func (s *LogsManager) GetLogsReader(ctx context.Context, req GetLogsRequest) (io.Reader, error) + type LogsResponse struct + EnvID string + HasNext bool + Lines []LogLine + NextPage int + Page int + PageSize int + Service string