Documentation ¶
Index ¶
- func IsJWTSecretCompatibleWithHasuraAuth(jwtSecret *model.ConfigJWTSecret) bool
- func URL(host, service string, port uint, useTLS bool) string
- type ComposeFile
- type DependsOn
- type Docker
- type DockerCompose
- func (dc *DockerCompose) ApplyMetadata(ctx context.Context) error
- func (dc *DockerCompose) ApplyMigrations(ctx context.Context) error
- func (dc *DockerCompose) ApplySeeds(ctx context.Context) error
- func (dc *DockerCompose) Logs(ctx context.Context, extraArgs ...string) error
- func (dc *DockerCompose) ReloadMetadata(ctx context.Context) error
- func (dc *DockerCompose) Start(ctx context.Context) error
- func (dc *DockerCompose) Stop(ctx context.Context, volumes bool) error
- func (dc *DockerCompose) Wrapper(ctx context.Context, extraArgs ...string) error
- func (dc *DockerCompose) WriteComposeFile(composeFile *ComposeFile) error
- type ExposePorts
- type HealthCheck
- type Ingress
- type Ingresses
- type Port
- type Rewrite
- type RunService
- type Service
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJWTSecretCompatibleWithHasuraAuth ¶ added in v1.15.3
func IsJWTSecretCompatibleWithHasuraAuth( jwtSecret *model.ConfigJWTSecret, ) bool
Types ¶
type ComposeFile ¶
type ComposeFile struct { Services map[string]*Service `yaml:"services"` Volumes map[string]struct{} `yaml:"volumes"` }
func ComposeFileFromConfig ¶
func ComposeFileFromConfig( cfg *model.ConfigConfig, subdomain string, projectName string, httpPort uint, useTLS bool, postgresPort uint, dataFolder string, nhostFolder string, dotNhostFolder string, rootFolder string, ports ExposePorts, branch string, dashboardVersion string, configserverImage string, startFunctions bool, caCertificatesPath string, runServices ...*RunService, ) (*ComposeFile, error)
type DockerCompose ¶
type DockerCompose struct {
// contains filtered or unexported fields
}
func New ¶
func New(workingDir, filepath, projectName string) *DockerCompose
func (*DockerCompose) ApplyMetadata ¶
func (dc *DockerCompose) ApplyMetadata(ctx context.Context) error
func (*DockerCompose) ApplyMigrations ¶
func (dc *DockerCompose) ApplyMigrations(ctx context.Context) error
func (*DockerCompose) ApplySeeds ¶
func (dc *DockerCompose) ApplySeeds(ctx context.Context) error
func (*DockerCompose) Logs ¶
func (dc *DockerCompose) Logs(ctx context.Context, extraArgs ...string) error
func (*DockerCompose) ReloadMetadata ¶ added in v1.14.0
func (dc *DockerCompose) ReloadMetadata(ctx context.Context) error
func (*DockerCompose) Wrapper ¶
func (dc *DockerCompose) Wrapper(ctx context.Context, extraArgs ...string) error
func (*DockerCompose) WriteComposeFile ¶
func (dc *DockerCompose) WriteComposeFile(composeFile *ComposeFile) error
type ExposePorts ¶ added in v1.5.3
type HealthCheck ¶
type RunService ¶ added in v1.14.0
type RunService struct { Config *model.ConfigRunServiceConfig Path string }
type Service ¶
type Service struct { Image string `yaml:"image"` DependsOn map[string]DependsOn `yaml:"depends_on,omitempty"` EntryPoint []string `yaml:"entrypoint,omitempty"` Command []string `yaml:"command,omitempty"` Environment map[string]string `yaml:"environment,omitempty"` ExtraHosts []string `yaml:"extra_hosts"` HealthCheck *HealthCheck `yaml:"healthcheck,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Ports []Port `yaml:"ports,omitempty"` Restart string `yaml:"restart"` Volumes []Volume `yaml:"volumes,omitempty"` WorkingDir *string `yaml:"working_dir,omitempty"` }
Click to show internal directories.
Click to hide internal directories.