internal

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

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateK8SToDB

func MigrateK8SToDB(opts *MigrateK8SToDBOptions) error

func MigrateResources

func MigrateResources(opt *MigrateResourcesOptions)

func SetupPortal

func SetupPortal(opt *SetupPortalOptions)

func WithTx

func WithTx(ctx context.Context, db *sql.DB, do func(tx *sql.Tx) error) (err error)

Types

type MigrateK8SToDBOptions

type MigrateK8SToDBOptions struct {
	DatabaseURL    string
	DatabaseSchema string
	KubeConfigPath string
	Namespace      string
}

type MigrateResourcesOptions

type MigrateResourcesOptions struct {
	DatabaseURL            string
	DatabaseSchema         string
	DryRun                 *bool
	UpdateConfigSourceFunc func(appID string, configSourceData map[string]string, DryRun bool) error
}

type Queryer

type Queryer interface {
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
}

type SetupPortalOptions

type SetupPortalOptions struct {
	DatabaseURL           string
	DatabaseSchema        string
	DefaultAuthgearDoamin string
	CustomAuthgearDomain  string
	ResourceDir           string
}

Jump to

Keyboard shortcuts

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