Documentation
¶
Index ¶
- Constants
- type Driver
- type ExportWorkerKafkaApi
- type ImportDeployService
- type Influx
- type InfluxImpl
- type PipelineApiService
- type Serving
- func (f *Serving) CreateExportDatabase(id string, req lib.ExportDatabaseRequest, userId string) (database lib.ExportDatabase, errs []error)
- func (f *Serving) CreateFromInstance(instance *lib.Instance) (err error)
- func (f *Serving) CreateInstance(req lib.ServingRequest, userId string, token string) (instance lib.Instance, err error)
- func (f *Serving) DeleteExportDatabase(id string, userId string) (errs []error)
- func (f *Serving) DeleteInstanceForUser(id string, userId string, token string) (deleted bool, errors []error)
- func (f *Serving) DeleteInstanceWithPermHandling(id string, userId string, admin bool, token string) (deleted bool, errors []error)
- func (f *Serving) DeleteInstancesForUser(ids []string, userId string, token string) (deleted []string, errors []error)
- func (f *Serving) ExportInstanceCleanup(recheckWait time.Duration) error
- func (f *Serving) GetExportDatabase(id string, userId string) (database lib.ExportDatabase, errs []error)
- func (f *Serving) GetExportDatabases(userId string, args map[string][]string) (databases []lib.ExportDatabase, errs []error)
- func (f *Serving) GetInstance(id string, userId string, token string, admin bool) (instance lib.Instance, errors []error)
- func (f *Serving) GetInstances(userId string, args map[string][]string, admin bool, token string) (instances lib.Instances, total int64, errors []error)
- func (f *Serving) GetInstancesForUser(userId string, args map[string][]string, token string) (instances lib.Instances, count int64, errors []error)
- func (f *Serving) UpdateExportDatabase(id string, req lib.ExportDatabaseRequest, userId string) (database lib.ExportDatabase, errs []error)
- func (f *Serving) UpdateInstance(id string, userId string, request lib.ServingRequest, token string) (instance lib.Instance, errors []error)
Constants ¶
View Source
const ( PermV2DeviceTopic = "devices" ExportInstancePermissionsTopic = "export-instances" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportWorkerKafkaApi ¶
type ImportDeployService ¶
type InfluxImpl ¶
type InfluxImpl struct {
// contains filtered or unexported fields
}
func NewInflux ¶
func NewInflux(cfg config.InfluxConfig, ctx context.Context, wg *sync.WaitGroup) *InfluxImpl
func (*InfluxImpl) ForceDeleteMeasurement ¶
type PipelineApiService ¶
type Serving ¶
type Serving struct {
// contains filtered or unexported fields
}
func NewServing ¶
func NewServing(driver Driver, influx Influx, pipelineService PipelineApiService, importDeployService ImportDeployService, exportDatabaseIdPrefix string, permissionsV2 permV2Client.Client, cleanupChron string, cleanupRecheckWait time.Duration) (*Serving, error)
func (*Serving) CreateExportDatabase ¶
func (f *Serving) CreateExportDatabase(id string, req lib.ExportDatabaseRequest, userId string) (database lib.ExportDatabase, errs []error)
func (*Serving) CreateFromInstance ¶
func (*Serving) CreateInstance ¶
func (*Serving) DeleteExportDatabase ¶
func (*Serving) DeleteInstanceForUser ¶
func (*Serving) DeleteInstanceWithPermHandling ¶
func (*Serving) DeleteInstancesForUser ¶
func (*Serving) ExportInstanceCleanup ¶
func (*Serving) GetExportDatabase ¶
func (*Serving) GetExportDatabases ¶
func (*Serving) GetInstance ¶
func (*Serving) GetInstances ¶
func (*Serving) GetInstancesForUser ¶
func (*Serving) UpdateExportDatabase ¶
func (f *Serving) UpdateExportDatabase(id string, req lib.ExportDatabaseRequest, userId string) (database lib.ExportDatabase, errs []error)
Click to show internal directories.
Click to hide internal directories.