Documentation
¶
Index ¶
- type ConsulStore
- func (s *ConsulStore) DeleteProject(ctx context.Context, projectID string) error
- func (s *ConsulStore) Register()
- func (s *ConsulStore) SetProject(ctx context.Context, project *config.Project) error
- func (s *ConsulStore) WatchProjects(cb func(projects []*config.Project)) error
- func (s *ConsulStore) WatchServices(cb func(scServices)) error
- type ETCDStore
- func (s *ETCDStore) DeleteProject(ctx context.Context, projectID string) error
- func (s *ETCDStore) Register()
- func (s *ETCDStore) SetProject(ctx context.Context, project *config.Project) error
- func (s *ETCDStore) WatchProjects(cb func(projects []*config.Project)) error
- func (s *ETCDStore) WatchServices(cb func(scServices)) error
- type Manager
- func (s *Manager) CreateProjectConfig(ctx context.Context, project *config.Project) (error, int)
- func (s *Manager) DeleteProjectConfig(ctx context.Context, projectID string) error
- func (s *Manager) GetAssignedSpaceCloudURL(ctx context.Context, project string, token int) (string, error)
- func (s *Manager) GetAssignedTokens() (start, end int)
- func (s *Manager) GetClusterSize(ctxParent context.Context) (int, error)
- func (s *Manager) GetConfig(projectID string) (*config.Project, error)
- func (s *Manager) GetEventSource() string
- func (s *Manager) GetGlobalConfig() *config.Config
- func (s *Manager) GetRealtimeUrl(project string) string
- func (s *Manager) GetSpaceCloudNodeURLs(project string) []string
- func (s *Manager) MakeHTTPRequest(ctx context.Context, method, url, token, scToken string, ...) error
- func (s *Manager) RemoveDatabaseConfig(ctx context.Context, project, dbAlias string) error
- func (s *Manager) SetCollectionRules(ctx context.Context, project, dbType, col string, v *config.TableRule) error
- func (s *Manager) SetDatabaseConnection(ctx context.Context, project, dbType string, v config.CrudStub) error
- func (s *Manager) SetDeleteCollection(ctx context.Context, project, dbType, col string) error
- func (s *Manager) SetDeleteEventingRule(ctx context.Context, project, ruleName string) error
- func (s *Manager) SetDeleteFileRule(ctx context.Context, project, filename string) error
- func (s *Manager) SetDeleteService(ctx context.Context, project, service string) error
- func (s *Manager) SetEventingConfig(ctx context.Context, project, dbType, col string, enabled bool) error
- func (s *Manager) SetEventingRule(ctx context.Context, project, ruleName string, value config.EventingRule) error
- func (s *Manager) SetFileRule(ctx context.Context, project string, value *config.FileRule) error
- func (s *Manager) SetFileStore(ctx context.Context, project string, value *config.FileStore) error
- func (s *Manager) SetGlobalConfig(c *config.Config)
- func (s *Manager) SetModifyAllSchema(ctx context.Context, dbType, project string, schemaArg *schema.Schema, ...) error
- func (s *Manager) SetModifySchema(ctx context.Context, project, dbType, col, schema string) error
- func (s *Manager) SetProjectConfig(ctx context.Context, project *config.Project) error
- func (s *Manager) SetProjectGlobalConfig(ctx context.Context, project *config.Project) error
- func (s *Manager) SetReloadSchema(ctx context.Context, dbType, project string, schemaArg *schema.Schema) (map[string]interface{}, error)
- func (s *Manager) SetSchemaInspection(ctx context.Context, project, dbType, col, schema string) error
- func (s *Manager) SetService(ctx context.Context, project, service string, value *config.Service) error
- func (s *Manager) SetUserManagement(ctx context.Context, project, provider string, value *config.AuthStub) error
- func (s *Manager) Start(configFilePath string, cb func(*config.Config) error, port int) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulStore ¶ added in v0.15.0
type ConsulStore struct {
// contains filtered or unexported fields
}
func NewConsulStore ¶ added in v0.15.0
func NewConsulStore(nodeID, clusterID, advertiseAddr string) (*ConsulStore, error)
func (*ConsulStore) DeleteProject ¶ added in v0.15.0
func (s *ConsulStore) DeleteProject(ctx context.Context, projectID string) error
func (*ConsulStore) Register ¶ added in v0.15.0
func (s *ConsulStore) Register()
func (*ConsulStore) SetProject ¶ added in v0.15.0
func (*ConsulStore) WatchProjects ¶ added in v0.15.0
func (s *ConsulStore) WatchProjects(cb func(projects []*config.Project)) error
func (*ConsulStore) WatchServices ¶ added in v0.15.0
func (s *ConsulStore) WatchServices(cb func(scServices)) error
type ETCDStore ¶ added in v0.15.0
type ETCDStore struct {
// contains filtered or unexported fields
}
func NewETCDStore ¶ added in v0.15.0
func (*ETCDStore) DeleteProject ¶ added in v0.15.0
func (*ETCDStore) SetProject ¶ added in v0.15.0
func (*ETCDStore) WatchProjects ¶ added in v0.15.0
func (*ETCDStore) WatchServices ¶ added in v0.15.0
type Manager ¶ added in v0.13.0
type Manager struct {
// contains filtered or unexported fields
}
Manager syncs the project config between folders
func (*Manager) CreateProjectConfig ¶ added in v0.13.0
func (*Manager) DeleteProjectConfig ¶ added in v0.13.0
DeleteProjectConfig applies delete project config command to the raft log
func (*Manager) GetAssignedSpaceCloudURL ¶ added in v0.13.0
func (s *Manager) GetAssignedSpaceCloudURL(ctx context.Context, project string, token int) (string, error)
GetAssignedSpaceCloudURL returns the space cloud url assigned for the provided token
func (*Manager) GetAssignedTokens ¶ added in v0.13.0
GetAssignedTokens returns the array or tokens assigned to this node
func (*Manager) GetClusterSize ¶ added in v0.13.0
GetClusterSize returns the size of the cluster
func (*Manager) GetEventSource ¶ added in v0.13.0
GetEventSource returns the source id for the space cloud instance
func (*Manager) GetGlobalConfig ¶ added in v0.13.0
GetGlobalConfig gets the global config
func (*Manager) GetRealtimeUrl ¶ added in v0.15.0
func (*Manager) GetSpaceCloudNodeURLs ¶ added in v0.13.0
GetSpaceCloudNodeURLs returns the array of space cloud urls
func (*Manager) MakeHTTPRequest ¶ added in v0.13.0
func (s *Manager) MakeHTTPRequest(ctx context.Context, method, url, token, scToken string, params, vPtr interface{}) error
MakeHTTPRequest fires an http request and returns a response
func (*Manager) RemoveDatabaseConfig ¶ added in v0.15.0
func (*Manager) SetCollectionRules ¶ added in v0.13.0
func (*Manager) SetDatabaseConnection ¶ added in v0.13.0
func (*Manager) SetDeleteCollection ¶ added in v0.13.0
func (*Manager) SetDeleteEventingRule ¶ added in v0.13.0
func (*Manager) SetDeleteFileRule ¶ added in v0.13.0
func (*Manager) SetDeleteService ¶ added in v0.13.0
func (*Manager) SetEventingConfig ¶ added in v0.13.0
func (*Manager) SetEventingRule ¶ added in v0.13.0
func (*Manager) SetFileRule ¶ added in v0.13.0
func (*Manager) SetFileStore ¶ added in v0.13.0
func (*Manager) SetGlobalConfig ¶ added in v0.13.0
SetGlobalConfig sets the global config. This must be called before the Start command.
func (*Manager) SetModifyAllSchema ¶ added in v0.13.0
func (*Manager) SetModifySchema ¶ added in v0.13.0
func (*Manager) SetProjectConfig ¶ added in v0.13.0
SetProjectConfig applies the set project config command to the raft log
func (*Manager) SetProjectGlobalConfig ¶ added in v0.13.0
SetProjectGlobalConfig applies the set project config command to the raft log