project

package
v0.0.0-...-9e9b179 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Env Project variables

Functions

func CmdEnv

func CmdEnv() []string

CmdEnv Getting variables in the "key=value" format

func CopyFiles

func CopyFiles(ctx context.Context, client *client.Client, override []string)

CopyFiles Copying files from the server

func CreateCert

func CreateCert()

CreateCert create a certificate and key for the project

func DumpDB

func DumpDB(ctx context.Context, client *client.Client, tables []string)

DumpDB Database import from server

func ExtractArchive

func ExtractArchive(ctx context.Context, path string) error

ExtractArchive unzip the archive

func FormatIgnoredPath

func FormatIgnoredPath() string

FormatIgnoredPath Exclude path from tar

func IsEnvExampleFileExists

func IsEnvExampleFileExists() bool

IsEnvExampleFileExists checking for the existence of .env.example file

func IsEnvFileExists

func IsEnvFileExists() bool

IsEnvFileExists checking for the existence of .env file

func LoadEnv

func LoadEnv()

LoadEnv Get variables from .env file

Types

type CallMethod

type CallMethod struct{}

CallMethod to dynamically determine the function name

func (*CallMethod) BitrixAccess

func (a *CallMethod) BitrixAccess()

BitrixAccess Change bitrix database accesses

func (*CallMethod) WordpressAccess

func (a *CallMethod) WordpressAccess()

WordpressAccess Change WordPress database accesses

type DBSettings

type DBSettings struct {
	Host, DataBase, Login, Password, Port string
	ExcludedTables                        []string
}

DBSettings database settings

func (DBSettings) DumpDataParams

func (d DBSettings) DumpDataParams() string

DumpDataParams options for data dump

func (DBSettings) DumpDataTablesParams

func (d DBSettings) DumpDataTablesParams() string

DumpDataTablesParams options for only tables dump

func (DBSettings) DumpTablesParams

func (d DBSettings) DumpTablesParams() string

DumpTablesParams table dump options

func (DBSettings) FormatIgnoredTables

func (d DBSettings) FormatIgnoredTables() string

FormatIgnoredTables Exclude tables from dump

type SSHClient

type SSHClient struct {
	*client.Client
}

SSHClient client ssh

func (SSHClient) ImportDB

func (c SSHClient) ImportDB(ctx context.Context) error

ImportDB Importing a database into a local container

Jump to

Keyboard shortcuts

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