Versions in this module Expand all Collapse all v1 v1.8.0 Oct 16, 2025 Changes in this version + const ErrorCodeEnvironmentNotFound + const ErrorCodeEnvironmentNotPaused + const ErrorCodeInvalidToken + const ErrorCodeNoBuildFound + const ErrorCodeOrgNotFound + 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 EnvironmentManager struct + func NewEnvironmentManager(client client.Client) *EnvironmentManager + func (s *EnvironmentManager) Cancel(id string) error + func (s *EnvironmentManager) GetByID(id string) (*types.Environment, error) + func (s *EnvironmentManager) List(req ListRequest) (*ListResponse, error) + func (s *EnvironmentManager) Rebuild(id string) error + func (s *EnvironmentManager) Restart(id string) error + func (s *EnvironmentManager) Revive(id string) error + func (s *EnvironmentManager) Stop(id string) error + type ListRequest struct + Branch string + Deleted bool + Name string + OrgName string + Page int + PageSize int + PullRequestNumber string + RepoName string + type ListResponse struct + Environments []types.Environment + HasNext bool + Links types.Links + NextPage int