Documentation ¶
Index ¶
- Variables
- func ComposeError(expectedError *service.Error, source string, meta interface{}) *service.Error
- func RawBaseObject() map[string]interface{}
- type Datum
- func (d *Datum) DeduplicatorDescriptor() *data.DeduplicatorDescriptor
- func (d *Datum) IdentityFields() ([]string, error)
- func (d *Datum) Init()
- func (d *Datum) Meta() interface{}
- func (d *Datum) Normalize(normalizer data.Normalizer) error
- func (d *Datum) Parse(parser data.ObjectParser) error
- func (d *Datum) SetActive(active bool)
- func (d *Datum) SetCreatedTime(createdTime string)
- func (d *Datum) SetCreatedUserID(createdUserID string)
- func (d *Datum) SetDatasetID(datasetID string)
- func (d *Datum) SetDeduplicatorDescriptor(deduplicatorDescriptor *data.DeduplicatorDescriptor)
- func (d *Datum) SetDeletedTime(deletedTime string)
- func (d *Datum) SetDeletedUserID(deletedUserID string)
- func (d *Datum) SetGroupID(groupID string)
- func (d *Datum) SetModifiedTime(modifiedTime string)
- func (d *Datum) SetModifiedUserID(modifiedUserID string)
- func (d *Datum) SetUserID(userID string)
- func (d *Datum) UnusedOutputsCount() int
- func (d *Datum) Validate(validator data.Validator) error
- type Deduplicator
- func (d *Deduplicator) AddDatasetData(datasetData []data.Datum) error
- func (d *Deduplicator) DeduplicateDataset() error
- func (d *Deduplicator) DeleteDataset() error
- func (d *Deduplicator) Name() string
- func (d *Deduplicator) RegisterDataset() error
- func (d *Deduplicator) UnusedOutputsCount() int
- func (d *Deduplicator) Version() string
- type IdentityFieldsOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var ExpectFieldIsValid = func(object map[string]interface{}, field string, value interface{}) { checkErrorsFromParseValidateNormalize(object, field, value, []*service.Error{}) }
View Source
var ExpectFieldNotValid = func(object map[string]interface{}, field string, value interface{}, expectedErrors []*service.Error) {
checkErrorsFromParseValidateNormalize(object, field, value, expectedErrors)
}
Functions ¶
func ComposeError ¶ added in v1.5.0
func RawBaseObject ¶ added in v1.5.0
func RawBaseObject() map[string]interface{}
Types ¶
type Datum ¶
type Datum struct { ID string InitInvocations int MetaInvocations int MetaOutputs []interface{} ParseInvocations int ParseInputs []data.ObjectParser ParseOutputs []error ValidateInvocations int ValidateInputs []data.Validator ValidateOutputs []error NormalizeInvocations int NormalizeInputs []data.Normalizer NormalizeOutputs []error IdentityFieldsInvocations int IdentityFieldsOutputs []IdentityFieldsOutput SetUserIDInvocations int SetUserIDInputs []string SetGroupIDInvocations int SetGroupIDInputs []string SetDatasetIDInvocations int SetDatasetIDInputs []string SetActiveInvocations int SetActiveInputs []bool SetCreatedTimeInvocations int SetCreatedTimeInputs []string SetCreatedUserIDInvocations int SetCreatedUserIDInputs []string SetModifiedTimeInvocations int SetModifiedTimeInputs []string SetModifiedUserIDInvocations int SetModifiedUserIDInputs []string SetDeletedTimeInvocations int SetDeletedTimeInputs []string SetDeletedUserIDInvocations int SetDeletedUserIDInputs []string DeduplicatorDescriptorValue *data.DeduplicatorDescriptor DeduplicatorDescriptorInvocations int SetDeduplicatorDescriptorInvocations int }
func (*Datum) DeduplicatorDescriptor ¶
func (d *Datum) DeduplicatorDescriptor() *data.DeduplicatorDescriptor
func (*Datum) IdentityFields ¶
func (*Datum) SetCreatedTime ¶
func (*Datum) SetCreatedUserID ¶
func (*Datum) SetDatasetID ¶
func (*Datum) SetDeduplicatorDescriptor ¶
func (d *Datum) SetDeduplicatorDescriptor(deduplicatorDescriptor *data.DeduplicatorDescriptor)
func (*Datum) SetDeletedTime ¶
func (*Datum) SetDeletedUserID ¶
func (*Datum) SetGroupID ¶
func (*Datum) SetModifiedTime ¶
func (*Datum) SetModifiedUserID ¶
func (*Datum) UnusedOutputsCount ¶
type Deduplicator ¶
type Deduplicator struct { ID string NameInvocations int NameOutputs []string VersionInvocations int VersionOutputs []string RegisterDatasetInvocations int RegisterDatasetOutputs []error AddDatasetDataInvocations int AddDatasetDataInputs [][]data.Datum AddDatasetDataOutputs []error DeduplicateDatasetInvocations int DeduplicateDatasetOutputs []error DeleteDatasetInvocations int DeleteDatasetOutputs []error }
func NewDeduplicator ¶
func NewDeduplicator() *Deduplicator
func (*Deduplicator) AddDatasetData ¶ added in v1.5.0
func (d *Deduplicator) AddDatasetData(datasetData []data.Datum) error
func (*Deduplicator) DeduplicateDataset ¶ added in v1.5.0
func (d *Deduplicator) DeduplicateDataset() error
func (*Deduplicator) DeleteDataset ¶ added in v1.5.0
func (d *Deduplicator) DeleteDataset() error
func (*Deduplicator) Name ¶ added in v1.5.0
func (d *Deduplicator) Name() string
func (*Deduplicator) RegisterDataset ¶ added in v1.5.0
func (d *Deduplicator) RegisterDataset() error
func (*Deduplicator) UnusedOutputsCount ¶
func (d *Deduplicator) UnusedOutputsCount() int
func (*Deduplicator) Version ¶ added in v1.8.0
func (d *Deduplicator) Version() string
type IdentityFieldsOutput ¶
Click to show internal directories.
Click to hide internal directories.