Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶ added in v0.8.3
type Server ¶ added in v0.10.2
type Server struct {
*WaitService
*SupwdService
// contains filtered or unexported fields
}
func NewServer ¶ added in v0.10.2
func NewServer(cfg *ServerConfig) (*Server, error)
type ServerConfig ¶ added in v0.10.2
type ServerConfig struct {
Publisher bus.Publisher
Datasource Datasource
Logger *zap.SugaredLogger
NsqTlsConfig *bus.TLSConfig
NsqlookupdHttpAddress string
GrpcPort int
TlsEnabled bool
CaCertFile string
ServerCertFile string
ServerKeyFile string
ResponseInterval time.Duration
CheckInterval time.Duration
BMCSuperUserPasswordFile string
}
type SupwdService ¶ added in v0.10.2
type SupwdService struct {
// contains filtered or unexported fields
}
func NewSupwdService ¶ added in v0.10.2
func NewSupwdService(cfg *ServerConfig) *SupwdService
func (*SupwdService) FetchSuperUserPassword ¶ added in v0.10.2
func (s *SupwdService) FetchSuperUserPassword(ctx context.Context, req *v1.SuperUserPasswordRequest) (*v1.SuperUserPasswordResponse, error)
type WaitService ¶ added in v0.10.2
type WaitService struct {
bus.Publisher
Logger *zap.SugaredLogger
// contains filtered or unexported fields
}
func NewWaitService ¶ added in v0.10.2
func NewWaitService(cfg *ServerConfig) (*WaitService, error)
func (*WaitService) NotifyAllocated ¶ added in v0.10.2
func (s *WaitService) NotifyAllocated(machineID string) error
func (*WaitService) Wait ¶ added in v0.10.2
func (s *WaitService) Wait(req *v1.WaitRequest, srv v1.Wait_WaitServer) error
Click to show internal directories.
Click to hide internal directories.