private

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

README

STOP!

========== DO NOT TAKE A DEPENDENCY ON THIS PACKAGE ==========

It is for internal use only and is only exported for use by SPIRE.

It can, and will, without notice, and without consideration for any consumer but SPIRE, change in breaking ways.

========== DO NOT TAKE A DEPENDENCY ON THIS PACKAGE ==========

Documentation

Index

Constants

View Source
const (
	// HostServiceProviderID is the ID used with the HC plugin broker to dial
	// SPIRE for access to host services. It must be kept in sync between
	// both SPIRE and the SDK.
	HostServiceProviderID = 1
)

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, conn grpc.ClientConnInterface, hostServiceNames []string) (pluginServiceNames []string, err error)

Init initializes the plugin and advertises the given host service names to the plugin for brokering. The list of service names implemented by the plugin are returned. This function is only intended to be used internally and by SPIRE. See /private/README.md.

func Register

func Register(s *grpc.Server, servers []pluginsdk.ServiceServer, logger hclog.Logger, dialer HostDialer)

Register registers the given servers with the gRPC server. The given and logger will be used when the plugins are initialized. This function is only intended to be used internally and by SPIRE. See /private/README.md.

Types

type HostDialer

type HostDialer interface {
	DialHost(ctx context.Context) (grpc.ClientConnInterface, error)
}

HostDialer is a generic interface for dialing the host (i.e. SPIRE). This interface is only intended to be used internally and by SPIRE. See /private/README.md.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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