client

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManageClient

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

ManageClient is the client to talk with the management service.

func NewManageClient

func NewManageClient(serverURL string, tlsConf *tls.Config) *ManageClient

NewManageClient creates a new ManageClient instance. Example serverURL: https://firecamp-manageserver.cluster-firecamp.com:27040/

func (*ManageClient) CatalogCheckServiceInit

func (c *ManageClient) CatalogCheckServiceInit(ctx context.Context, r *manage.CatalogCheckServiceInitRequest) (initialized bool, statusMsg string, err error)

CatalogCheckServiceInit checks if a catalog service is initialized.

func (*ManageClient) CatalogCreateCassandraService

func (c *ManageClient) CatalogCreateCassandraService(ctx context.Context, r *manage.CatalogCreateCassandraRequest) error

CatalogCreateCassandraService creates a new catalog Cassandra service.

func (*ManageClient) CatalogCreateKafkaService

func (c *ManageClient) CatalogCreateKafkaService(ctx context.Context, r *manage.CatalogCreateKafkaRequest) error

CatalogCreateKafkaService creates a new catalog Kafka service.

func (*ManageClient) CatalogCreateMongoDBService

func (c *ManageClient) CatalogCreateMongoDBService(ctx context.Context, r *manage.CatalogCreateMongoDBRequest) error

CatalogCreateMongoDBService creates a new catalog MongoDB ReplicaSet service.

func (*ManageClient) CatalogCreatePostgreSQLService

func (c *ManageClient) CatalogCreatePostgreSQLService(ctx context.Context, r *manage.CatalogCreatePostgreSQLRequest) error

CatalogCreatePostgreSQLService creates a new catalog PostgreSQL service.

func (*ManageClient) CatalogCreateRedisService

func (c *ManageClient) CatalogCreateRedisService(ctx context.Context, r *manage.CatalogCreateRedisRequest) error

CatalogCreateRedisService creates a new catalog Redis service.

func (*ManageClient) CatalogCreateZooKeeperService

func (c *ManageClient) CatalogCreateZooKeeperService(ctx context.Context, r *manage.CatalogCreateZooKeeperRequest) error

CatalogCreateZooKeeperService creates a new catalog ZooKeeper service.

func (*ManageClient) CreateService

func (c *ManageClient) CreateService(ctx context.Context, r *manage.CreateServiceRequest) error

CreateService creates a new service

func (*ManageClient) DeleteService

func (c *ManageClient) DeleteService(ctx context.Context, r *manage.ServiceCommonRequest) error

DeleteService deletes one service

func (*ManageClient) DeleteTask

func (c *ManageClient) DeleteTask(ctx context.Context, r *manage.DeleteTaskRequest) error

DeleteTask deletes the service task.

func (*ManageClient) GetConfigFile

GetConfigFile gets the config file.

func (*ManageClient) GetServiceAttr

GetServiceAttr gets the service details information

func (*ManageClient) GetServiceStatus

GetServiceStatus gets the service running status.

func (*ManageClient) GetTaskStatus

GetTaskStatus gets a task's status.

func (*ManageClient) InternalGetServiceTask

func (c *ManageClient) InternalGetServiceTask(ctx context.Context, r *manage.InternalGetServiceTaskRequest) (taskID string, err error)

InternalGetServiceTask gets the service task ID.

func (*ManageClient) InternalListActiveServiceTasks

func (c *ManageClient) InternalListActiveServiceTasks(ctx context.Context, r *manage.InternalListActiveServiceTasksRequest) (taskIDs map[string]bool, err error)

InternalListActiveServiceTasks lists the service active tasks.

func (*ManageClient) IsServiceInitialized

func (c *ManageClient) IsServiceInitialized(ctx context.Context, r *manage.ServiceCommonRequest) (bool, error)

IsServiceInitialized checks whether the service is initialized

func (*ManageClient) ListService

ListService lists all services that match the required conditions

func (*ManageClient) ListServiceMember

ListServiceMember lists all serviceMembers of the service.

func (*ManageClient) RunTask

func (c *ManageClient) RunTask(ctx context.Context, r *manage.RunTaskRequest) (taskID string, err error)

RunTask runs a task

func (*ManageClient) SetServiceInitialized

func (c *ManageClient) SetServiceInitialized(ctx context.Context, r *manage.ServiceCommonRequest) error

SetServiceInitialized updates the service status to active

Jump to

Keyboard shortcuts

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