2026-05-11 22:40:22 -07:00
|
|
|
// Copyright IBM Corp. 2024, 2026
|
2024-04-02 15:47:49 -04:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
|
|
|
|
package plugin
|
|
|
|
|
|
|
|
|
|
import (
|
2026-10-12 10:28:05 -07:00
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/plugin/service/host"
|
|
|
|
|
pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin"
|
2024-04-02 15:47:49 -04:00
|
|
|
)
|
|
|
|
|
|
2024-09-16 14:28:54 -04:00
|
|
|
// Ensure that HostPlugin implements the following services:
|
|
|
|
|
//
|
|
|
|
|
// HostPluginServiceServer
|
2024-04-02 15:47:49 -04:00
|
|
|
var (
|
2024-09-16 14:28:54 -04:00
|
|
|
_ pb.HostPluginServiceServer = (*host.HostPlugin)(nil)
|
2024-04-02 15:47:49 -04:00
|
|
|
)
|
|
|
|
|
|
2024-09-16 14:28:54 -04:00
|
|
|
// GCPPlugin contains a collection of all GCP plugin services.
|
|
|
|
|
type GCPPlugin struct {
|
|
|
|
|
// HostPlugin implements the HostPluginServiceServer interface for
|
|
|
|
|
// supporting dynamically sourcing hosts from GCP Compute Engine.
|
|
|
|
|
*host.HostPlugin
|
2024-04-02 15:47:49 -04:00
|
|
|
}
|
|
|
|
|
|
2024-09-16 14:28:54 -04:00
|
|
|
func NewGCPPlugin() *GCPPlugin {
|
|
|
|
|
return &GCPPlugin{
|
|
|
|
|
HostPlugin: &host.HostPlugin{},
|
2024-04-02 15:47:49 -04:00
|
|
|
}
|
|
|
|
|
}
|