Class: Gjallarhorn::Proxy::KamalProxyManager

Inherits:
Manager
  • Object
show all
Defined in:
lib/gjallarhorn/proxy/kamal_proxy_manager.rb

Overview

Kamal-proxy manager for zero-downtime deployments

This is a placeholder implementation for kamal-proxy support. Full implementation will be added in a future release.

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Manager

#config, #logger, #proxy_type

Instance Method Summary collapse

Methods inherited from Manager

create, #healthy?, #initialize, #restart

Constructor Details

This class inherits a constructor from Gjallarhorn::Proxy::Manager

Instance Method Details

#statusHash

Get kamal-proxy status

Returns:

  • (Hash)

    Kamal-proxy status information

Since:

  • 0.1.0



27
28
29
30
31
32
33
# File 'lib/gjallarhorn/proxy/kamal_proxy_manager.rb', line 27

def status
  {
    type: "kamal-proxy",
    status: "not_implemented",
    upstreams: []
  }
end

#switch_traffic(service_name:, from_containers:, to_container:) ⇒ void

This method returns an undefined value.

Switch traffic from old containers to new container

Parameters:

  • service_name (String)

    Service name

  • from_containers (Array<Hash>)

    Containers to switch traffic from

  • to_container (Hash)

    Container to switch traffic to

Raises:

  • (NotImplementedError)

Since:

  • 0.1.0



20
21
22
# File 'lib/gjallarhorn/proxy/kamal_proxy_manager.rb', line 20

def switch_traffic(service_name:, from_containers:, to_container:)
  raise NotImplementedError, "Kamal-proxy support not yet implemented"
end