Versions in this module Expand all Collapse all v1 v1.1.2 Jan 31, 2025 v1.1.1 Jan 30, 2025 Changes in this version + func BreadcrumbForResource(r Resource) string + type Resource interface + EnvironmentName func() string + ID func() string + Name func() string + ProjectName func() string + Type func() string + func GetResource(ctx context.Context, id string) (Resource, error) + type ResourceParams struct + EnvironmentIDs []string + IncludePreviews bool + func (r ResourceParams) ToPostgresParams() *client.ListPostgresParams + func (r ResourceParams) ToRedisParams() *client.ListRedisParams + func (r ResourceParams) ToServiceParams() *client.ListServicesParams + type Service struct + func NewDefaultResourceService() (*Service, error) + func NewResourceService(serviceService *service.Service, postgresService *postgres.Service, ...) *Service + func (rs *Service) GetResource(ctx context.Context, id string) (Resource, error) + func (rs *Service) ListResources(ctx context.Context, params ResourceParams) ([]Resource, error) + func (rs *Service) RestartResource(ctx context.Context, id string) error