datasource

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourcePluginName = "data_source"

DataSourcePluginName is the name that should be used in the plugin map.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

DataSource is the interface data source plugins have to implement.

type DataSourcePlugin

type DataSourcePlugin struct {
	go_plugin.Plugin
	Impl DataSource
}

DataSourcePlugin implements the plugin.Plugin interface to provide the GRPC server or client back to the plugin machinery. The server side should proved the Impl field with a concrete implementation of the DataSource interface.

func (*DataSourcePlugin) GRPCClient

func (dsp *DataSourcePlugin) GRPCClient(ctx context.Context, broker *go_plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*DataSourcePlugin) GRPCServer

func (dsp *DataSourcePlugin) GRPCServer(broker *go_plugin.GRPCBroker, s *grpc.Server) error

type DataSourcePluginClientGRPC

type DataSourcePluginClientGRPC struct {
	// contains filtered or unexported fields
}

DataSourcePluginClientGRPC is used by clients (main application) to translate the DataSource interface of plugins to GRPC calls.

func (*DataSourcePluginClientGRPC) AddAPBinding

func (*DataSourcePluginClientGRPC) AddFederation

func (*DataSourcePluginClientGRPC) AddTrustZone

func (*DataSourcePluginClientGRPC) DestroyAPBinding

func (c *DataSourcePluginClientGRPC) DestroyAPBinding(binding *ap_binding_proto.APBinding) error

func (*DataSourcePluginClientGRPC) GetAttestationPolicy

func (*DataSourcePluginClientGRPC) GetTrustZone

func (*DataSourcePluginClientGRPC) ListAttestationPolicies

func (*DataSourcePluginClientGRPC) ListFederations

func (c *DataSourcePluginClientGRPC) ListFederations() ([]*federation_proto.Federation, error)

func (*DataSourcePluginClientGRPC) ListFederationsByTrustZone

func (c *DataSourcePluginClientGRPC) ListFederationsByTrustZone(string) ([]*federation_proto.Federation, error)

func (*DataSourcePluginClientGRPC) ListTrustZones

func (c *DataSourcePluginClientGRPC) ListTrustZones() ([]*trust_zone_proto.TrustZone, error)

func (*DataSourcePluginClientGRPC) UpdateTrustZone

func (c *DataSourcePluginClientGRPC) UpdateTrustZone(trustZone *trust_zone_proto.TrustZone) error

func (*DataSourcePluginClientGRPC) Validate

type GRPCServer

type GRPCServer struct {
	Impl DataSource
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL