internal

package
v0.0.0-...-f50e335 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigSources

func CheckConfigSources(ctx context.Context, opts *CheckConfigSourcesOptions) error

func Create

func Create(ctx context.Context, opt *CreateOptions) error

func CreateCustomDomain

func CreateCustomDomain(ctx context.Context, opts CreateCustomDomainOptions) (err error)

func CreateDefaultDomain

func CreateDefaultDomain(ctx context.Context, opts CreateDefaultDomainOptions) (err error)

func Diff

func Diff(filename string, original []byte, updated []byte) (diff string, err error)

func MigrateK8SToDB

func MigrateK8SToDB(ctx context.Context, opts *MigrateK8SToDBOptions) error

func MigrateResources

func MigrateResources(ctx context.Context, opt *MigrateResourcesOptions)

nolint: gocognit

func Pack

func Pack(opts *PackOptions) (err error)

func Unpack

func Unpack(opts *UnpackOptions) (err error)

func WithTx

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

Types

type CheckConfigSourcesOptions

type CheckConfigSourcesOptions struct {
	DatabaseURL    string
	DatabaseSchema string
	AppIDs         []string
}

type ConfigSource

type ConfigSource struct {
	ID    string
	AppID string
	Data  map[string]string
}

type CreateCustomDomainOptions

type CreateCustomDomainOptions struct {
	DatabaseURL    string
	DatabaseSchema string
	AppID          string
	Domain         string
	ApexDomain     string
}

type CreateDefaultDomainOptions

type CreateDefaultDomainOptions struct {
	DatabaseURL         string
	DatabaseSchema      string
	DefaultDomainSuffix string
}

type CreateOptions

type CreateOptions struct {
	DatabaseURL    string
	DatabaseSchema string
	ResourceDir    string
}

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 PackOptions

type PackOptions struct {
	InputDirectoryPath string
}

type Queryer

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

type UnpackOptions

type UnpackOptions struct {
	DataJSONPath        string
	OutputDirectoryPath string
}

Jump to

Keyboard shortcuts

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