plugin

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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"`
}

func (*AppRunOptions) Decode added in v0.1.5

func (o *AppRunOptions) Decode(in map[string]any) error

type AppType added in v0.1.2

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

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"`
}

func (*DependencyRunOptions) Decode added in v0.1.22

func (o *DependencyRunOptions) Decode(in map[string]any) error

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 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"`
	Production bool `mapstructure:"docker-production"`
}

func (*RunOptions) Decode added in v0.1.2

func (o *RunOptions) Decode(in map[string]any) error

Jump to

Keyboard shortcuts

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