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 + const PostgresType + type Model struct + Environment *client.Environment + Postgres *client.Postgres + Project *client.Project + func (m Model) EnvironmentName() string + func (m Model) ID() string + func (m Model) Name() string + func (m Model) ProjectName() string + func (m Model) Type() string + type Repo struct + func NewRepo(c *client.ClientWithResponses) *Repo + func (r *Repo) GetPostgres(ctx context.Context, id string) (*client.PostgresDetail, error) + func (r *Repo) GetPostgresConnectionInfo(ctx context.Context, id string) (*client.PostgresConnectionInfo, error) + func (r *Repo) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*client.Postgres, error) + func (r *Repo) RestartPostgresDatabase(ctx context.Context, id string) error + type Service struct + func NewService(repo *Repo, environmentRepo *environment.Repo, projectRepo *project.Repo) *Service + func (s *Service) GetPostgres(ctx context.Context, id string) (*Model, error) + func (s *Service) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*Model, error) + func (s *Service) RestartPostgresDatabase(ctx context.Context, id string) error