plugin

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 22 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 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 NewAppRunInfo(app *apiv1.AppRun, hosts map[string]string) (*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) 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 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() *Plugin

func (*Plugin) Init

func (*Plugin) ProjectInit added in v0.1.11

func (*Plugin) Run added in v0.1.11

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 map[string]interface{}) error

Jump to

Keyboard shortcuts

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