Documentation
¶
Index ¶
- func ExpandEntity(e *Entity, fExpand func(string) string)
- func GetClientsCompletion(pattern string) []string
- func GetDatasetsCompletion(pattern string) []string
- func GetJobsCompletion(pattern string) []string
- func ValueExpander(nsMap map[string]interface{}) func(string) string
- type AccessControl
- type ClientInfo
- type CollectorSink
- type ConsoleSink
- type Dataset
- type DatasetManager
- type DatasetType
- type Entity
- type EntityListDatasource
- type EntityManager
- type EntityQuery
- type EntityStreamParser
- type HistoryView
- type Job
- type JobHistory
- type JobManager
- func (jm *JobManager) AddJob(config []byte) (*Job, error)
- func (jm *JobManager) AddTransform(job *Job, transform string) (*Job, error)
- func (jm *JobManager) DeleteJob(jobId string) error
- func (jm *JobManager) GetJob(jobId string) (*Job, error)
- func (jm *JobManager) GetJobHistories() []JobHistory
- func (jm *JobManager) GetJobHistoryForId(id string) (JobHistory, error)
- func (jm *JobManager) GetJobListWithHistory() []JobOutputViewItem
- func (jm *JobManager) GetJobStatus(jobId string) ([]JobStatus, error)
- func (jm *JobManager) GetJobs() []Job
- func (jm *JobManager) ResolveId(title string) string
- func (jm *JobManager) UpdateJob(job *Job) (*Job, error)
- type JobOutput
- type JobOutputViewItem
- type JobStatus
- type JobTrigger
- type Pipeline
- type PrettySink
- type ProviderConfig
- type RawSink
- type SecurityManager
- func (secManager *SecurityManager) AddClient(id string, key []byte) error
- func (secManager *SecurityManager) AddClientAcl(id string, acls []byte) error
- func (secManager *SecurityManager) AddTokenProvider(tokenProviderConfig []byte) error
- func (secManager *SecurityManager) DeleteClient(id string) error
- func (secManager *SecurityManager) GetClientAcl(id string) ([]AccessControl, error)
- func (secManager *SecurityManager) ListClients() (map[string]ClientInfo, error)
- func (secManager *SecurityManager) ListTokenProviders() ([]ProviderConfig, error)
- type Sink
- type SinkExpander
- type Source
- type StdinDatasetSource
- type TxnManager
- type ValueReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandEntity ¶
func GetClientsCompletion ¶
func GetDatasetsCompletion ¶
func GetJobsCompletion ¶
func ValueExpander ¶
Types ¶
type AccessControl ¶
type ClientInfo ¶
type CollectorSink ¶
func (*CollectorSink) End ¶
func (s *CollectorSink) End()
func (*CollectorSink) ProcessEntities ¶
func (s *CollectorSink) ProcessEntities(entities []*Entity) error
func (*CollectorSink) Start ¶
func (s *CollectorSink) Start()
type ConsoleSink ¶
type ConsoleSink struct {
// contains filtered or unexported fields
}
func (*ConsoleSink) End ¶
func (s *ConsoleSink) End()
func (*ConsoleSink) ProcessEntities ¶
func (s *ConsoleSink) ProcessEntities(entities []*Entity) error
func (*ConsoleSink) Start ¶
func (s *ConsoleSink) Start()
type DatasetManager ¶
type DatasetManager struct {
// contains filtered or unexported fields
}
func NewDatasetManager ¶
func NewDatasetManager(server string, token string) *DatasetManager
func (*DatasetManager) List ¶
func (dm *DatasetManager) List() ([]Dataset, error)
type DatasetType ¶
type DatasetType string
const ( Entities DatasetType = "entities" Changes DatasetType = "changes" )
type Entity ¶
type Entity struct {
ID string `json:"id"`
Recorded uint64 `json:"recorded"`
IsDeleted bool `json:"deleted"`
References map[string]interface{} `json:"refs"`
Properties map[string]interface{} `json:"props"`
}
func NewContext ¶
func NewContext() *Entity
func NewEntityFromMap ¶
func (*Entity) GetProperty ¶
GetProperty returns the value of the named property as an interface
func (*Entity) GetStringProperty ¶
GetStringProperty returns the string value of the requested property
type EntityListDatasource ¶
type EntityListDatasource struct {
Entities []*Entity
}
type EntityManager ¶
type EntityManager struct {
// contains filtered or unexported fields
}
func NewEntityManager ¶
func NewEntityManager(server string, token string, ctx context.Context, dsType DatasetType) *EntityManager
type EntityQuery ¶
type EntityQuery struct {
// contains filtered or unexported fields
}
func NewEntityQuery ¶
func NewEntityQuery(server string, token string) *EntityQuery
type EntityStreamParser ¶
type EntityStreamParser struct {
// contains filtered or unexported fields
}
func NewEntityStreamParser ¶
func NewEntityStreamParser() *EntityStreamParser
func (*EntityStreamParser) ParseStream ¶
type HistoryView ¶
type Job ¶
type Job struct {
Title string `json:"title"`
Id string `json:"id"`
Description string `json:"description"`
Tags []string `json:"tags"`
Source map[string]interface{} `json:"source"`
Sink map[string]interface{} `json:"sink"`
Transform map[string]interface{} `json:"transform"`
Triggers []JobTrigger `json:"triggers"`
Paused bool `json:"paused"`
BatchSize int `json:"batchSize"`
}
type JobHistory ¶
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
func NewJobManager ¶
func NewJobManager(server string, token string) *JobManager
func (*JobManager) AddJob ¶
func (jm *JobManager) AddJob(config []byte) (*Job, error)
AddJob adds a new job to the scheduler
func (*JobManager) AddTransform ¶
func (jm *JobManager) AddTransform(job *Job, transform string) (*Job, error)
AddTransform adds a transform to an existing job and updates the job on the server
func (*JobManager) DeleteJob ¶
func (jm *JobManager) DeleteJob(jobId string) error
DeleteJob deletes a job
func (*JobManager) GetJob ¶
func (jm *JobManager) GetJob(jobId string) (*Job, error)
GetJob gets a job given its id, or error if not found.
func (*JobManager) GetJobHistories ¶
func (jm *JobManager) GetJobHistories() []JobHistory
func (*JobManager) GetJobHistoryForId ¶
func (jm *JobManager) GetJobHistoryForId(id string) (JobHistory, error)
func (*JobManager) GetJobListWithHistory ¶
func (jm *JobManager) GetJobListWithHistory() []JobOutputViewItem
func (*JobManager) GetJobStatus ¶
func (jm *JobManager) GetJobStatus(jobId string) ([]JobStatus, error)
GetJobStatus get the status for a given id or all running jobs
func (*JobManager) GetJobs ¶
func (jm *JobManager) GetJobs() []Job
func (*JobManager) ResolveId ¶
func (jm *JobManager) ResolveId(title string) string
type JobOutput ¶
type JobOutput struct {
Job Job
History *JobHistory
}
type JobOutputViewItem ¶
type JobOutputViewItem struct {
Job Job `json:"job"`
History *JobHistory `json:"history"`
HistoryView *HistoryView `json:"historyView"`
}
type JobTrigger ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
type PrettySink ¶
type PrettySink struct{}
func (*PrettySink) End ¶
func (s *PrettySink) End()
func (*PrettySink) ProcessEntities ¶
func (s *PrettySink) ProcessEntities(entities []*Entity) error
func (*PrettySink) Start ¶
func (s *PrettySink) Start()
type ProviderConfig ¶
type ProviderConfig struct {
Name string `json:"name"`
Type string `json:"type"`
User *ValueReader `json:"user,omitempty"`
Password *ValueReader `json:"password,omitempty"`
ClientId *ValueReader `json:"key,omitempty"`
ClientSecret *ValueReader `json:"secret,omitempty"`
Audience *ValueReader `json:"audience,omitempty"`
GrantType *ValueReader `json:"grantType,omitempty"`
Endpoint *ValueReader `json:"endpoint,omitempty"`
}
type RawSink ¶
type RawSink struct {
// contains filtered or unexported fields
}
func (*RawSink) ProcessEntities ¶
type SecurityManager ¶
type SecurityManager struct {
// contains filtered or unexported fields
}
func NewSecurityManager ¶
func NewSecurityManager(server string, token string) *SecurityManager
func (*SecurityManager) AddClient ¶
func (secManager *SecurityManager) AddClient(id string, key []byte) error
func (*SecurityManager) AddClientAcl ¶
func (secManager *SecurityManager) AddClientAcl(id string, acls []byte) error
func (*SecurityManager) AddTokenProvider ¶
func (secManager *SecurityManager) AddTokenProvider(tokenProviderConfig []byte) error
func (*SecurityManager) DeleteClient ¶
func (secManager *SecurityManager) DeleteClient(id string) error
func (*SecurityManager) GetClientAcl ¶
func (secManager *SecurityManager) GetClientAcl(id string) ([]AccessControl, error)
func (*SecurityManager) ListClients ¶
func (secManager *SecurityManager) ListClients() (map[string]ClientInfo, error)
func (*SecurityManager) ListTokenProviders ¶
func (secManager *SecurityManager) ListTokenProviders() ([]ProviderConfig, error)
type SinkExpander ¶
type SinkExpander struct {
Sink Sink
}
func (SinkExpander) End ¶
func (s SinkExpander) End()
func (SinkExpander) ProcessEntities ¶
func (s SinkExpander) ProcessEntities(entities []*Entity) error
func (SinkExpander) Start ¶
func (s SinkExpander) Start()
type StdinDatasetSource ¶
type StdinDatasetSource struct{}
type TxnManager ¶
type TxnManager struct {
// contains filtered or unexported fields
}
func NewTxnManager ¶
func NewTxnManager(server string, token string) *TxnManager
func (*TxnManager) ExecuteTransaction ¶
func (txnMgr *TxnManager) ExecuteTransaction(txnData []byte) error
ExecuteTransaction send txn to the server for execution
type ValueReader ¶
Click to show internal directories.
Click to hide internal directories.