Files
threshold-plugin-gcp/plugin/plugin.go
T

29 lines
735 B
Go
Raw Normal View History

// Copyright IBM Corp. 2024, 2026
2024-04-02 15:47:49 -04:00
// SPDX-License-Identifier: MPL-2.0
package plugin
import (
"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
}
}