Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, url string, in, out interface{}) error
- func (c *Client) Do(ctx context.Context, method, url string, in, out interface{}) error
- func (c *Client) Get(ctx context.Context, url string, out interface{}) error
- func (c *Client) Kafka() *Kafka
- func (c *Client) Post(ctx context.Context, url string, in, out interface{}) error
- type Error
- type Kafka
- func (k *Kafka) CreateTopic(ctx context.Context, in KafkaCreateTopicIn) error
- func (k *Kafka) DeleteTopic(ctx context.Context, in KafkaDeleteTopicIn) error
- func (k *Kafka) ListTopics(ctx context.Context, in KafkaListTopicsIn) ([]KafkaTopic, error)
- func (k *Kafka) TopicInfo(ctx context.Context, in KafkaTopicInfoIn) (KafkaTopicInfoOut, error)
- type KafkaConsumerGroupInfo
- type KafkaCreateTopicIn
- type KafkaDeleteTopicIn
- type KafkaListTopicsIn
- type KafkaPartitionInfo
- type KafkaTopic
- type KafkaTopicInfo
- type KafkaTopicInfoIn
- type KafkaTopicInfoOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an authenticated gateway to aiven
func EnvAuth ¶
EnvAuth constructs a new client from environment variables: AIVEN_EMAIL, AIVEN_PASSWORD, and AIVEN_OTP
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
Kafka provides an api into aiven kafka
func (*Kafka) CreateTopic ¶
func (k *Kafka) CreateTopic(ctx context.Context, in KafkaCreateTopicIn) error
func (*Kafka) DeleteTopic ¶
func (k *Kafka) DeleteTopic(ctx context.Context, in KafkaDeleteTopicIn) error
func (*Kafka) ListTopics ¶
func (k *Kafka) ListTopics(ctx context.Context, in KafkaListTopicsIn) ([]KafkaTopic, error)
ListTopics returns the list of all topics
func (*Kafka) TopicInfo ¶
func (k *Kafka) TopicInfo(ctx context.Context, in KafkaTopicInfoIn) (KafkaTopicInfoOut, error)
KafkaTopicInfo returns topic metadata
See https://api.aiven.io/doc/#api-Service__Kafka-ServiceKafkaTopicGet
type KafkaConsumerGroupInfo ¶
type KafkaCreateTopicIn ¶
type KafkaDeleteTopicIn ¶
type KafkaListTopicsIn ¶
type KafkaPartitionInfo ¶
type KafkaTopic ¶
type KafkaTopic struct { CleanupPolicy string `json:"cleanup_policy"` Partitions int `json:"partitions"` Replication int `json:"replication"` RetentionHours int `json:"retention_hours"` State string `json:"state"` TopicName string `json:"topic_name"` }
KafkaTopic represents the Kafka topics
type KafkaTopicInfo ¶
type KafkaTopicInfo struct { CleanupPolicy string `json:"cleanup_policy"` MinInsyncReplicas int `json:"min_insync_replicas"` Partitions []KafkaPartitionInfo `json:"partitions"` Replication int `json:"replication"` RetentionBytes int64 `json:"retention_bytes"` RetentionHours int `json:"retention_hours"` State string `json:"state"` TopicName string `json:"topic_name"` }
type KafkaTopicInfoIn ¶
type KafkaTopicInfoOut ¶
type KafkaTopicInfoOut struct { Errors []Error `json:"errors"` Message string `json:"message"` Topic KafkaTopicInfo `json:"topic"` }
Click to show internal directories.
Click to hide internal directories.