Skip to content

Serviceclient Go-API

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)

GetRemoteStatus retrieves the status of a remote service by its unit name.

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(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(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)

ResumeRemoteService resumes a remote service at an endpoint by its unit name.

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(cfg *types.EndpointConfig, unitName string) (*givc_systemd.UnitResponse, error)

StopRemoteService stops a remote service at an endpoint by its unit name.

Generated by gomarkdoc