Documentation ¶
Overview ¶
Simple operation to get the details about a particular cluster.
Index ¶
- type Client
- type Cluster
- type ClustersService
- type Connector
- type ConnectorsService
- func (s *ConnectorsService) Create(name string, config map[string]interface{}) (Connector, error)
- func (s *ConnectorsService) Delete(name string) error
- func (s *ConnectorsService) Get(name string) (Connector, error)
- func (s *ConnectorsService) List() ([]string, error)
- func (s *ConnectorsService) Update(name string, config map[string]interface{}) (Connector, error)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // //Protocol, hostname, port with trailing slash. For example: // http://localhost/ // http://localhost:8083/ // http://localhost:8083/some/mapped/path/ // BaseURL *url.URL //User agent used when communicating with the APIs UserAgent string Clusters *ClustersService Connectors *ConnectorsService // contains filtered or unexported fields }
type ClustersService ¶
type ClustersService service
func (*ClustersService) Get ¶
func (s *ClustersService) Get() (Cluster, error)
type Connector ¶
type Connector struct { Name string `json:"name"` Config map[string]interface{} `json:"config,omitempty"` Tasks []Task `json:"tasks,omitempty"` }
A Connector struct with everything in it
type ConnectorsService ¶
type ConnectorsService service
func (*ConnectorsService) Create ¶
func (s *ConnectorsService) Create(name string, config map[string]interface{}) (Connector, error)
Create a new connector as in
https://docs.confluent.io/platform/current/connect/references/restapi.html#post--connectors
func (*ConnectorsService) Delete ¶
func (s *ConnectorsService) Delete(name string) error
Delete a connector as in
https://docs.confluent.io/platform/current/connect/references/restapi.html#delete--connectors-(string-name)-
func (*ConnectorsService) Get ¶
func (s *ConnectorsService) Get(name string) (Connector, error)
Get/Read a connector as in
https://docs.confluent.io/platform/current/connect/references/restapi.html#get--connectors-(string-name)
func (*ConnectorsService) List ¶
func (s *ConnectorsService) List() ([]string, error)
List all connectors as in
https://docs.confluent.io/platform/current/connect/references/restapi.html#get--connectors
Click to show internal directories.
Click to hide internal directories.