Documentation
¶
Index ¶
- func GetBoolValue(labels map[string]string, labelName string, defaultValue bool) bool
- func GetIntValue(labels map[string]string, labelName string, defaultValue int) int
- func GetStringValue(labels map[string]string, labelName, defaultValue string) string
- type ClientTLS
- type Config
- type PartitionItemExtended
- type Provider
- type ServiceItemExtended
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolValue ¶ added in v0.1.4
GetBoolValue get bool value associated to a label.
func GetIntValue ¶ added in v0.1.4
GetIntValue get int value associated to a label.
Types ¶
type ClientTLS ¶
type ClientTLS struct {
CA string `json:"ca,omitempty" toml:"ca,omitempty" yaml:"ca,omitempty"`
CAOptional bool `json:"caOptional,omitempty" toml:"caOptional,omitempty" yaml:"caOptional,omitempty" export:"true"`
Cert string `json:"cert,omitempty" toml:"cert,omitempty" yaml:"cert,omitempty"`
Key string `json:"key,omitempty" toml:"key,omitempty" yaml:"key,omitempty"`
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty" toml:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty" export:"true"`
}
ClientTLS holds the TLS specific configurations as client CA, Cert and Key can be either path or file contents.
type Config ¶
type Config struct {
PollInterval string `json:"pollInterval,omitempty"`
ClusterManagementURL string `json:"clusterManagementURL,omitempty"`
Certificate string `json:"certificate,omitempty"`
CertificateKey string `json:"certificateKey,omitempty"`
}
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type PartitionItemExtended ¶
type PartitionItemExtended struct {
sf.PartitionItem
Replicas []sf.ReplicaItem
Instances []sf.InstanceItem
}
PartitionItemExtended provides a flattened view of a services partitions.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider a simple provider plugin.
type ServiceItemExtended ¶
type ServiceItemExtended struct {
sf.ServiceItem
Application sf.ApplicationItem
Partitions []PartitionItemExtended
Labels map[string]string
}
ServiceItemExtended provides a flattened view of the service with details of the application it belongs too and the replicas/partitions.
Click to show internal directories.
Click to hide internal directories.