{"modulePath":"github.com/render-oss/cli","version":"v1.1.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package postgres\n\n## Constants\n\n```go\nconst PostgresType = \"Postgres\"\n```\n\n## Types\n\n```go\ntype Model struct {\n\tPostgres    *client.Postgres    `json:\"postgres,omitempty\"`\n\tProject     *client.Project     `json:\"project,omitempty\"`\n\tEnvironment *client.Environment `json:\"environment,omitempty\"`\n}\n```\n\n```go\nfunc (m Model) EnvironmentName() string\n```\n\n```go\nfunc (m Model) ID() string\n```\n\n```go\nfunc (m Model) Name() string\n```\n\n```go\nfunc (m Model) ProjectName() string\n```\n\n```go\nfunc (m Model) Type() string\n```\n\n```go\ntype Repo struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRepo(c *client.ClientWithResponses) *Repo\n```\n\n```go\nfunc (r *Repo) GetPostgres(ctx context.Context, id string) (*client.PostgresDetail, error)\n```\n\n```go\nfunc (r *Repo) GetPostgresConnectionInfo(ctx context.Context, id string) (*client.PostgresConnectionInfo, error)\n```\n\n```go\nfunc (r *Repo) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*client.Postgres, error)\n```\n\n```go\nfunc (r *Repo) RestartPostgresDatabase(ctx context.Context, id string) error\n```\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewService(repo *Repo, environmentRepo *environment.Repo, projectRepo *project.Repo) *Service\n```\n\n```go\nfunc (s *Service) GetPostgres(ctx context.Context, id string) (*Model, error)\n```\n\n```go\nfunc (s *Service) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*Model, error)\n```\n\n```go\nfunc (s *Service) RestartPostgresDatabase(ctx context.Context, id string) error\n```\n\n","path":"github.com/render-oss/cli/pkg/postgres","name":"postgres","synopsis":"","isRedistributable":true}
