common

package
v0.0.0-...-f750f1c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(name string, arg ...string) error

func ExecCmdInDir

func ExecCmdInDir(dir, name string, arg ...string) error

func GeneratePassword

func GeneratePassword(length int) string

func PrependHTTPS

func PrependHTTPS(address string) string

Types

type Caddy

type Caddy struct{}

func (Caddy) Install

func (Caddy) Install() error

func (Caddy) Restart

func (Caddy) Restart() error

func (Caddy) Version

func (Caddy) Version() (version string, err error)

type Docker

type Docker struct{}

func (Docker) Install

func (Docker) Install() error

func (Docker) Version

func (Docker) Version() (version string, err error)

type DockerCompose

type DockerCompose struct{}

func (DockerCompose) Install

func (DockerCompose) Install(currentVersion string) error

func (DockerCompose) PullImages

func (DockerCompose) PullImages(baseDir string) error

func (DockerCompose) RemoveServiceFromConfig

func (DockerCompose) RemoveServiceFromConfig(config, service string) string

func (DockerCompose) Up

func (DockerCompose) Up(baseDir string) error

func (DockerCompose) Version

func (DockerCompose) Version() (version string, err error)

type PostgresConfiguration

type PostgresConfiguration struct {
	InsideDocker bool
	Host         string
	Port         int
	DBName       string
	User         string
	Password     string
	SSLRequired  bool
}

func ConfigurePostgres

func ConfigurePostgres(defaultDBName string) (PostgresConfiguration, error)

type S3Configuration

type S3Configuration struct {
	InsideDocker bool
	Endpoint     string
	Region       string
	Key          string
	Secret       string
	Bucket       string
}

func ConfigureS3

func ConfigureS3(defaultBucketName string) (S3Configuration, error)

Jump to

Keyboard shortcuts

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