compose

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// docker compose service names
	SvcPostgres      = "postgres"
	SvcAuth          = "auth"
	SvcStorage       = "storage"
	SvcFunctions     = "functions"
	SvcMinio         = "minio"
	SvcMailhog       = "mailhog"
	SvcHasura        = "hasura"
	SvcTraefik       = "traefik"
	SvcGraphqlEngine = "graphql-engine"
)

Variables

This section is empty.

Functions

func CommandWithExistingConfig added in v0.7.9

func CommandWithExistingConfig(ctx context.Context, projectName string, args []string, streams *DataStreams) (*exec.Cmd, error)

func DbDataDirGitBranchScopedPath added in v0.7.9

func DbDataDirGitBranchScopedPath(gitBranch, path string) string

func HasuraCliVersion

func HasuraCliVersion() (string, error)

HasuraCliVersion extracts version from Hasura CLI docker image. That allows us to keep the same version of Hasura CLI both in the docker image and in the hasura-cli on the host

func MailHogDataDirGiBranchScopedPath added in v0.7.9

func MailHogDataDirGiBranchScopedPath(gitBranch string) string

func MinioDataDirGitBranchScopedPath added in v0.7.9

func MinioDataDirGitBranchScopedPath(gitBranch string) string

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(conf *nhost.Configuration, p nhost.Ports, env []string, gitBranch, projectName string) *Config

func (*Config) BuildJSON

func (c *Config) BuildJSON() ([]byte, error)

func (Config) PublicAuthConnectionString

func (c Config) PublicAuthConnectionString() string

func (Config) PublicFunctionsConnectionString

func (c Config) PublicFunctionsConnectionString() string

func (Config) PublicHasuraConnectionString

func (c Config) PublicHasuraConnectionString() string

func (Config) PublicPostgresConnectionString

func (c Config) PublicPostgresConnectionString() string

func (Config) PublicStorageConnectionString

func (c Config) PublicStorageConnectionString() string

func (Config) RunMinioService added in v0.7.10

func (c Config) RunMinioService() bool

type DataStreams

type DataStreams struct {
	Stdout io.Writer
	Stderr io.Writer
}

type Wrapper added in v0.7.9

type Wrapper struct {
	// contains filtered or unexported fields
}

func InitWrapper added in v0.7.9

func InitWrapper(workdir, gitBranch string, conf *Config) (*Wrapper, error)

func (Wrapper) Command added in v0.7.9

func (w Wrapper) Command(ctx context.Context, args []string, streams *DataStreams) (*exec.Cmd, error)

Jump to

Keyboard shortcuts

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