Documentation
¶
Index ¶
- type Deployer
- func (d *Deployer) BuildImage(serviceName string, service *config.ServiceConfig) (string, error)
- func (d *Deployer) BuildServiceEnvFileContent(serviceName string, service *config.ServiceConfig) (string, error)
- func (d *Deployer) DeployServiceTakod(serviceName string, service *config.ServiceConfig, imageRef string) error
- func (d *Deployer) PrepareGeneratedConfigArtifacts(services map[string]config.ServiceConfig) (map[string]config.ServiceConfig, error)
- func (d *Deployer) ReconcileTakodProxy(services map[string]config.ServiceConfig) error
- func (d *Deployer) RemoveServiceTakod(serviceName string) error
- func (d *Deployer) RollbackToState(serviceName string, serviceState *state.ServiceState) error
- func (d *Deployer) SetCLIVersion(version string)
- func (d *Deployer) SetDeployHooksEnabled(enabled bool)
- func (d *Deployer) SetTargetServers(serverNames []string) error
- func (d *Deployer) SetupTakodRuntime() error
- func (d *Deployer) ValidateServicePlatformCompatibility(serviceName string, service *config.ServiceConfig) error
- type IgnoreParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
Deployer handles deployment operations
func NewDeployer ¶
func NewDeployer(client *ssh.Client, cfg *config.Config, environment string, verbose bool) *Deployer
NewDeployer creates a new deployer
func NewDeployerWithPool ¶
func NewDeployerWithPool(client *ssh.Client, cfg *config.Config, environment string, sshPool *ssh.Pool, verbose bool) *Deployer
NewDeployerWithPool creates a deployer with SSH pool for multi-server support
func (*Deployer) BuildImage ¶
BuildImage builds a Docker image for a service without deploying it
func (*Deployer) BuildServiceEnvFileContent ¶ added in v0.4.0
func (d *Deployer) BuildServiceEnvFileContent(serviceName string, service *config.ServiceConfig) (string, error)
BuildServiceEnvFileContent renders the runtime env file for a service after resolving Tako service links. It is shared by deploy and one-off run paths.
func (*Deployer) DeployServiceTakod ¶ added in v0.3.0
func (d *Deployer) DeployServiceTakod(serviceName string, service *config.ServiceConfig, imageRef string) error
DeployServiceTakod reconciles one service through standalone Docker containers on the nodes chosen by takod placement.
func (*Deployer) PrepareGeneratedConfigArtifacts ¶ added in v0.3.0
func (d *Deployer) PrepareGeneratedConfigArtifacts(services map[string]config.ServiceConfig) (map[string]config.ServiceConfig, error)
func (*Deployer) ReconcileTakodProxy ¶ added in v0.3.0
func (d *Deployer) ReconcileTakodProxy(services map[string]config.ServiceConfig) error
func (*Deployer) RemoveServiceTakod ¶ added in v0.3.0
func (*Deployer) RollbackToState ¶
func (d *Deployer) RollbackToState(serviceName string, serviceState *state.ServiceState) error
RollbackToState converges a service back to a saved takod deployment state.
func (*Deployer) SetCLIVersion ¶ added in v0.3.0
func (*Deployer) SetDeployHooksEnabled ¶ added in v0.3.0
func (*Deployer) SetTargetServers ¶ added in v0.3.0
SetTargetServers restricts takod reconciliation to a validated subset of the environment nodes. Passing an empty slice restores the full environment.
func (*Deployer) SetupTakodRuntime ¶ added in v0.3.0
SetupTakodRuntime prepares every selected environment server for the takod runtime.
func (*Deployer) ValidateServicePlatformCompatibility ¶ added in v0.3.0
func (d *Deployer) ValidateServicePlatformCompatibility(serviceName string, service *config.ServiceConfig) error
type IgnoreParser ¶
type IgnoreParser struct {
// contains filtered or unexported fields
}
IgnoreParser handles parsing of .gitignore and .dockerignore files
func NewIgnoreParser ¶
func NewIgnoreParser() *IgnoreParser
NewIgnoreParser creates a new ignore parser
func (*IgnoreParser) AddDefaultExclusions ¶
func (ip *IgnoreParser) AddDefaultExclusions()
AddDefaultExclusions adds commonly excluded patterns
func (*IgnoreParser) GetExcludedPatterns ¶
func (ip *IgnoreParser) GetExcludedPatterns() []string
GetExcludedPatterns returns all exclusion patterns
func (*IgnoreParser) LoadIgnoreFile ¶
func (ip *IgnoreParser) LoadIgnoreFile(filePath string) error
LoadIgnoreFile loads patterns from a .gitignore or .dockerignore file
func (*IgnoreParser) ShouldIgnore ¶
func (ip *IgnoreParser) ShouldIgnore(relPath string) bool
ShouldIgnore checks if a file path should be ignored