api

package
v0.0.0-...-52087c1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFromCompose

func ConvertFromCompose(compose_file *types.DockerComposeFile, random_network bool) (*types.ServiceConfig, error)

convert docker-compose file into kisara config

func ConvertFromComposeText

func ConvertFromComposeText(text string, random_network bool) (*types.ServiceConfig, error)

convert docker-compose file text into kisara config

func ConvertToCompose

func ConvertToCompose(kisara_config *types.ServiceConfig) (*types.DockerComposeFile, error)

convert kisara service config into docker-compose

func ConvertToComposeText

func ConvertToComposeText(kisara_config *types.ServiceConfig) (string, error)

func CreateNetwork

create a new network on target node

func GetNodes

func GetNodes() ([]server.ClientItem, error)

func LaunchKisaraServer

func LaunchKisaraServer(ignoreLogInfo bool)

LaunchKisaraServer launches the Kisara server, it's non-blocking

func LaunchService

func LaunchService(req types.RequestLaunchService, message_callback func(string), timeout time.Duration) (types.ResponseFinalLaunchServiceStatus, error)

func PullImage

func PullImage(req types.RequestPullImage, timeout time.Duration, message_callback func(string)) (types.ResponseFinalPullImageStatus, error)

func RegisterOnNodeConnect

func RegisterOnNodeConnect(f server.KisaraOnNodeConnect)

func RegisterOnNodeDisconnect

func RegisterOnNodeDisconnect(f server.KisaraOnNodeDisconnect)

func RegisterOnNodeHeartBeat

func RegisterOnNodeHeartBeat(f server.KisaraOnNodeHeartBeat)

func RegisterOnNodeLaunchContainer

func RegisterOnNodeLaunchContainer(f server.KisaraOnNodeLaunchContainer)

func RegisterOnNodeLaunchService

func RegisterOnNodeLaunchService(f server.KisaraOnServiceStart)

func RegisterOnNodeStopContainer

func RegisterOnNodeStopContainer(f server.KisaraOnNodeStopContainer)

func RegisterOnNodeStopService

func RegisterOnNodeStopService(f server.KisaraOnServiceStop)

func RunNetworkMonitor

func RunNetworkMonitor(req types.RequestNetworkMonitorRun, timeout time.Duration, message_callback func(string)) (types.ResponseFinalNetworkMonitorStatus, error)

func UnsetOnNodeConnect

func UnsetOnNodeConnect()

func UnsetOnNodeDisconnect

func UnsetOnNodeDisconnect()

func UnsetOnNodeHeartBeat

func UnsetOnNodeHeartBeat()

func UnsetOnNodeLaunchContainer

func UnsetOnNodeLaunchContainer()

func UnsetOnNodeLaunchService

func UnsetOnNodeLaunchService()

func UnsetOnNodeStopContainer

func UnsetOnNodeStopContainer()

func UnsetOnNodeStopService

func UnsetOnNodeStopService()

Types

This section is empty.

Jump to

Keyboard shortcuts

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