postgres

package
v0.0.0-...-2f6d3cb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: BSL-1.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDBResource

type PostgresDBResource struct {
	pulumi.ResourceState

	Roles []*postgresql.Role
	DB    *postgresql.Database
}

func NewPostgresDatabase

func NewPostgresDatabase(ctx *pulumi.Context, name string, props PostgresDbProps, opts ...pulumi.ResourceOption) (*PostgresDBResource, error)

type PostgresDbProps

type PostgresDbProps struct {
	Database string                `json:"database"`
	DbRoles  []PostgresDbRoleProps `json:"dbRoles"`
}

func (PostgresDbProps) String

func (i PostgresDbProps) String() string

type PostgresDbRoleProps

type PostgresDbRoleProps struct {
	Permission PostgresUserPermission `json:"permission"`
}

type PostgresUserPermission

type PostgresUserPermission string
const (
	ReadWrite PostgresUserPermission = "rw"
	ReadOnly  PostgresUserPermission = "ro"
)

type PostgresUserProps

type PostgresUserProps struct {
	Username   string             `json:"username"`
	Password   pulumi.StringInput `json:"password"`
	AssumeRole pulumi.StringInput `json:"assumeRole"`
	Login      bool               `json:"login"`
}

type PostgresUsersResource

type PostgresUsersResource struct {
	pulumi.ResourceState

	Users      []*postgresql.Role
	FailedUser string
}

func NewPostgresUsers

func NewPostgresUsers(ctx *pulumi.Context, name string, props []PostgresUserProps, opts ...pulumi.ResourceOption) (*PostgresUsersResource, error)

Jump to

Keyboard shortcuts

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