Documentation ¶
Index ¶
- Variables
- func ApplyServices(vm *hypervisor.Vm, container string, services []pod.UserService) error
- func GenerateServiceConfig(services []pod.UserService) []byte
- func GetServices(vm *hypervisor.Vm, container string) ([]pod.UserService, error)
- func PrepareServices(userPod *pod.UserPod, podId string) error
- func SetupLoopbackAddress(vm *hypervisor.Vm, container, ip, operation string) error
- func UpdateLoopbackAddress(vm *hypervisor.Vm, container string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceVolume string = "/usr/local/etc/haproxy/" ServiceImage string = "haproxy:1.4" ServiceConfig string = "haproxy.cfg" )
Functions ¶
func ApplyServices ¶
func ApplyServices(vm *hypervisor.Vm, container string, services []pod.UserService) error
func GenerateServiceConfig ¶
func GenerateServiceConfig(services []pod.UserService) []byte
func GetServices ¶
func GetServices(vm *hypervisor.Vm, container string) ([]pod.UserService, error)
func SetupLoopbackAddress ¶
func SetupLoopbackAddress(vm *hypervisor.Vm, container, ip, operation string) error
Setup lo ip address options for operation: add or del
func UpdateLoopbackAddress ¶
func UpdateLoopbackAddress(vm *hypervisor.Vm, container string, oldServices, newServices []pod.UserService) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.