Documentation
¶
Index ¶
- type Common
- func (c *Common) CDSClient() cdsclient.Interface
- func (c *Common) CDSClientV2() cdsclient.HatcheryServiceClient
- func (c *Common) CommonServe(ctx context.Context, h hatchery.Interface) error
- func (c *Common) GenerateWorkerConfig(ctx context.Context, h hatchery.Interface, spawnArgs hatchery.SpawnArguments) workerruntime.WorkerConfig
- func (c *Common) GetGoRoutines() *sdk.GoRoutines
- func (c *Common) GetPrivateKey() *rsa.PrivateKey
- func (c *Common) GetRegion() string
- func (c *Common) Heartbeat(ctx context.Context, status func(ctx context.Context) *sdk.MonitoringStatus) error
- func (c *Common) HeartbeatV2(ctx context.Context, status func(ctx context.Context) *sdk.MonitoringStatus) error
- func (c *Common) Init(ctx context.Context, h hatchery.Interface) error
- func (c *Common) MaxHeartbeat() int
- func (c *Common) SendServiceLog(ctx context.Context, servicesLogs []cdslog.Message, terminated bool)
- func (c *Common) Service() *sdk.Service
- func (c *Common) ServiceName() string
- func (c *Common) SigninV2(ctx context.Context, clientConfig cdsclient.ServiceConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common struct {
service.Common
Router *api.Router
Clientv2 cdsclient.HatcheryServiceClient
// contains filtered or unexported fields
}
func (*Common) CDSClientV2 ¶ added in v0.53.0
func (c *Common) CDSClientV2() cdsclient.HatcheryServiceClient
func (*Common) CommonServe ¶
CommonServe start the HatcheryLocal server
func (*Common) GenerateWorkerConfig ¶
func (c *Common) GenerateWorkerConfig(ctx context.Context, h hatchery.Interface, spawnArgs hatchery.SpawnArguments) workerruntime.WorkerConfig
func (*Common) GetGoRoutines ¶
func (c *Common) GetGoRoutines() *sdk.GoRoutines
GetGoRoutines returns the goRoutines manager
func (*Common) GetPrivateKey ¶
func (c *Common) GetPrivateKey() *rsa.PrivateKey
func (*Common) Heartbeat ¶ added in v0.53.0
func (c *Common) Heartbeat(ctx context.Context, status func(ctx context.Context) *sdk.MonitoringStatus) error
Heartbeat have to be launch as a goroutine, call DoHeartBeat each 30s
func (*Common) HeartbeatV2 ¶ added in v0.53.0
func (*Common) MaxHeartbeat ¶ added in v0.53.0
func (*Common) SendServiceLog ¶
func (*Common) ServiceName ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
mock_vsphere
Package mock_vsphere is a generated GoMock package.
|
Package mock_vsphere is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.