Documentation ¶
Index ¶
- func NewDefaultConfig() *pbtypes.PilotConfig
- func NewDefaultConfigString() string
- func Serve(cfg *pbtypes.PilotConfig, pbTlsCfg *pbtypes.PilotTLSConfig, opts ...Options)
- func WithForFgListenPort(port int) func(opt *pbtypes.PilotConfig)
- func WithListenPort(port int) func(opt *pbtypes.PilotConfig)
- func WithPilotId(id string) func(opt *pbtypes.PilotConfig)
- type FrontgateClient
- type FrontgateClientManager
- func (p *FrontgateClientManager) CheckAllClient()
- func (p *FrontgateClientManager) CloseClient(id, nodeId string)
- func (p *FrontgateClientManager) GetClient(id string) (*FrontgateClient, error)
- func (p *FrontgateClientManager) GetNodeClient(id, nodeId string) (*FrontgateClient, error)
- func (_ *FrontgateClientManager) IsFrontgateShutdownError(err error) bool
- func (p *FrontgateClientManager) PutClient(c *pbfrontgate.FrontgateServiceClient, info *pbtypes.FrontgateConfig) (closed chan bool)
- type Options
- type Server
- func (p *Server) DeregisterCmd(ctx context.Context, arg *pbtypes.SubTask_DeregisterCmd) (*pbtypes.Empty, error)
- func (p *Server) DeregisterMetadata(ctx context.Context, arg *pbtypes.SubTask_DeregisterMetadata) (*pbtypes.Empty, error)
- func (p *Server) FrontgateChannel(ch pbpilot.PilotServiceForFrontgate_FrontgateChannelServer) error
- func (p *Server) GetConfdConfig(ctx context.Context, arg *pbtypes.ConfdEndpoint) (*pbtypes.ConfdConfig, error)
- func (p *Server) GetDroneConfig(ctx context.Context, arg *pbtypes.DroneEndpoint) (*pbtypes.DroneConfig, error)
- func (p *Server) GetDroneVersion(context.Context, *pbtypes.DroneEndpoint) (*pbtypes.Version, error)
- func (p *Server) GetFrontgateConfig(ctx context.Context, arg *pbtypes.FrontgateId) (*pbtypes.FrontgateConfig, error)
- func (p *Server) GetFrontgateList(context.Context, *pbtypes.Empty) (*pbtypes.FrontgateIdList, error)
- func (p *Server) GetFrontgateVersion(context.Context, *pbtypes.FrontgateId) (*pbtypes.Version, error)
- func (p *Server) GetPilotClientTLSConfig(context.Context, *pbtypes.Empty) (*pbtypes.PilotClientTLSConfig, error)
- func (p *Server) GetPilotConfig(context.Context, *pbtypes.Empty) (*pbtypes.PilotConfig, error)
- func (p *Server) GetPilotVersion(context.Context, *pbtypes.Empty) (*pbtypes.Version, error)
- func (p *Server) GetSubtaskStatus(ctx context.Context, arg *pbtypes.SubTaskId) (*pbtypes.SubTaskStatus, error)
- func (p *Server) HandleSubtask(ctx context.Context, msg *pbtypes.SubTaskMessage) (*pbtypes.Empty, error)
- func (p *Server) IsConfdRunning(ctx context.Context, arg *pbtypes.DroneEndpoint) (*pbtypes.Bool, error)
- func (p *Server) PingDrone(ctx context.Context, arg *pbtypes.DroneEndpoint) (*pbtypes.Empty, error)
- func (p *Server) PingFrontgate(ctx context.Context, arg *pbtypes.FrontgateId) (*pbtypes.Empty, error)
- func (p *Server) PingFrontgateNode(ctx context.Context, arg *pbtypes.FrontgateNodeId) (*pbtypes.Empty, error)
- func (p *Server) PingMetadataBackend(ctx context.Context, arg *pbtypes.FrontgateId) (*pbtypes.Empty, error)
- func (p *Server) PingPilot(ctx context.Context, arg *pbtypes.Empty) (*pbtypes.Empty, error)
- func (p *Server) RegisterCmd(ctx context.Context, arg *pbtypes.SubTask_RegisterCmd) (*pbtypes.Empty, error)
- func (p *Server) RegisterMetadata(ctx context.Context, arg *pbtypes.SubTask_RegisterMetadata) (*pbtypes.Empty, error)
- func (p *Server) ReportSubTaskStatus(ctx context.Context, arg *pbtypes.SubTaskStatus) (*pbtypes.Empty, error)
- func (p *Server) RunCommandOnDrone(ctx context.Context, arg *pbtypes.RunCommandOnDroneRequest) (*pbtypes.String, error)
- func (p *Server) RunCommandOnFrontgateNode(ctx context.Context, arg *pbtypes.RunCommandOnFrontgateRequest) (*pbtypes.String, error)
- func (p *Server) SetDroneConfig(ctx context.Context, arg *pbtypes.SetDroneConfigRequest) (*pbtypes.Empty, error)
- func (p *Server) SetFrontgateConfig(ctx context.Context, arg *pbtypes.FrontgateConfig) (*pbtypes.Empty, error)
- func (p *Server) StartConfd(ctx context.Context, arg *pbtypes.DroneEndpoint) (*pbtypes.Empty, error)
- func (p *Server) StopConfd(ctx context.Context, arg *pbtypes.DroneEndpoint) (*pbtypes.Empty, error)
- type TaskStatusManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultConfig ¶
func NewDefaultConfig() *pbtypes.PilotConfig
func NewDefaultConfigString ¶
func NewDefaultConfigString() string
func Serve ¶
func Serve(cfg *pbtypes.PilotConfig, pbTlsCfg *pbtypes.PilotTLSConfig, opts ...Options)
func WithForFgListenPort ¶ added in v0.2.0
func WithForFgListenPort(port int) func(opt *pbtypes.PilotConfig)
func WithListenPort ¶
func WithListenPort(port int) func(opt *pbtypes.PilotConfig)
func WithPilotId ¶
func WithPilotId(id string) func(opt *pbtypes.PilotConfig)
Types ¶
type FrontgateClient ¶
type FrontgateClient struct { *pbfrontgate.FrontgateServiceClient // contains filtered or unexported fields }
type FrontgateClientManager ¶
func NewFrontgateClientManager ¶
func NewFrontgateClientManager() *FrontgateClientManager
func (*FrontgateClientManager) CheckAllClient ¶
func (p *FrontgateClientManager) CheckAllClient()
func (*FrontgateClientManager) CloseClient ¶
func (p *FrontgateClientManager) CloseClient(id, nodeId string)
func (*FrontgateClientManager) GetClient ¶
func (p *FrontgateClientManager) GetClient(id string) (*FrontgateClient, error)
func (*FrontgateClientManager) GetNodeClient ¶
func (p *FrontgateClientManager) GetNodeClient(id, nodeId string) (*FrontgateClient, error)
func (*FrontgateClientManager) IsFrontgateShutdownError ¶
func (_ *FrontgateClientManager) IsFrontgateShutdownError(err error) bool
func (*FrontgateClientManager) PutClient ¶
func (p *FrontgateClientManager) PutClient(c *pbfrontgate.FrontgateServiceClient, info *pbtypes.FrontgateConfig) (closed chan bool)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DeregisterCmd ¶
func (*Server) DeregisterMetadata ¶
func (*Server) FrontgateChannel ¶
func (*Server) GetConfdConfig ¶
func (*Server) GetDroneConfig ¶
func (*Server) GetDroneVersion ¶ added in v0.2.1
func (*Server) GetFrontgateConfig ¶
func (*Server) GetFrontgateList ¶
func (*Server) GetFrontgateVersion ¶ added in v0.2.1
func (*Server) GetPilotClientTLSConfig ¶ added in v0.2.0
func (*Server) GetPilotConfig ¶
func (*Server) GetPilotVersion ¶ added in v0.2.1
func (*Server) GetSubtaskStatus ¶
func (*Server) HandleSubtask ¶
func (*Server) IsConfdRunning ¶
func (*Server) PingFrontgate ¶
func (*Server) PingFrontgateNode ¶
func (*Server) PingMetadataBackend ¶ added in v0.2.1
func (*Server) RegisterCmd ¶
func (*Server) RegisterMetadata ¶
func (*Server) ReportSubTaskStatus ¶
func (*Server) RunCommandOnDrone ¶
func (*Server) RunCommandOnFrontgateNode ¶
func (*Server) SetDroneConfig ¶
func (*Server) SetFrontgateConfig ¶
func (*Server) StartConfd ¶
type TaskStatusManager ¶
func NewTaskStatusManager ¶
func NewTaskStatusManager() *TaskStatusManager
func (*TaskStatusManager) GetStatus ¶
func (p *TaskStatusManager) GetStatus(id string) (v pbtypes.SubTaskStatus, ok bool)
func (*TaskStatusManager) PutStatus ¶
func (p *TaskStatusManager) PutStatus(v pbtypes.SubTaskStatus)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.