Documentation ¶
Index ¶
- Constants
- Variables
- func GetKafka(c *providers.Provider) (providers.ClowderProvider, error)
- func GetKafkaFinalize(c *providers.Provider) error
- func NewAppInterface(p *providers.Provider) (providers.ClowderProvider, error)
- func NewManagedEphemKafka(p *providers.Provider) (providers.ClowderProvider, error)
- func NewManagedEphemKafkaFinalizer(p *providers.Provider) error
- func NewManagedKafka(p *providers.Provider) (providers.ClowderProvider, error)
- func NewNoneKafka(p *providers.Provider) (providers.ClowderProvider, error)
- func NewStrimzi(p *providers.Provider) (providers.ClowderProvider, error)
- type Config
- type HTTPClient
- type HTTPClientCache
- type JSONPayload
- type KafkaConnectBuilder
- type Settings
- type Topic
- type TopicsList
Constants ¶
const PARTITION_NUM_CEILING = 3
const PARTITION_NUM_FLOOR = 3
const REPLICA_NUM_CEILING = 0
const REPLICA_NUM_FLOOR = 3
Variables ¶
var ClientCache = newHTTPClientCahce()
Mutex protected cache of HTTP clients
var ClientCreator func(provider *providers.Provider, clientCred clientcredentials.Config) HTTPClient
var CyndiAppSecret = rc.NewSingleResourceIdent(ProvName, "cyndi_app_secret", &core.Secret{})
CyndiAppSecret identifies the cyndi app secret object.
var CyndiConfigMap = rc.NewSingleResourceIdent(ProvName, "cyndi_config_map", &core.ConfigMap{}, rc.ResourceOptions{WriteNow: true})
CyndiConfigMap is the resource ident for a CyndiConfigMap object.
var CyndiHostInventoryAppSecret = rc.NewSingleResourceIdent(ProvName, "cyndi_host_inventory_secret", &core.Secret{})
CyndiHostInventoryAppSecret identifies the cyndi host-inventory app secret object.
var CyndiPipeline = rc.NewSingleResourceIdent(ProvName, "cyndi_pipeline", &cyndi.CyndiPipeline{})
CyndiPipeline identifies the main cyndi pipeline object.
var EphemKafkaConnect = rc.NewSingleResourceIdent(ProvName, "kafka_connect", &strimzi.KafkaConnect{}, rc.ResourceOptions{WriteNow: true})
KafkaConnect is the resource ident for a KafkaConnect object.
var EphemKafkaConnectSecret = rc.NewSingleResourceIdent(ProvName, "kafka_connect_secret", &core.Secret{}, rc.ResourceOptions{WriteNow: true})
var IMAGE_KAFKA_XJOIN = "quay.io/cloudservices/xjoin-kafka-connect-strimzi:latest"
var KafkaConnect = rc.NewSingleResourceIdent(ProvName, "kafka_connect", &strimzi.KafkaConnect{}, rc.ResourceOptions{WriteNow: true})
KafkaConnect is the resource ident for a KafkaConnect object.
var KafkaConnectUser = rc.NewSingleResourceIdent(ProvName, "kafka_connect_user", &strimzi.KafkaUser{}, rc.ResourceOptions{WriteNow: true})
KafkaUser is the resource ident for a KafkaUser object.
var KafkaInstance = rc.NewSingleResourceIdent(ProvName, "kafka_instance", &strimzi.Kafka{}, rc.ResourceOptions{WriteNow: true})
KafkaInstance is the resource ident for a Kafka object.
var KafkaMetricsConfigMap = rc.NewSingleResourceIdent(ProvName, "kafka_metrics_config_map", &core.ConfigMap{}, rc.ResourceOptions{WriteNow: true})
KafkaMetricsConfigMap is the resource ident for a KafkaMetricsConfigMap object.
var KafkaNetworkPolicy = rc.NewSingleResourceIdent(ProvName, "kafka_network_policy", &networking.NetworkPolicy{}, rc.ResourceOptions{WriteNow: true})
KafkaNetworkPolicy is the resource ident for the KafkaNetworkPolicy
var KafkaTopic = rc.NewSingleResourceIdent(ProvName, "kafka_topic", &strimzi.KafkaTopic{}, rc.ResourceOptions{WriteNow: true})
KafkaTopic is the resource ident for a KafkaTopic object.
var KafkaUser = rc.NewSingleResourceIdent(ProvName, "kafka_user", &strimzi.KafkaUser{}, rc.ResourceOptions{WriteNow: true})
KafkaUser is the resource ident for a KafkaUser object.
var ProvName = "kafka"
ProvName is the name/ident of the provider
Functions ¶
func GetKafka ¶
func GetKafka(c *providers.Provider) (providers.ClowderProvider, error)
GetKafka returns the correct kafka provider based on the environment.
func GetKafkaFinalize ¶ added in v0.45.0
GetKafka returns the correct kafka provider based on the environment.
func NewAppInterface ¶
func NewAppInterface(p *providers.Provider) (providers.ClowderProvider, error)
NewAppInterface returns a new app-interface kafka provider object.
func NewManagedEphemKafka ¶ added in v0.45.0
func NewManagedEphemKafka(p *providers.Provider) (providers.ClowderProvider, error)
func NewManagedEphemKafkaFinalizer ¶ added in v0.45.0
func NewManagedKafka ¶
func NewManagedKafka(p *providers.Provider) (providers.ClowderProvider, error)
NewNoneKafka returns a new non kafka provider object.
func NewNoneKafka ¶
func NewNoneKafka(p *providers.Provider) (providers.ClowderProvider, error)
NewNoneKafka returns a new non kafka provider object.
func NewStrimzi ¶
func NewStrimzi(p *providers.Provider) (providers.ClowderProvider, error)
NewStrimzi returns a new strimzi provider object.
Types ¶
type HTTPClient ¶ added in v0.45.0
type HTTPClient interface { Do(req *http.Request) (*http.Response, error) Get(url string) (resp *http.Response, err error) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) }
var (
HTTP HTTPClient
)
type HTTPClientCache ¶ added in v0.45.0
type HTTPClientCache struct {
// contains filtered or unexported fields
}
Client cache provides a mutex protected cache of http clients
func (*HTTPClientCache) Get ¶ added in v0.45.0
func (cc *HTTPClientCache) Get(hostname string) (HTTPClient, bool)
func (*HTTPClientCache) Remove ¶ added in v0.45.0
func (cc *HTTPClientCache) Remove(hostname string)
func (*HTTPClientCache) Set ¶ added in v0.45.0
func (cc *HTTPClientCache) Set(hostname string, client HTTPClient)
type JSONPayload ¶ added in v0.45.0
type KafkaConnectBuilder ¶ added in v0.45.0
KafkaConnectBuilder manages the creation of KafkaConnect resources
func (*KafkaConnectBuilder) BuildSpec ¶ added in v0.45.0
func (kcb *KafkaConnectBuilder) BuildSpec()
func (*KafkaConnectBuilder) Create ¶ added in v0.45.0
func (kcb *KafkaConnectBuilder) Create() error
func (*KafkaConnectBuilder) UpdateCache ¶ added in v0.45.0
func (kcb *KafkaConnectBuilder) UpdateCache() error
func (*KafkaConnectBuilder) VerifyEnvLabel ¶ added in v0.45.0
func (kcb *KafkaConnectBuilder) VerifyEnvLabel() error
ensure that connect cluster of kcb same name but labelled for different env does not exist
type TopicsList ¶ added in v0.45.0
type TopicsList struct {
Items []Topic `json:"items"`
}