Documentation ¶
Index ¶
- func ConvertFromCompose(compose_file *types.DockerComposeFile, random_network bool) (*types.ServiceConfig, error)
- func ConvertFromComposeText(text string, random_network bool) (*types.ServiceConfig, error)
- func ConvertToCompose(kisara_config *types.ServiceConfig) (*types.DockerComposeFile, error)
- func ConvertToComposeText(kisara_config *types.ServiceConfig) (string, error)
- func CreateNetwork(req types.RequestCreateNetwork, timeout time.Duration) (types.ResponseCreateNetwork, error)
- func DeleteImage(req types.RequestDeleteImage, timeout time.Duration) (types.ResponseDeleteImage, error)
- func ExecContainer(req types.RequestExecContainer, timeout time.Duration) (types.ResponseExecContainer, error)
- func GetNodes() ([]server.ClientItem, error)
- func InspectContainer(req types.RequestInspectContainer, timeout time.Duration) (types.ResponseInspectContainer, error)
- func LaunchContainer(req types.RequestLaunchContainer, timeout time.Duration) (types.ResponseFinalLaunchStatus, error)
- func LaunchKisaraServer(ignoreLogInfo bool)
- func LaunchService(req types.RequestLaunchService, message_callback func(string), ...) (types.ResponseFinalLaunchServiceStatus, error)
- func ListContainer(req types.RequestListContainer, timeout time.Duration) (types.ResponseListContainer, error)
- func ListImage(req types.RequestListImage, timeout time.Duration) (types.ResponseListImage, error)
- func ListNetwork(req types.RequestListNetwork, timeout time.Duration) (types.ResponseListNetwork, error)
- func ListServices(req types.RequestListService, timeout time.Duration) (types.ResponseListService, error)
- func PullImage(req types.RequestPullImage, timeout time.Duration, ...) (types.ResponseFinalPullImageStatus, error)
- func RegisterOnNodeConnect(f server.KisaraOnNodeConnect)
- func RegisterOnNodeDisconnect(f server.KisaraOnNodeDisconnect)
- func RegisterOnNodeHeartBeat(f server.KisaraOnNodeHeartBeat)
- func RegisterOnNodeLaunchContainer(f server.KisaraOnNodeLaunchContainer)
- func RegisterOnNodeLaunchService(f server.KisaraOnServiceStart)
- func RegisterOnNodeStopContainer(f server.KisaraOnNodeStopContainer)
- func RegisterOnNodeStopService(f server.KisaraOnServiceStop)
- func RemoveContainer(req types.RequestRemoveContainer, timeout time.Duration) (types.ResponseRemoveContainer, error)
- func RemoveNetwork(req types.RequestRemoveNetwork, timeout time.Duration) (types.ResponseRemoveNetwork, error)
- func RunNetworkMonitor(req types.RequestNetworkMonitorRun, timeout time.Duration, ...) (types.ResponseFinalNetworkMonitorStatus, error)
- func RunNetworkMonitorScript(req types.RequestNetworkMonitorRunScript, timeout time.Duration) (types.ResponseNetworkMonitorRunScript, error)
- func StopContainer(req types.RequestStopContainer, timeout time.Duration) (types.ResponseStopContainer, error)
- func StopNetworkMonitor(req types.RequestNetworkMonitorStop, timeout time.Duration) (types.ResponseNetworkMonitorStop, error)
- func StopService(req types.RequestStopService, timeout time.Duration) (types.ResponseStopContainer, error)
- func UnsetOnNodeConnect()
- func UnsetOnNodeDisconnect()
- func UnsetOnNodeHeartBeat()
- func UnsetOnNodeLaunchContainer()
- func UnsetOnNodeLaunchService()
- func UnsetOnNodeStopContainer()
- func UnsetOnNodeStopService()
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 ¶
func CreateNetwork(req types.RequestCreateNetwork, timeout time.Duration) (types.ResponseCreateNetwork, error)
create a new network on target node
func DeleteImage ¶
func DeleteImage(req types.RequestDeleteImage, timeout time.Duration) (types.ResponseDeleteImage, error)
func ExecContainer ¶
func ExecContainer(req types.RequestExecContainer, timeout time.Duration) (types.ResponseExecContainer, error)
func GetNodes ¶
func GetNodes() ([]server.ClientItem, error)
func InspectContainer ¶
func InspectContainer(req types.RequestInspectContainer, timeout time.Duration) (types.ResponseInspectContainer, error)
func LaunchContainer ¶
func LaunchContainer(req types.RequestLaunchContainer, timeout time.Duration) (types.ResponseFinalLaunchStatus, 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 ListContainer ¶
func ListContainer(req types.RequestListContainer, timeout time.Duration) (types.ResponseListContainer, error)
func ListImage ¶
func ListImage(req types.RequestListImage, timeout time.Duration) (types.ResponseListImage, error)
func ListNetwork ¶
func ListNetwork(req types.RequestListNetwork, timeout time.Duration) (types.ResponseListNetwork, error)
func ListServices ¶
func ListServices(req types.RequestListService, timeout time.Duration) (types.ResponseListService, 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 RemoveContainer ¶
func RemoveContainer(req types.RequestRemoveContainer, timeout time.Duration) (types.ResponseRemoveContainer, error)
func RemoveNetwork ¶
func RemoveNetwork(req types.RequestRemoveNetwork, timeout time.Duration) (types.ResponseRemoveNetwork, error)
func RunNetworkMonitor ¶
func RunNetworkMonitor(req types.RequestNetworkMonitorRun, timeout time.Duration, message_callback func(string)) (types.ResponseFinalNetworkMonitorStatus, error)
func RunNetworkMonitorScript ¶
func RunNetworkMonitorScript(req types.RequestNetworkMonitorRunScript, timeout time.Duration) (types.ResponseNetworkMonitorRunScript, error)
func StopContainer ¶
func StopContainer(req types.RequestStopContainer, timeout time.Duration) (types.ResponseStopContainer, error)
func StopNetworkMonitor ¶
func StopNetworkMonitor(req types.RequestNetworkMonitorStop, timeout time.Duration) (types.ResponseNetworkMonitorStop, error)
func StopService ¶
func StopService(req types.RequestStopService, timeout time.Duration) (types.ResponseStopContainer, 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.
Click to show internal directories.
Click to hide internal directories.