Documentation
¶
Index ¶
- Constants
- type AppRunInfo
- func (a *AppRunInfo) ContainerPort() int
- func (a *AppRunInfo) DockerCommand() []string
- func (a *AppRunInfo) DockerComposePath() string
- func (a *AppRunInfo) DockerEntrypoint() []string
- func (a *AppRunInfo) Dockerfile() string
- func (a *AppRunInfo) DockerfilePath() string
- func (a *AppRunInfo) DockerfileYAML() ([]byte, error)
- func (a *AppRunInfo) Env() map[string]string
- func (a *AppRunInfo) Name() string
- func (a *AppRunInfo) SanitizedName() string
- func (a *AppRunInfo) Vars() map[string]string
- func (a *AppRunInfo) Volumes() map[string]string
- func (a *AppRunInfo) WorkDir() string
- type AppRunOptions
- type AppType
- type DependencyRunInfo
- func (a *DependencyRunInfo) ContainerPort() int
- func (a *DependencyRunInfo) DockerCommand() []string
- func (a *DependencyRunInfo) DockerComposePath() string
- func (a *DependencyRunInfo) DockerEntrypoint() []string
- func (a *DependencyRunInfo) DockerImage() string
- func (a *DependencyRunInfo) DockerPath() string
- func (a *DependencyRunInfo) Env() map[string]string
- func (a *DependencyRunInfo) Name() string
- func (a *DependencyRunInfo) SanitizedName() string
- func (a *DependencyRunInfo) Vars() map[string]string
- func (a *DependencyRunInfo) Volumes() map[string]string
- func (a *DependencyRunInfo) WorkDir() string
- type DependencyRunOptions
- type DependencyType
- type Plugin
- func (p *Plugin) Init(ctx context.Context, e env.Enver, l log.Logger, cli apiv1.HostServiceClient) error
- func (p *Plugin) ProjectInit(ctx context.Context, r *apiv1.ProjectInitRequest) (*apiv1.ProjectInitResponse, error)
- func (p *Plugin) Run(r *apiv1.RunRequest, stream apiv1.RunPluginService_RunServer) error
- func (p *Plugin) Start(ctx context.Context, r *apiv1.StartRequest) (*apiv1.StartResponse, error)
- type RunOptions
Constants ¶
View Source
const ( DefaultDockerfile = "Dockerfile" AppRunDockerfile = "Dockerfile.dev" AppRunDockerCompose = "docker-compose.outblocks.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRunInfo ¶ added in v0.1.5
type AppRunInfo struct {
*apiv1.AppRun
Hosts map[string]string
Type AppType
Options *AppRunOptions
Production bool
}
func NewAppRunInfo ¶ added in v0.1.5
func NewAppRunInfo(app *apiv1.AppRun, hosts map[string]string, runOpts *RunOptions) (*AppRunInfo, error)
func (*AppRunInfo) ContainerPort ¶ added in v0.1.11
func (a *AppRunInfo) ContainerPort() int
func (*AppRunInfo) DockerCommand ¶ added in v0.1.5
func (a *AppRunInfo) DockerCommand() []string
func (*AppRunInfo) DockerComposePath ¶ added in v0.1.5
func (a *AppRunInfo) DockerComposePath() string
func (*AppRunInfo) DockerEntrypoint ¶ added in v0.1.18
func (a *AppRunInfo) DockerEntrypoint() []string
func (*AppRunInfo) Dockerfile ¶ added in v0.1.5
func (a *AppRunInfo) Dockerfile() string
func (*AppRunInfo) DockerfilePath ¶ added in v0.1.5
func (a *AppRunInfo) DockerfilePath() string
func (*AppRunInfo) DockerfileYAML ¶ added in v0.1.5
func (a *AppRunInfo) DockerfileYAML() ([]byte, error)
func (*AppRunInfo) Env ¶ added in v0.1.5
func (a *AppRunInfo) Env() map[string]string
func (*AppRunInfo) Name ¶ added in v0.1.5
func (a *AppRunInfo) Name() string
func (*AppRunInfo) SanitizedName ¶ added in v0.1.22
func (a *AppRunInfo) SanitizedName() string
func (*AppRunInfo) Vars ¶ added in v0.1.22
func (a *AppRunInfo) Vars() map[string]string
func (*AppRunInfo) Volumes ¶ added in v0.1.5
func (a *AppRunInfo) Volumes() map[string]string
func (*AppRunInfo) WorkDir ¶ added in v0.1.5
func (a *AppRunInfo) WorkDir() string
type AppRunOptions ¶ added in v0.1.5
type AppRunOptions struct {
DockerEntrypoint *command.StringCommand `json:"docker_entrypoint"`
DockerCommand *command.StringCommand `json:"docker_command"`
DockerPort int `json:"docker_port"`
DockerWorkdir *string `json:"docker_workdir"`
Dockerfile *string `json:"dockerfile"`
Container *types.ServiceAppContainer `json:"container"`
}
type DependencyRunInfo ¶ added in v0.1.22
type DependencyRunInfo struct {
*apiv1.DependencyRun
Hosts map[string]string
Type DependencyType
DatabaseOptions *types.DatabaseDepOptions
StorageOptions *types.StorageDepOptions
Options *DependencyRunOptions
// contains filtered or unexported fields
}
func NewDependencyRunInfo ¶ added in v0.1.22
func NewDependencyRunInfo(dep *apiv1.DependencyRun, hosts map[string]string, e env.Enver) (*DependencyRunInfo, error)
func (*DependencyRunInfo) ContainerPort ¶ added in v0.1.22
func (a *DependencyRunInfo) ContainerPort() int
func (*DependencyRunInfo) DockerCommand ¶ added in v0.1.22
func (a *DependencyRunInfo) DockerCommand() []string
func (*DependencyRunInfo) DockerComposePath ¶ added in v0.1.22
func (a *DependencyRunInfo) DockerComposePath() string
func (*DependencyRunInfo) DockerEntrypoint ¶ added in v0.1.22
func (a *DependencyRunInfo) DockerEntrypoint() []string
func (*DependencyRunInfo) DockerImage ¶ added in v0.1.22
func (a *DependencyRunInfo) DockerImage() string
func (*DependencyRunInfo) DockerPath ¶ added in v0.1.22
func (a *DependencyRunInfo) DockerPath() string
func (*DependencyRunInfo) Env ¶ added in v0.1.22
func (a *DependencyRunInfo) Env() map[string]string
func (*DependencyRunInfo) Name ¶ added in v0.1.22
func (a *DependencyRunInfo) Name() string
func (*DependencyRunInfo) SanitizedName ¶ added in v0.1.22
func (a *DependencyRunInfo) SanitizedName() string
func (*DependencyRunInfo) Vars ¶ added in v0.1.22
func (a *DependencyRunInfo) Vars() map[string]string
func (*DependencyRunInfo) Volumes ¶ added in v0.1.22
func (a *DependencyRunInfo) Volumes() map[string]string
func (*DependencyRunInfo) WorkDir ¶ added in v0.1.22
func (a *DependencyRunInfo) WorkDir() string
type DependencyRunOptions ¶ added in v0.1.22
type DependencyRunOptions struct {
DockerCommand *command.StringCommand `json:"docker_command"`
DockerEntrypoint *command.StringCommand `json:"docker_entrypoint"`
DockerEnv map[string]string `json:"docker_env"`
DockerImage string `json:"docker_image"`
DockerPort int `json:"docker_port"`
DockerWorkdir *string `json:"docker_workdir"`
DockerData string `json:"docker_data"`
}
type DependencyType ¶ added in v0.1.22
type DependencyType int
const ( DependencyTypeUnknown DependencyType = iota + 1 DependencyTypePostgreSQL DependencyTypeMySQL DependencyTypeGCPStorage )
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ProjectInit ¶ added in v0.1.11
func (p *Plugin) ProjectInit(ctx context.Context, r *apiv1.ProjectInitRequest) (*apiv1.ProjectInitResponse, error)
func (*Plugin) Run ¶ added in v0.1.11
func (p *Plugin) Run(r *apiv1.RunRequest, stream apiv1.RunPluginService_RunServer) error
func (*Plugin) Start ¶
func (p *Plugin) Start(ctx context.Context, r *apiv1.StartRequest) (*apiv1.StartResponse, error)
Click to show internal directories.
Click to hide internal directories.