Versions in this module Expand all Collapse all v0 v0.0.2 Jun 12, 2018 Changes in this version + const APIURL type Card + CardID string type Client + APIKey string + KafkaTopics *KafkaTopicsHandler + func NewMFAUserClient(email, otp, password string) (*Client, error) + type ConsumerGroup struct + GroupName string + Offset int + type CreateKafkaTopicRequest struct + CleanupPolicy *string + MinimumInSyncReplicas *int + Partitions *int + Replication *int + RetentionBytes *int + RetentionHours *int + TopicName string type CreateProjectRequest + CardID string + type KafkaListTopic struct + CleanupPolicy string + MinimumInSyncReplicas int + Partitions int + Replication int + RetentionBytes int + RetentionHours int + State string + TopicName string + type KafkaTopic struct + CleanupPolicy string + MinimumInSyncReplicas int + Partitions []*Partition + Replication int + RetentionBytes int + RetentionHours int + State string + TopicName string + type KafkaTopicResponse struct + Topic *KafkaTopic + type KafkaTopicsHandler struct + func (h *KafkaTopicsHandler) Create(project, service string, req CreateKafkaTopicRequest) error + func (h *KafkaTopicsHandler) Delete(project, service, topic string) error + func (h *KafkaTopicsHandler) Get(project, service, topic string) (*KafkaTopic, error) + func (h *KafkaTopicsHandler) List(project, service string) ([]*KafkaListTopic, error) + func (h *KafkaTopicsHandler) Update(project, service, topic string, req UpdateKafkaTopicRequest) error + type KafkaTopicsResponse struct + Topics []*KafkaListTopic + type Partition struct + ConsumerGroups []*ConsumerGroup + EarliestOffset int + ISR int + LatestOffset int + Partition int + Size int type Project + VatID string type Service + URI string type ServiceUser + AccessCert string + AccessKey string type Token + func MFAUserToken(email, otp, password string, client *http.Client) (*Token, error) + type UpdateKafkaTopicRequest struct + MinimumInSyncReplicas *int + Partitions *int + RetentionBytes *int + RetentionHours *int type UpdateProjectRequest + CardID string v0.0.1 Mar 17, 2017 Changes in this version + const APIUrl + var ErrInvalidHost = errors.New("Host doesn't isn't in the correct format: `hostname:port`") + var ErrNoResponseData = errors.New("No response data available") + type APIResponse struct + Errors []Error + Message string + type Backup struct + type BillingHandler struct + Cards *CardsHandler + type Card struct + Brand string + CardId string + Country string + CountryCode string + ExpMonth int + ExpYear int + Last4 string + Name string + ProjectNames []string + type CardListResponse struct + Cards []*Card + type CardsHandler struct + func (h *CardsHandler) List() ([]*Card, error) + type Client struct + ApiKey string + Billing *BillingHandler + Client *http.Client + Databases *DatabasesHandler + Projects *ProjectsHandler + ServiceUsers *ServiceUsersHandler + Services *ServicesHandler + func NewTokenClient(key string) (*Client, error) + func NewUserClient(email, password string) (*Client, error) + func (c *Client) Init() + type ConnectionPool struct + type CreateDatabaseRequest struct + Database string + LcCollate string + LcType string + type CreateProjectRequest struct + CardId string + Cloud string + Project string + type CreateServiceRequest struct + Cloud string + GroupName string + Plan string + ServiceName string + ServiceType string + type CreateServiceUserRequest struct + Username string + type Database struct + Database string + LcCollate string + LcType string + type DatabasesHandler struct + func (h *DatabasesHandler) Create(project, service string, req CreateDatabaseRequest) (*Database, error) + func (h *DatabasesHandler) Delete(project, service, database string) error + type Error struct + Message string + MoreInfo string + Status int + func (e Error) Error() string + type Project struct + AvailableCredits string + BillingAddress string + Card Card + Country string + CountryCode string + DefaultCloud string + EstimatedBalance string + Name string + PaymentMethod string + VatId string + type ProjectListResponse struct + Projects []*Project + type ProjectResponse struct + Project *Project + type ProjectsHandler struct + func (h *ProjectsHandler) Create(req CreateProjectRequest) (*Project, error) + func (h *ProjectsHandler) Delete(project string) error + func (h *ProjectsHandler) Get(project string) (*Project, error) + func (h *ProjectsHandler) List() ([]*Project, error) + func (h *ProjectsHandler) Update(project string, req UpdateProjectRequest) (*Project, error) + type Service struct + CloudName string + CreateTime string + GroupList []string + Metadata interface{} + Name string + NodeCount int + Plan string + State string + Type string + UpdateTime string + Uri string + Users []*ServiceUser + func (s *Service) Hostname() (string, error) + func (s *Service) Port() (string, error) + type ServiceListResponse struct + Services []*Service + type ServiceResponse struct + Service *Service + type ServiceUser struct + Password string + Type string + Username string + type ServiceUserResponse struct + User *ServiceUser + type ServiceUsersHandler struct + func (h *ServiceUsersHandler) Create(project, service string, req CreateServiceUserRequest) (*ServiceUser, error) + func (h *ServiceUsersHandler) Delete(project, service, user string) error + type ServicesHandler struct + func (h *ServicesHandler) Create(project string, req CreateServiceRequest) (*Service, error) + func (h *ServicesHandler) Delete(project, service string) error + func (h *ServicesHandler) Get(project, service string) (*Service, error) + func (h *ServicesHandler) List(project string) ([]*Service, error) + func (h *ServicesHandler) Update(project, service string, req UpdateServiceRequest) (*Service, error) + type Token struct + State string + Token string + func UserToken(email, password string, client *http.Client) (*Token, error) + type UpdateProjectRequest struct + BillingAddress string + CardId string + Cloud string + type UpdateServiceRequest struct + Cloud string + GroupName string + Plan string + Powered bool + type User struct + Password string + Type string + Username string