Documentation
¶
Index ¶
- Constants
- type ContainerInfo
- type DeploySpec
- type DockerProvider
- func (p *DockerProvider) Deploy(ctx context.Context, spec DeploySpec, progress func(string)) (ContainerInfo, error)
- func (p *DockerProvider) List(ctx context.Context) ([]ContainerInfo, error)
- func (p *DockerProvider) Logs(ctx context.Context, slug string, lines int) (string, error)
- func (p *DockerProvider) Remove(ctx context.Context, slug string) error
- func (p *DockerProvider) Restart(ctx context.Context, slug string) error
- func (p *DockerProvider) Start(ctx context.Context, slug string) error
- func (p *DockerProvider) Status(ctx context.Context) Status
- func (p *DockerProvider) Stop(ctx context.Context, slug string) error
- type InstallGuide
- type ManagedRuntimePlan
- type Provider
- type Status
Constants ¶
View Source
const ( LabelManaged = "cashpilot.managed" LabelService = "cashpilot.service" LabelVersion = "cashpilot.version" LabelRuntime = "cashpilot.runtime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInfo ¶
type DeploySpec ¶
type DockerProvider ¶
type DockerProvider struct{}
func NewDockerProvider ¶
func NewDockerProvider() *DockerProvider
func (*DockerProvider) Deploy ¶
func (p *DockerProvider) Deploy(ctx context.Context, spec DeploySpec, progress func(string)) (ContainerInfo, error)
func (*DockerProvider) List ¶
func (p *DockerProvider) List(ctx context.Context) ([]ContainerInfo, error)
func (*DockerProvider) Remove ¶
func (p *DockerProvider) Remove(ctx context.Context, slug string) error
func (*DockerProvider) Restart ¶
func (p *DockerProvider) Restart(ctx context.Context, slug string) error
type InstallGuide ¶
type InstallGuide struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Platforms []string `json:"platforms"`
URL string `json:"url"`
Commands []string `json:"commands"`
Notes []string `json:"notes"`
}
func InstallGuides ¶
func InstallGuides() []InstallGuide
func (InstallGuide) Supports ¶ added in v0.4.4
func (g InstallGuide) Supports(osName string) bool
type ManagedRuntimePlan ¶
type ManagedRuntimePlan struct {
Summary string `json:"summary"`
Phases []string `json:"phases"`
Risks []string `json:"risks"`
Providers []string `json:"providers"`
}
func ManagedRuntimeRoadmap ¶
func ManagedRuntimeRoadmap() ManagedRuntimePlan
type Provider ¶
type Provider interface {
Status(ctx context.Context) Status
Deploy(ctx context.Context, spec DeploySpec, progress func(string)) (ContainerInfo, error)
Start(ctx context.Context, slug string) error
Stop(ctx context.Context, slug string) error
Restart(ctx context.Context, slug string) error
Remove(ctx context.Context, slug string) error
Logs(ctx context.Context, slug string, lines int) (string, error)
List(ctx context.Context) ([]ContainerInfo, error)
}
Click to show internal directories.
Click to hide internal directories.