github.com/outbrain/consul@v1.4.5/agent/connect/ca/plugin/client.go (about)

     1  package plugin
     2  
     3  import (
     4  	"github.com/hashicorp/go-plugin"
     5  )
     6  
     7  // ClientConfig returns a base *plugin.ClientConfig that is configured to
     8  // be able to dispense CA provider plugins. The returned value should be
     9  // modified with additional options prior to execution (such as Cmd, Managed,
    10  // etc.)
    11  func ClientConfig() *plugin.ClientConfig {
    12  	return &plugin.ClientConfig{
    13  		HandshakeConfig: handshakeConfig,
    14  		Plugins: map[string]plugin.Plugin{
    15  			Name: &ProviderPlugin{},
    16  		},
    17  	}
    18  }