Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfluentCloudConfig ¶
TODO return []string for brokers
func TryFindCcloudConfigFile ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string Version string `yaml:"version"` Brokers []string `yaml:"brokers"` SASL *SASL `yaml:"SASL"` TLS *TLS `yaml:"TLS"` SecurityProtocol string `yaml:"security-protocol"` SchemaRegistryURL string `yaml:"schema-registry-url"` SchemaRegistryCredentials *SchemaRegistryCredentials `yaml:"schema-registry-credentials"` }
type Config ¶
type Config struct { CurrentCluster string `yaml:"current-cluster"` ClusterOverride string Clusters []*Cluster `yaml:"clusters"` }
func ReadConfig ¶
func (*Config) ActiveCluster ¶
func (*Config) SetCurrentCluster ¶
type SASL ¶
type SASL struct { Mechanism string `yaml:"mechanism"` Username string `yaml:"username"` Password string `yaml:"password"` ClientID string `yaml:"clientID"` ClientSecret string `yaml:"clientSecret"` TokenURL string `yaml:"tokenURL"` Scopes []string `yaml:"scopes"` Token string `yaml:"token"` Version int16 `yaml:"version"` }
type SchemaRegistryCredentials ¶ added in v0.2.4
Click to show internal directories.
Click to hide internal directories.