logicalimport

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package logicalimport contains the logic needed to import a logical snapshot

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Microservice

func Microservice(
	ctx context.Context,
	cluster *apiv1.Cluster,
	destination *pool.ConnectionPool,
	origin *pool.ConnectionPool,
) error

Microservice executes the microservice clone type

func Monolith

func Monolith(
	ctx context.Context,
	cluster *apiv1.Cluster,
	destination *pool.ConnectionPool,
	origin *pool.ConnectionPool,
) error

Monolith executes the monolith clone type

Types

type Role

type Role struct {
	Oid            string  `json:"oid,omitempty"`
	Rolname        string  `json:"rolname,omitempty"`
	Rolsuper       bool    `json:"rolsuper,omitempty"`
	Rolinherit     bool    `json:"rolinherit,omitempty"`
	Rolcreaterole  bool    `json:"rolcreaterole,omitempty"`
	Rolcreatedb    bool    `json:"rolcreatedb,omitempty"`
	Rolcanlogin    bool    `json:"rolcanlogin,omitempty"`
	Rolreplication bool    `json:"rolreplication,omitempty"`
	Rolbypassrls   bool    `json:"rolbypassrls,omitempty"`
	Rolconnlimit   int     `json:"rolconnlimit,omitempty"`
	Rolpassword    *string `json:"rolpassword,omitempty"`
	Rolvaliduntil  *string `json:"rolvaliduntil,omitempty"`
	RolComment     *string `json:"rolcomment,omitempty"`
	IsCurrentUser  bool    `json:"is_current_user,omitempty"`
}

Role a result from pg_authid table

type RoleInheritance

type RoleInheritance struct {
	RoleID      string  `json:"roleid,omitempty"`
	Member      string  `json:"member,omitempty"`
	AdminOption bool    `json:"admin_option,omitempty"`
	Grantor     *string `json:"grantor,omitempty"`
}

RoleInheritance contains the data needed to execute grants, based on pg_authid

Jump to

Keyboard shortcuts

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