ckafka

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = CkafkaClient{Client: core.DefaultClient}

Functions

func DoAction

func DoAction(action string, options ...string) ([]byte, error)

Types

type AddPartitionResp

type AddPartitionResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func AddPartition

func AddPartition(options ...string) (*AddPartitionResp, error)

func (*AddPartitionResp) String

func (r *AddPartitionResp) String(args ...interface{}) (string, error)

type AddTopicIpWhitelistResp

type AddTopicIpWhitelistResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func AddTopicIpWhitelist

func AddTopicIpWhitelist(options ...string) (*AddTopicIpWhitelistResp, error)

func (*AddTopicIpWhitelistResp) String

func (r *AddTopicIpWhitelistResp) String(args ...interface{}) (string, error)

type CkafkaClient

type CkafkaClient struct {
	*core.Client
}

func NewClient

func NewClient() *CkafkaClient

func (*CkafkaClient) AddPartition

func (c *CkafkaClient) AddPartition(options ...string) (*AddPartitionResp, error)

Implement https://cloud.tencent.com/document/api/597/10100

func (*CkafkaClient) AddTopicIpWhitelist

func (c *CkafkaClient) AddTopicIpWhitelist(options ...string) (*AddTopicIpWhitelistResp, error)

Implement https://cloud.tencent.com/document/api/597/10103

func (*CkafkaClient) CreateTopic

func (c *CkafkaClient) CreateTopic(options ...string) (*CreateTopicResp, error)

Implement https://cloud.tencent.com/document/api/597/10096

func (*CkafkaClient) DeleteTopic

func (c *CkafkaClient) DeleteTopic(options ...string) (*DeleteTopicResp, error)

Implement https://cloud.tencent.com/document/api/597/10099

func (*CkafkaClient) DeleteTopicIpWhitelist

func (c *CkafkaClient) DeleteTopicIpWhitelist(options ...string) (*DeleteTopicIpWhitelistResp, error)

Implement https://cloud.tencent.com/document/api/597/10104

func (*CkafkaClient) DoAction

func (client *CkafkaClient) DoAction(action string, options ...string) ([]byte, error)

func (*CkafkaClient) GetInstanceAttributes

func (c *CkafkaClient) GetInstanceAttributes(options ...string) (*GetInstanceAttributesResp, error)

Implement https://cloud.tencent.com/document/api/597/10094

func (*CkafkaClient) GetTopicAttributes

func (c *CkafkaClient) GetTopicAttributes(options ...string) (*GetTopicAttributesResp, error)

Implement https://cloud.tencent.com/document/api/597/10102

func (*CkafkaClient) ListInstance

func (c *CkafkaClient) ListInstance(options ...string) (*ListInstanceResp, error)

Implement https://cloud.tencent.com/document/api/597/10093

func (*CkafkaClient) ListTopic

func (c *CkafkaClient) ListTopic(options ...string) (*ListTopicResp, error)

Implement https://cloud.tencent.com/document/api/597/10101

func (*CkafkaClient) SetInstanceAttributes

func (c *CkafkaClient) SetInstanceAttributes(options ...string) (*SetInstanceAttributesResp, error)

Implement https://cloud.tencent.com/document/api/597/10095

func (*CkafkaClient) SetTopicAttributes

func (c *CkafkaClient) SetTopicAttributes(options ...string) (*SetTopicAttributesResp, error)

Implement https://cloud.tencent.com/document/api/597/10098

type CreateTopicResp

type CreateTopicResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TopicID string `json:"topicId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateTopic

func CreateTopic(options ...string) (*CreateTopicResp, error)

func (*CreateTopicResp) String

func (r *CreateTopicResp) String(args ...interface{}) (string, error)

type DeleteTopicIpWhitelistResp

type DeleteTopicIpWhitelistResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func DeleteTopicIpWhitelist

func DeleteTopicIpWhitelist(options ...string) (*DeleteTopicIpWhitelistResp, error)

func (*DeleteTopicIpWhitelistResp) String

func (r *DeleteTopicIpWhitelistResp) String(args ...interface{}) (string, error)

type DeleteTopicResp

type DeleteTopicResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func DeleteTopic

func DeleteTopic(options ...string) (*DeleteTopicResp, error)

func (*DeleteTopicResp) String

func (r *DeleteTopicResp) String(args ...interface{}) (string, error)

type GetInstanceAttributesResp

type GetInstanceAttributesResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Bandwidth        int64  `json:"bandwidth"`
		CreateTime       int64  `json:"createTime"`
		DiskSize         int64  `json:"diskSize"`
		ExpireTime       int64  `json:"expireTime"`
		InstanceID       string `json:"instanceId"`
		InstanceName     string `json:"instanceName"`
		MsgRetentionTime int64  `json:"msgRetentionTime"`
		Status           int64  `json:"status"`
		SubnetID         string `json:"subnetId"`
		Vip              string `json:"vip"`
		VipList          []struct {
			Vip   string `json:"vip"`
			Vport string `json:"vport"`
		} `json:"vipList"`
		VpcID  string `json:"vpcId"`
		Vport  string `json:"vport"`
		ZoneID int64  `json:"zoneId"`
	} `json:"data"`
	Message string `json:"message"`
}

func GetInstanceAttributes

func GetInstanceAttributes(options ...string) (*GetInstanceAttributesResp, error)

func (*GetInstanceAttributesResp) String

func (r *GetInstanceAttributesResp) String(args ...interface{}) (string, error)

type GetTopicAttributesResp

type GetTopicAttributesResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		CreateTime      int64         `json:"createTime"`
		EnableWhiteList int64         `json:"enableWhiteList"`
		IPWhiteList     []interface{} `json:"ipWhiteList"`
		PartitionNum    int64         `json:"partitionNum"`
		Partitions      []struct {
			IsrNum       int64 `json:"isrNum"`
			LeaderStatus int64 `json:"leaderStatus"`
			Partition    int64 `json:"partition"`
			ReplicaNum   int64 `json:"replicaNum"`
		} `json:"partitions"`
		TopicID string `json:"topicId"`
	} `json:"data"`
	Message string `json:"message"`
}

func GetTopicAttributes

func GetTopicAttributes(options ...string) (*GetTopicAttributesResp, error)

func (*GetTopicAttributesResp) String

func (r *GetTopicAttributesResp) String(args ...interface{}) (string, error)

type ListInstanceResp

type ListInstanceResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		InstanceList []struct {
			InstanceID   string `json:"instanceId"`
			InstanceName string `json:"instanceName"`
			Status       int64  `json:"status"`
		} `json:"instanceList"`
		TotalCount int64 `json:"totalCount"`
	} `json:"data"`
	Message string `json:"message"`
}

func ListInstance

func ListInstance(options ...string) (*ListInstanceResp, error)

func (*ListInstanceResp) String

func (r *ListInstanceResp) String(args ...interface{}) (string, error)

type ListTopicResp

type ListTopicResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TopicList []struct {
			TopicID   string `json:"topicId"`
			TopicName string `json:"topicName"`
		} `json:"topicList"`
		TotalCount int64 `json:"totalCount"`
	} `json:"data"`
	Message string `json:"message"`
}

func ListTopic

func ListTopic(options ...string) (*ListTopicResp, error)

func (*ListTopicResp) String

func (r *ListTopicResp) String(args ...interface{}) (string, error)

type SetInstanceAttributesResp

type SetInstanceAttributesResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func SetInstanceAttributes

func SetInstanceAttributes(options ...string) (*SetInstanceAttributesResp, error)

func (*SetInstanceAttributesResp) String

func (r *SetInstanceAttributesResp) String(args ...interface{}) (string, error)

type SetTopicAttributesResp

type SetTopicAttributesResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func SetTopicAttributes

func SetTopicAttributes(options ...string) (*SetTopicAttributesResp, error)

func (*SetTopicAttributesResp) String

func (r *SetTopicAttributesResp) String(args ...interface{}) (string, error)

Jump to

Keyboard shortcuts

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