plugin

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppRunDockerfile    = "Dockerfile.dev"
	AppRunDockerCompose = "docker-compose.outblocks.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRun added in v0.1.2

type AppRun struct {
	*types.AppRun
	Hosts map[string]string
	Type  AppType
}

func NewAppInfo added in v0.1.2

func NewAppInfo(app *types.AppRun, hosts map[string]string) (*AppRun, error)

func (*AppRun) DockerCommand added in v0.1.2

func (a *AppRun) DockerCommand() string

func (*AppRun) DockerComposePath added in v0.1.2

func (a *AppRun) DockerComposePath() string

func (*AppRun) DockerPath added in v0.1.2

func (a *AppRun) DockerPath() string

func (*AppRun) Dockerfile added in v0.1.2

func (a *AppRun) Dockerfile() string

func (*AppRun) DockerfilePath added in v0.1.2

func (a *AppRun) DockerfilePath() string

func (*AppRun) DockerfileYAML added in v0.1.2

func (a *AppRun) DockerfileYAML() ([]byte, error)

func (*AppRun) Env added in v0.1.3

func (a *AppRun) Env() map[string]string

func (*AppRun) Name added in v0.1.2

func (a *AppRun) Name() string

func (*AppRun) SanitizedAppName added in v0.1.2

func (a *AppRun) SanitizedAppName() string

func (*AppRun) Volumes added in v0.1.2

func (a *AppRun) Volumes() map[string]string

func (*AppRun) WorkDir added in v0.1.2

func (a *AppRun) WorkDir() string

type AppType added in v0.1.2

type AppType int
const (
	AppTypeUnknown AppType = iota + 1
	AppTypeNodeNPM
	AppTypeNodeYarn
)

type Plugin

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

func NewPlugin

func NewPlugin(logger log.Logger, enver env.Enver) *Plugin

func (*Plugin) Handler

func (p *Plugin) Handler() *plugin_go.ReqHandler

func (*Plugin) Init

func (*Plugin) RunInteractive added in v0.1.2

func (p *Plugin) RunInteractive(ctx context.Context, r *plugin_go.RunRequest, stream *plugin_go.ReceiverStream) error

func (*Plugin) Start

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 interface{}) error

Jump to

Keyboard shortcuts

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