Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProviderName is the unique identifier for the PSM provider. ProviderName = "psm" // DefaultTimeout is the default timeout for PSM gRPC calls. DefaultTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Timeout is the gRPC call timeout for PSM operations.
Timeout time.Duration
}
Config holds configuration for the PSM provider.
func (*Config) NewProvider ¶
NewProvider creates a PSM provider from this config.
type ConfigDecoder ¶
type ConfigDecoder struct{}
ConfigDecoder owns PSM provider config defaults and YAML decoding.
func (ConfigDecoder) DecodeYAML ¶
func (d ConfigDecoder) DecodeYAML(raw yaml.Node) (providerapi.ProviderConfig, error)
DecodeYAML decodes PSM provider YAML into a typed config.
func (ConfigDecoder) DefaultConfig ¶
func (ConfigDecoder) DefaultConfig() providerapi.ProviderConfig
DefaultConfig returns the default PSM provider config.
func (ConfigDecoder) Name ¶
func (ConfigDecoder) Name() string
Name returns the provider name handled by this decoder.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider wraps a psmapi.Client and provides it to component manager implementations.
func NewFromClient ¶
NewFromClient creates a Provider from an existing client. This is primarily useful for testing with mock clients.
func NewWithDefault ¶
NewWithDefault creates a new Provider with the default configuration.
Click to show internal directories.
Click to hide internal directories.