Serviceclient Go-API
serviceclient
Section titled “serviceclient”import "givc/modules/pkgs/serviceclient"
Package serviceclient provides functionality to interact with remote services via gRPC.
- func GetRemoteStatus(cfg *types.EndpointConfig, unitName string) (*types.UnitStatus, error)
- func PauseRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
- func RegisterRemoteService(cfg *types.EndpointConfig, reg *givc_admin.RegistryRequest) (*givc_admin.RegistryResponse, error)
- func ResumeRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
- func StartRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
- func StopRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
func GetRemoteStatus
Section titled “func GetRemoteStatus”func GetRemoteStatus(cfg *types.EndpointConfig, unitName string) (*types.UnitStatus, error)
GetRemoteStatus retrieves the status of a remote service by its unit name.
func PauseRemoteService
Section titled “func PauseRemoteService”func PauseRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
PauseRemoteService pauses a remote service at an endpoint by its unit name.
func RegisterRemoteService
Section titled “func RegisterRemoteService”func RegisterRemoteService(cfg *types.EndpointConfig, reg *givc_admin.RegistryRequest) (*givc_admin.RegistryResponse, error)
RegisterRemoteService registers a givc agent and its services with the admin server.
func ResumeRemoteService
Section titled “func ResumeRemoteService”func ResumeRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
ResumeRemoteService resumes a remote service at an endpoint by its unit name.
func StartRemoteService
Section titled “func StartRemoteService”func StartRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
StartRemoteService starts a remote service at an endpoint by its unit name.
func StopRemoteService
Section titled “func StopRemoteService”func StopRemoteService(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)
StopRemoteService stops a remote service at an endpoint by its unit name.
Generated by gomarkdoc