postgres

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PostgresType = "Postgres"

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Postgres    *client.Postgres    `json:"postgres,omitempty"`
	Project     *client.Project     `json:"project,omitempty"`
	Environment *client.Environment `json:"environment,omitempty"`
}

func (Model) EnvironmentName

func (m Model) EnvironmentName() string

func (Model) ID

func (m Model) ID() string

func (Model) Name

func (m Model) Name() string

func (Model) ProjectName

func (m Model) ProjectName() string

func (Model) Type

func (m Model) Type() string

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(c *client.ClientWithResponses) *Repo

func (*Repo) GetPostgres

func (r *Repo) GetPostgres(ctx context.Context, id string) (*client.PostgresDetail, error)

func (*Repo) GetPostgresConnectionInfo

func (r *Repo) GetPostgresConnectionInfo(ctx context.Context, id string) (*client.PostgresConnectionInfo, error)

func (*Repo) ListPostgres

func (r *Repo) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*client.Postgres, error)

func (*Repo) RestartPostgresDatabase

func (r *Repo) RestartPostgresDatabase(ctx context.Context, id string) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repo *Repo, environmentRepo *environment.Repo, projectRepo *project.Repo) *Service

func (*Service) GetPostgres

func (s *Service) GetPostgres(ctx context.Context, id string) (*Model, error)

func (*Service) ListPostgres

func (s *Service) ListPostgres(ctx context.Context, params *client.ListPostgresParams) ([]*Model, error)

func (*Service) RestartPostgresDatabase

func (s *Service) RestartPostgresDatabase(ctx context.Context, id string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL