kafkac

package
v0.0.0-...-9647dda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2019 Cisco Systems Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 Cisco Systems Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig(cfg *KafkaCfg) (*sarama.Config, error)

Types

type CapicEPMsg

type CapicEPMsg struct {
	Name        string `json:"name,omitempty"`
	IPAddr      string `json:"ip-addr,omitempty"`
	EpgDN       string `json:"epg-dn,omitempty"`
	ContainerID string `json:"containerid,omitempty"`
	SubnetDN    string `json:"subnet-dn,omitempty"`
	VrfDN       string `json:"vrf-dn,omitempty"`
	// this needs to be the DN of the pod, for gui
	PodNameDN   string `json:"pod-name,omitempty"`
	ClusterName string `json:"cluster-name,omitempty"`
	// contains filtered or unexported fields
}

type CloudInfo

type CloudInfo struct {
	Account     string `json:"account,omitempty"`
	Region      string `json:"region,omitempty"`
	CIDR        string `json:"cidr,omitempty"`
	Subnet      string `json:"subnet,omitempty"`
	VRF         string `json:"vrf,omitempty"`
	ClusterName string `json:"cluster-name,omitempty"`
}

type KafkaCfg

type KafkaCfg struct {
	KafkaLogLevel  string   `json:"kafka-log-level,omitempty"`
	Brokers        []string `json:"brokers,omitempty"`
	ClientKeyPath  string   `json:"client-key-path,omitempty"`
	ClientCertPath string   `json:"client-cert-path,omitempty"`
	CACertPath     string   `json:"ca-cert-path,omitempty"`
	Topic          string   `json:"topic,omitempty"`
	Username       string   `json:"username,omitempty"`
	Password       string   `json:"password,omitempty"`
	BatchSize      int      `json:"-"`
}

type KafkaClient

type KafkaClient struct {
	// contains filtered or unexported fields
}

func InitKafkaClient

func InitKafkaClient(cfg *KafkaCfg, ci *CloudInfo) (*KafkaClient, error)

func (*KafkaClient) AddEP

func (kc *KafkaClient) AddEP(ep *v1.PodIFStatus) error

func (*KafkaClient) DeleteEP

func (kc *KafkaClient) DeleteEP(ep *v1.PodIFStatus)

func (*KafkaClient) UpdateEpgDN

func (kc *KafkaClient) UpdateEpgDN(name, dn string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL