Documentation
¶
Index ¶
- Constants
- type AppRunInfo
- func (a *AppRunInfo) ContainerPort() int
- func (a *AppRunInfo) DockerCommand() string
- func (a *AppRunInfo) DockerComposePath() string
- func (a *AppRunInfo) DockerPath() 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) SanitizedAppName() string
- func (a *AppRunInfo) Volumes() map[string]string
- func (a *AppRunInfo) WorkDir() string
- type AppRunOptions
- type AppType
- 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 ( 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
}
func NewAppRunInfo ¶ added in v0.1.5
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) DockerPath ¶ added in v0.1.5
func (a *AppRunInfo) DockerPath() 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) SanitizedAppName ¶ added in v0.1.5
func (a *AppRunInfo) SanitizedAppName() 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 {
DockerCommand *string `mapstructure:"docker_command"`
DockerPort int `mapstructure:"docker_port"`
DockerWorkdir *string `mapstructure:"docker_workdir"`
Container *types.ServiceAppContainer `json:"container"`
}
func (*AppRunOptions) Decode ¶ added in v0.1.5
func (o *AppRunOptions) Decode(in map[string]interface{}) error
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)
type RunOptions ¶ added in v0.1.2
type RunOptions struct {
NoCache bool `mapstructure:"docker-no-cache"`
Rebuild bool `mapstructure:"docker-rebuild"`
Regenerate bool `mapstructure:"docker-regenerate"`
}
func (*RunOptions) Decode ¶ added in v0.1.2
func (o *RunOptions) Decode(in map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.