Documentation ¶
Index ¶
- func ParseLogLevel(level string) proto.LogLevel
- type Server
- func (s *Server) CleanState(ctx context.Context, req *proto.CleanStateRequest) (*proto.CleanStateResponse, error)
- func (s *Server) DebugBundle(_ context.Context, req *proto.DebugBundleRequest) (resp *proto.DebugBundleResponse, err error)
- func (s *Server) DeleteState(ctx context.Context, req *proto.DeleteStateRequest) (*proto.DeleteStateResponse, error)
- func (s *Server) DeselectNetworks(_ context.Context, req *proto.SelectNetworksRequest) (*proto.SelectNetworksResponse, error)
- func (s *Server) Down(ctx context.Context, _ *proto.DownRequest) (*proto.DownResponse, error)
- func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
- func (s *Server) GetLogLevel(_ context.Context, _ *proto.GetLogLevelRequest) (*proto.GetLogLevelResponse, error)
- func (s *Server) ListNetworks(context.Context, *proto.ListNetworksRequest) (*proto.ListNetworksResponse, error)
- func (s *Server) ListStates(_ context.Context, _ *proto.ListStatesRequest) (*proto.ListStatesResponse, error)
- func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*proto.LoginResponse, error)
- func (s *Server) SelectNetworks(_ context.Context, req *proto.SelectNetworksRequest) (*proto.SelectNetworksResponse, error)
- func (s *Server) SetLogLevel(_ context.Context, req *proto.SetLogLevelRequest) (*proto.SetLogLevelResponse, error)
- func (s *Server) SetNetworkMapPersistence(_ context.Context, req *proto.SetNetworkMapPersistenceRequest) (*proto.SetNetworkMapPersistenceResponse, error)
- func (s *Server) Start() error
- func (s *Server) Status(_ context.Context, msg *proto.StatusRequest) (*proto.StatusResponse, error)
- func (s *Server) Up(callerCtx context.Context, _ *proto.UpRequest) (*proto.UpResponse, error)
- func (s *Server) WaitSSOLogin(callerCtx context.Context, msg *proto.WaitSSOLoginRequest) (*proto.WaitSSOLoginResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLogLevel ¶ added in v0.27.10
Types ¶
type Server ¶
type Server struct { proto.UnimplementedDaemonServiceServer // contains filtered or unexported fields }
Server for service control.
func (*Server) CleanState ¶ added in v0.34.0
func (s *Server) CleanState(ctx context.Context, req *proto.CleanStateRequest) (*proto.CleanStateResponse, error)
CleanState handles cleaning of states (performing cleanup operations)
func (*Server) DebugBundle ¶ added in v0.27.4
func (s *Server) DebugBundle(_ context.Context, req *proto.DebugBundleRequest) (resp *proto.DebugBundleResponse, err error)
DebugBundle creates a debug bundle and returns the location.
func (*Server) DeleteState ¶ added in v0.34.0
func (s *Server) DeleteState(ctx context.Context, req *proto.DeleteStateRequest) (*proto.DeleteStateResponse, error)
DeleteState handles deletion of states without cleanup
func (*Server) DeselectNetworks ¶ added in v0.35.0
func (s *Server) DeselectNetworks(_ context.Context, req *proto.SelectNetworksRequest) (*proto.SelectNetworksResponse, error)
DeselectNetworks deselects specific networks based on the client request.
func (*Server) Down ¶
func (s *Server) Down(ctx context.Context, _ *proto.DownRequest) (*proto.DownResponse, error)
Down engine work in the daemon.
func (*Server) GetConfig ¶
func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
GetConfig of the daemon.
func (*Server) GetLogLevel ¶ added in v0.27.10
func (s *Server) GetLogLevel(_ context.Context, _ *proto.GetLogLevelRequest) (*proto.GetLogLevelResponse, error)
GetLogLevel gets the current logging level for the server.
func (*Server) ListNetworks ¶ added in v0.35.0
func (s *Server) ListNetworks(context.Context, *proto.ListNetworksRequest) (*proto.ListNetworksResponse, error)
ListNetworks returns a list of all available networks.
func (*Server) ListStates ¶ added in v0.34.0
func (s *Server) ListStates(_ context.Context, _ *proto.ListStatesRequest) (*proto.ListStatesResponse, error)
ListStates returns a list of all saved states
func (*Server) Login ¶
func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*proto.LoginResponse, error)
Login uses setup key to prepare configuration for the daemon.
func (*Server) SelectNetworks ¶ added in v0.35.0
func (s *Server) SelectNetworks(_ context.Context, req *proto.SelectNetworksRequest) (*proto.SelectNetworksResponse, error)
SelectNetworks selects specific networks based on the client request.
func (*Server) SetLogLevel ¶ added in v0.27.4
func (s *Server) SetLogLevel(_ context.Context, req *proto.SetLogLevelRequest) (*proto.SetLogLevelResponse, error)
SetLogLevel sets the logging level for the server.
func (*Server) SetNetworkMapPersistence ¶ added in v0.34.0
func (s *Server) SetNetworkMapPersistence(_ context.Context, req *proto.SetNetworkMapPersistenceRequest) (*proto.SetNetworkMapPersistenceResponse, error)
SetNetworkMapPersistence sets the network map persistence for the server.
func (*Server) Status ¶
func (s *Server) Status( _ context.Context, msg *proto.StatusRequest, ) (*proto.StatusResponse, error)
Status returns the daemon status
func (*Server) WaitSSOLogin ¶
func (s *Server) WaitSSOLogin(callerCtx context.Context, msg *proto.WaitSSOLoginRequest) (*proto.WaitSSOLoginResponse, error)
WaitSSOLogin uses the userCode to validate the TokenInfo and waits for the user to continue with the login on a browser