db

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateTime added in v1.8.0

func DateTime(d strfmt.DateTime) *strfmt.DateTime

DateTime returns a pointer to the strfmt.DateTime value passed in.

func Int64 added in v1.8.0

func Int64(i int64) *int64

Int64 returns a pointer to the int64 value passed in.

func String added in v1.8.0

func String(s string) *string

String returns a pointer to the string value passed in.

Types

type AssocTypeAssocID

type AssocTypeAssocID struct {
	AssocType string
	AssocID   string
}

AssocTypeAssocID struct.

type CreatedBear

type CreatedBear struct {
	Created strfmt.DateTime
	Bear    string
}

CreatedBear struct.

type CreatedResource added in v1.14.1

type CreatedResource struct {
	Created  strfmt.DateTime
	Resource string
}

CreatedResource struct.

type ErrDeploymentByEnvAppAndDateNotFound

type ErrDeploymentByEnvAppAndDateNotFound struct {
	Environment string
	Application string
	Date        strfmt.DateTime
}

ErrDeploymentByEnvAppAndDateNotFound is returned when the database fails to find a Deployment.

func (ErrDeploymentByEnvAppAndDateNotFound) Error

Error returns a description of the error.

type ErrDeploymentByEnvironmentAndDateNotFound

type ErrDeploymentByEnvironmentAndDateNotFound struct {
	Environment string
	Date        strfmt.DateTime
}

ErrDeploymentByEnvironmentAndDateNotFound is returned when the database fails to find a Deployment.

func (ErrDeploymentByEnvironmentAndDateNotFound) Error

Error returns a description of the error.

type ErrDeploymentByVersionNotFound

type ErrDeploymentByVersionNotFound struct {
	Version string
}

ErrDeploymentByVersionNotFound is returned when the database fails to find a Deployment.

func (ErrDeploymentByVersionNotFound) Error

Error returns a description of the error.

type ErrDeploymentNotFound

type ErrDeploymentNotFound struct {
	Environment string
	Application string
	Version     string
}

ErrDeploymentNotFound is returned when the database fails to find a Deployment.

func (ErrDeploymentNotFound) Error

func (e ErrDeploymentNotFound) Error() string

Error returns a description of the error.

type ErrNoRangeThingWithCompositeAttributesAlreadyExists

type ErrNoRangeThingWithCompositeAttributesAlreadyExists struct {
	NameBranch string
}

ErrNoRangeThingWithCompositeAttributesAlreadyExists is returned when trying to overwrite a NoRangeThingWithCompositeAttributes.

func (ErrNoRangeThingWithCompositeAttributesAlreadyExists) Error

Error returns a description of the error.

type ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound

type ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound struct {
	Name    string
	Version int64
	Date    strfmt.DateTime
}

ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound is returned when the database fails to find a NoRangeThingWithCompositeAttributes.

func (ErrNoRangeThingWithCompositeAttributesByNameVersionAndDateNotFound) Error

Error returns a description of the error.

type ErrNoRangeThingWithCompositeAttributesNotFound

type ErrNoRangeThingWithCompositeAttributesNotFound struct {
	Name   string
	Branch string
}

ErrNoRangeThingWithCompositeAttributesNotFound is returned when the database fails to find a NoRangeThingWithCompositeAttributes.

func (ErrNoRangeThingWithCompositeAttributesNotFound) Error

Error returns a description of the error.

type ErrSimpleThingAlreadyExists

type ErrSimpleThingAlreadyExists struct {
	Name string
}

ErrSimpleThingAlreadyExists is returned when trying to overwrite a SimpleThing.

func (ErrSimpleThingAlreadyExists) Error

Error returns a description of the error.

type ErrSimpleThingNotFound

type ErrSimpleThingNotFound struct {
	Name string
}

ErrSimpleThingNotFound is returned when the database fails to find a SimpleThing.

func (ErrSimpleThingNotFound) Error

func (e ErrSimpleThingNotFound) Error() string

Error returns a description of the error.

type ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound added in v1.12.0

type ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound struct {
	District string
	School   string
	Teacher  string
	App      string
}

ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound is returned when the database fails to find a TeacherSharingRule.

func (ErrTeacherSharingRuleByDistrictAndSchoolTeacherAppNotFound) Error added in v1.12.0

Error returns a description of the error.

type ErrTeacherSharingRuleNotFound added in v1.12.0

type ErrTeacherSharingRuleNotFound struct {
	Teacher string
	School  string
	App     string
}

ErrTeacherSharingRuleNotFound is returned when the database fails to find a TeacherSharingRule.

func (ErrTeacherSharingRuleNotFound) Error added in v1.12.0

Error returns a description of the error.

type ErrThingAlreadyExists

type ErrThingAlreadyExists struct {
	Name    string
	Version int64
}

ErrThingAlreadyExists is returned when trying to overwrite a Thing.

func (ErrThingAlreadyExists) Error

func (e ErrThingAlreadyExists) Error() string

Error returns a description of the error.

type ErrThingByIDNotFound added in v1.8.0

type ErrThingByIDNotFound struct {
	ID string
}

ErrThingByIDNotFound is returned when the database fails to find a Thing.

func (ErrThingByIDNotFound) Error added in v1.8.0

func (e ErrThingByIDNotFound) Error() string

Error returns a description of the error.

type ErrThingByNameAndCreatedAtNotFound added in v1.8.0

type ErrThingByNameAndCreatedAtNotFound struct {
	Name      string
	CreatedAt strfmt.DateTime
}

ErrThingByNameAndCreatedAtNotFound is returned when the database fails to find a Thing.

func (ErrThingByNameAndCreatedAtNotFound) Error added in v1.8.0

Error returns a description of the error.

type ErrThingNotFound

type ErrThingNotFound struct {
	Name    string
	Version int64
}

ErrThingNotFound is returned when the database fails to find a Thing.

func (ErrThingNotFound) Error

func (e ErrThingNotFound) Error() string

Error returns a description of the error.

type ErrThingWithCompositeAttributesAlreadyExists added in v1.13.3

type ErrThingWithCompositeAttributesAlreadyExists struct {
	NameBranch string
	Date       strfmt.DateTime
}

ErrThingWithCompositeAttributesAlreadyExists is returned when trying to overwrite a ThingWithCompositeAttributes.

func (ErrThingWithCompositeAttributesAlreadyExists) Error added in v1.13.3

Error returns a description of the error.

type ErrThingWithCompositeAttributesByNameVersionAndDateNotFound added in v1.12.0

type ErrThingWithCompositeAttributesByNameVersionAndDateNotFound struct {
	Name    string
	Version int64
	Date    strfmt.DateTime
}

ErrThingWithCompositeAttributesByNameVersionAndDateNotFound is returned when the database fails to find a ThingWithCompositeAttributes.

func (ErrThingWithCompositeAttributesByNameVersionAndDateNotFound) Error added in v1.12.0

Error returns a description of the error.

type ErrThingWithCompositeAttributesNotFound added in v1.12.0

type ErrThingWithCompositeAttributesNotFound struct {
	Name   string
	Branch string
	Date   strfmt.DateTime
}

ErrThingWithCompositeAttributesNotFound is returned when the database fails to find a ThingWithCompositeAttributes.

func (ErrThingWithCompositeAttributesNotFound) Error added in v1.12.0

Error returns a description of the error.

type ErrThingWithCompositeEnumAttributesAlreadyExists added in v1.14.0

type ErrThingWithCompositeEnumAttributesAlreadyExists struct {
	NameBranch string
	Date       strfmt.DateTime
}

ErrThingWithCompositeEnumAttributesAlreadyExists is returned when trying to overwrite a ThingWithCompositeEnumAttributes.

func (ErrThingWithCompositeEnumAttributesAlreadyExists) Error added in v1.14.0

Error returns a description of the error.

type ErrThingWithCompositeEnumAttributesNotFound added in v1.14.0

type ErrThingWithCompositeEnumAttributesNotFound struct {
	Name     string
	BranchID models.Branch
	Date     strfmt.DateTime
}

ErrThingWithCompositeEnumAttributesNotFound is returned when the database fails to find a ThingWithCompositeEnumAttributes.

func (ErrThingWithCompositeEnumAttributesNotFound) Error added in v1.14.0

Error returns a description of the error.

type ErrThingWithDateRangeNotFound

type ErrThingWithDateRangeNotFound struct {
	Name string
	Date strfmt.DateTime
}

ErrThingWithDateRangeNotFound is returned when the database fails to find a ThingWithDateRange.

func (ErrThingWithDateRangeNotFound) Error

Error returns a description of the error.

type ErrThingWithDateTimeCompositeNotFound added in v1.14.1

type ErrThingWithDateTimeCompositeNotFound struct {
	Type     string
	ID       string
	Created  strfmt.DateTime
	Resource string
}

ErrThingWithDateTimeCompositeNotFound is returned when the database fails to find a ThingWithDateTimeComposite.

func (ErrThingWithDateTimeCompositeNotFound) Error added in v1.14.1

Error returns a description of the error.

type ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound

type ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound struct {
	AssocType string
	AssocID   string
	Created   strfmt.DateTime
	Bear      string
}

ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound is returned when the database fails to find a ThingWithMatchingKeys.

func (ErrThingWithMatchingKeysByAssocTypeIDAndCreatedBearNotFound) Error

Error returns a description of the error.

type ErrThingWithMatchingKeysNotFound

type ErrThingWithMatchingKeysNotFound struct {
	Bear      string
	AssocType string
	AssocID   string
}

ErrThingWithMatchingKeysNotFound is returned when the database fails to find a ThingWithMatchingKeys.

func (ErrThingWithMatchingKeysNotFound) Error

Error returns a description of the error.

type ErrThingWithRequiredFields2AlreadyExists

type ErrThingWithRequiredFields2AlreadyExists struct {
	Name string
	ID   string
}

ErrThingWithRequiredFields2AlreadyExists is returned when trying to overwrite a ThingWithRequiredFields2.

func (ErrThingWithRequiredFields2AlreadyExists) Error

Error returns a description of the error.

type ErrThingWithRequiredFields2NotFound

type ErrThingWithRequiredFields2NotFound struct {
	Name string
	ID   string
}

ErrThingWithRequiredFields2NotFound is returned when the database fails to find a ThingWithRequiredFields2.

func (ErrThingWithRequiredFields2NotFound) Error

Error returns a description of the error.

type ErrThingWithRequiredFieldsAlreadyExists added in v1.13.0

type ErrThingWithRequiredFieldsAlreadyExists struct {
	Name string
}

ErrThingWithRequiredFieldsAlreadyExists is returned when trying to overwrite a ThingWithRequiredFields.

func (ErrThingWithRequiredFieldsAlreadyExists) Error added in v1.13.0

Error returns a description of the error.

type ErrThingWithRequiredFieldsNotFound added in v1.13.0

type ErrThingWithRequiredFieldsNotFound struct {
	Name string
}

ErrThingWithRequiredFieldsNotFound is returned when the database fails to find a ThingWithRequiredFields.

func (ErrThingWithRequiredFieldsNotFound) Error added in v1.13.0

Error returns a description of the error.

type ErrThingWithUnderscoresNotFound added in v1.7.1

type ErrThingWithUnderscoresNotFound struct {
	IDApp string
}

ErrThingWithUnderscoresNotFound is returned when the database fails to find a ThingWithUnderscores.

func (ErrThingWithUnderscoresNotFound) Error added in v1.7.1

Error returns a description of the error.

type GetDeploymentsByEnvAppAndDateInput

type GetDeploymentsByEnvAppAndDateInput struct {
	// Environment is required
	Environment string
	// Application is required
	Application    string
	DateStartingAt *strfmt.DateTime
	StartingAfter  *models.Deployment
	Descending     bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetDeploymentsByEnvAppAndDateInput is the query input to GetDeploymentsByEnvAppAndDate.

type GetDeploymentsByEnvAppAndVersionInput

type GetDeploymentsByEnvAppAndVersionInput struct {
	// Environment is required
	Environment string
	// Application is required
	Application       string
	VersionStartingAt *string
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.Deployment
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetDeploymentsByEnvAppAndVersionInput is the query input to GetDeploymentsByEnvAppAndVersion.

type GetDeploymentsByEnvironmentAndDateInput

type GetDeploymentsByEnvironmentAndDateInput struct {
	// Environment is required
	Environment    string
	DateStartingAt *strfmt.DateTime
	StartingAfter  *models.Deployment
	Descending     bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetDeploymentsByEnvironmentAndDateInput is the query input to GetDeploymentsByEnvironmentAndDate.

type GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput

type GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput struct {
	// Name is required
	Name string
	// Version is required
	Version        int64
	DateStartingAt *strfmt.DateTime
	StartingAfter  *models.NoRangeThingWithCompositeAttributes
	Descending     bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput is the query input to GetNoRangeThingWithCompositeAttributessByNameVersionAndDate.

type GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput added in v1.12.0

type GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput struct {
	// District is required
	District      string
	StartingAt    *SchoolTeacherApp
	StartingAfter *models.TeacherSharingRule
	Descending    bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput is the query input to GetTeacherSharingRulesByDistrictAndSchoolTeacherApp.

type GetTeacherSharingRulesByTeacherAndSchoolAppInput added in v1.12.0

type GetTeacherSharingRulesByTeacherAndSchoolAppInput struct {
	// Teacher is required
	Teacher    string
	StartingAt *SchoolApp
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.TeacherSharingRule
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetTeacherSharingRulesByTeacherAndSchoolAppInput is the query input to GetTeacherSharingRulesByTeacherAndSchoolApp.

type GetThingWithCompositeAttributessByNameBranchAndDateInput added in v1.12.0

type GetThingWithCompositeAttributessByNameBranchAndDateInput struct {
	// Name is required
	Name string
	// Branch is required
	Branch         string
	DateStartingAt *strfmt.DateTime
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithCompositeAttributes
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithCompositeAttributessByNameBranchAndDateInput is the query input to GetThingWithCompositeAttributessByNameBranchAndDate.

type GetThingWithCompositeAttributessByNameVersionAndDateInput added in v1.12.0

type GetThingWithCompositeAttributessByNameVersionAndDateInput struct {
	// Name is required
	Name string
	// Version is required
	Version        int64
	DateStartingAt *strfmt.DateTime
	StartingAfter  *models.ThingWithCompositeAttributes
	Descending     bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithCompositeAttributessByNameVersionAndDateInput is the query input to GetThingWithCompositeAttributessByNameVersionAndDate.

type GetThingWithCompositeEnumAttributessByNameBranchAndDateInput added in v1.14.0

type GetThingWithCompositeEnumAttributessByNameBranchAndDateInput struct {
	// Name is required
	Name string
	// BranchID is required
	BranchID       models.Branch
	DateStartingAt *strfmt.DateTime
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithCompositeEnumAttributes
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithCompositeEnumAttributessByNameBranchAndDateInput is the query input to GetThingWithCompositeEnumAttributessByNameBranchAndDate.

type GetThingWithDateRangesByNameAndDateInput added in v1.8.0

type GetThingWithDateRangesByNameAndDateInput struct {
	// Name is required
	Name           string
	DateStartingAt *strfmt.DateTime
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithDateRange
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithDateRangesByNameAndDateInput is the query input to GetThingWithDateRangesByNameAndDate.

type GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput added in v1.14.1

type GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput struct {
	// Type is required
	Type string
	// ID is required
	ID         string
	StartingAt *CreatedResource
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithDateTimeComposite
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput is the query input to GetThingWithDateTimeCompositesByTypeIDAndCreatedResource.

type GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput

type GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput struct {
	// AssocType is required
	AssocType string
	// AssocID is required
	AssocID       string
	StartingAt    *CreatedBear
	StartingAfter *models.ThingWithMatchingKeys
	Descending    bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput is the query input to GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear.

type GetThingWithMatchingKeyssByBearAndAssocTypeIDInput

type GetThingWithMatchingKeyssByBearAndAssocTypeIDInput struct {
	// Bear is required
	Bear       string
	StartingAt *AssocTypeAssocID
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithMatchingKeys
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithMatchingKeyssByBearAndAssocTypeIDInput is the query input to GetThingWithMatchingKeyssByBearAndAssocTypeID.

type GetThingWithRequiredFields2sByNameAndIDInput

type GetThingWithRequiredFields2sByNameAndIDInput struct {
	// Name is required
	Name         string
	IDStartingAt *string
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.ThingWithRequiredFields2
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingWithRequiredFields2sByNameAndIDInput is the query input to GetThingWithRequiredFields2sByNameAndID.

type GetThingsByNameAndCreatedAtInput added in v1.8.0

type GetThingsByNameAndCreatedAtInput struct {
	// Name is required
	Name                string
	CreatedAtStartingAt *strfmt.DateTime
	StartingAfter       *models.Thing
	Descending          bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingsByNameAndCreatedAtInput is the query input to GetThingsByNameAndCreatedAt.

type GetThingsByNameAndVersionInput added in v1.8.0

type GetThingsByNameAndVersionInput struct {
	// Name is required
	Name              string
	VersionStartingAt *int64
	// StartingAfter is a required specification of an exclusive starting point.
	StartingAfter *models.Thing
	Descending    bool
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limit is an optional limit of how many items to evaluate.
	Limit *int64
}

GetThingsByNameAndVersionInput is the query input to GetThingsByNameAndVersion.

type Interface

type Interface interface {
	// SaveDeployment saves a Deployment to the database.
	SaveDeployment(ctx context.Context, m models.Deployment) error
	// GetDeployment retrieves a Deployment from the database.
	GetDeployment(ctx context.Context, environment string, application string, version string) (*models.Deployment, error)
	// GetDeploymentsByEnvAppAndVersion retrieves a page of Deployments from the database.
	GetDeploymentsByEnvAppAndVersion(ctx context.Context, input GetDeploymentsByEnvAppAndVersionInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
	// DeleteDeployment deletes a Deployment from the database.
	DeleteDeployment(ctx context.Context, environment string, application string, version string) error
	// GetDeploymentsByEnvAppAndDate retrieves a page of Deployments from the database.
	GetDeploymentsByEnvAppAndDate(ctx context.Context, input GetDeploymentsByEnvAppAndDateInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
	// GetDeploymentsByEnvironmentAndDate retrieves a page of Deployments from the database.
	GetDeploymentsByEnvironmentAndDate(ctx context.Context, input GetDeploymentsByEnvironmentAndDateInput, fn func(m *models.Deployment, lastDeployment bool) bool) error
	// GetDeploymentByVersion retrieves a Deployment from the database.
	GetDeploymentByVersion(ctx context.Context, version string) (*models.Deployment, error)

	// SaveNoRangeThingWithCompositeAttributes saves a NoRangeThingWithCompositeAttributes to the database.
	SaveNoRangeThingWithCompositeAttributes(ctx context.Context, m models.NoRangeThingWithCompositeAttributes) error
	// GetNoRangeThingWithCompositeAttributes retrieves a NoRangeThingWithCompositeAttributes from the database.
	GetNoRangeThingWithCompositeAttributes(ctx context.Context, name string, branch string) (*models.NoRangeThingWithCompositeAttributes, error)
	// DeleteNoRangeThingWithCompositeAttributes deletes a NoRangeThingWithCompositeAttributes from the database.
	DeleteNoRangeThingWithCompositeAttributes(ctx context.Context, name string, branch string) error
	// GetNoRangeThingWithCompositeAttributessByNameVersionAndDate retrieves a page of NoRangeThingWithCompositeAttributess from the database.
	GetNoRangeThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput, fn func(m *models.NoRangeThingWithCompositeAttributes, lastNoRangeThingWithCompositeAttributes bool) bool) error

	// SaveSimpleThing saves a SimpleThing to the database.
	SaveSimpleThing(ctx context.Context, m models.SimpleThing) error
	// GetSimpleThing retrieves a SimpleThing from the database.
	GetSimpleThing(ctx context.Context, name string) (*models.SimpleThing, error)
	// DeleteSimpleThing deletes a SimpleThing from the database.
	DeleteSimpleThing(ctx context.Context, name string) error

	// SaveTeacherSharingRule saves a TeacherSharingRule to the database.
	SaveTeacherSharingRule(ctx context.Context, m models.TeacherSharingRule) error
	// GetTeacherSharingRule retrieves a TeacherSharingRule from the database.
	GetTeacherSharingRule(ctx context.Context, teacher string, school string, app string) (*models.TeacherSharingRule, error)
	// GetTeacherSharingRulesByTeacherAndSchoolApp retrieves a page of TeacherSharingRules from the database.
	GetTeacherSharingRulesByTeacherAndSchoolApp(ctx context.Context, input GetTeacherSharingRulesByTeacherAndSchoolAppInput, fn func(m *models.TeacherSharingRule, lastTeacherSharingRule bool) bool) error
	// DeleteTeacherSharingRule deletes a TeacherSharingRule from the database.
	DeleteTeacherSharingRule(ctx context.Context, teacher string, school string, app string) error
	// GetTeacherSharingRulesByDistrictAndSchoolTeacherApp retrieves a page of TeacherSharingRules from the database.
	GetTeacherSharingRulesByDistrictAndSchoolTeacherApp(ctx context.Context, input GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput, fn func(m *models.TeacherSharingRule, lastTeacherSharingRule bool) bool) error

	// SaveThing saves a Thing to the database.
	SaveThing(ctx context.Context, m models.Thing) error
	// GetThing retrieves a Thing from the database.
	GetThing(ctx context.Context, name string, version int64) (*models.Thing, error)
	// ScanThings runs a scan on the Things table.
	ScanThings(ctx context.Context, input ScanThingsInput, fn func(m *models.Thing, lastThing bool) bool) error
	// GetThingsByNameAndVersion retrieves a page of Things from the database.
	GetThingsByNameAndVersion(ctx context.Context, input GetThingsByNameAndVersionInput, fn func(m *models.Thing, lastThing bool) bool) error
	// DeleteThing deletes a Thing from the database.
	DeleteThing(ctx context.Context, name string, version int64) error
	// GetThingByID retrieves a Thing from the database.
	GetThingByID(ctx context.Context, id string) (*models.Thing, error)
	// GetThingsByNameAndCreatedAt retrieves a page of Things from the database.
	GetThingsByNameAndCreatedAt(ctx context.Context, input GetThingsByNameAndCreatedAtInput, fn func(m *models.Thing, lastThing bool) bool) error

	// SaveThingWithCompositeAttributes saves a ThingWithCompositeAttributes to the database.
	SaveThingWithCompositeAttributes(ctx context.Context, m models.ThingWithCompositeAttributes) error
	// GetThingWithCompositeAttributes retrieves a ThingWithCompositeAttributes from the database.
	GetThingWithCompositeAttributes(ctx context.Context, name string, branch string, date strfmt.DateTime) (*models.ThingWithCompositeAttributes, error)
	// GetThingWithCompositeAttributessByNameBranchAndDate retrieves a page of ThingWithCompositeAttributess from the database.
	GetThingWithCompositeAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameBranchAndDateInput, fn func(m *models.ThingWithCompositeAttributes, lastThingWithCompositeAttributes bool) bool) error
	// DeleteThingWithCompositeAttributes deletes a ThingWithCompositeAttributes from the database.
	DeleteThingWithCompositeAttributes(ctx context.Context, name string, branch string, date strfmt.DateTime) error
	// GetThingWithCompositeAttributessByNameVersionAndDate retrieves a page of ThingWithCompositeAttributess from the database.
	GetThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameVersionAndDateInput, fn func(m *models.ThingWithCompositeAttributes, lastThingWithCompositeAttributes bool) bool) error

	// SaveThingWithCompositeEnumAttributes saves a ThingWithCompositeEnumAttributes to the database.
	SaveThingWithCompositeEnumAttributes(ctx context.Context, m models.ThingWithCompositeEnumAttributes) error
	// GetThingWithCompositeEnumAttributes retrieves a ThingWithCompositeEnumAttributes from the database.
	GetThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) (*models.ThingWithCompositeEnumAttributes, error)
	// GetThingWithCompositeEnumAttributessByNameBranchAndDate retrieves a page of ThingWithCompositeEnumAttributess from the database.
	GetThingWithCompositeEnumAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeEnumAttributessByNameBranchAndDateInput, fn func(m *models.ThingWithCompositeEnumAttributes, lastThingWithCompositeEnumAttributes bool) bool) error
	// DeleteThingWithCompositeEnumAttributes deletes a ThingWithCompositeEnumAttributes from the database.
	DeleteThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) error

	// SaveThingWithDateRange saves a ThingWithDateRange to the database.
	SaveThingWithDateRange(ctx context.Context, m models.ThingWithDateRange) error
	// GetThingWithDateRange retrieves a ThingWithDateRange from the database.
	GetThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) (*models.ThingWithDateRange, error)
	// GetThingWithDateRangesByNameAndDate retrieves a page of ThingWithDateRanges from the database.
	GetThingWithDateRangesByNameAndDate(ctx context.Context, input GetThingWithDateRangesByNameAndDateInput, fn func(m *models.ThingWithDateRange, lastThingWithDateRange bool) bool) error
	// DeleteThingWithDateRange deletes a ThingWithDateRange from the database.
	DeleteThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) error

	// SaveThingWithDateTimeComposite saves a ThingWithDateTimeComposite to the database.
	SaveThingWithDateTimeComposite(ctx context.Context, m models.ThingWithDateTimeComposite) error
	// GetThingWithDateTimeComposite retrieves a ThingWithDateTimeComposite from the database.
	GetThingWithDateTimeComposite(ctx context.Context, typeVar string, id string, created strfmt.DateTime, resource string) (*models.ThingWithDateTimeComposite, error)
	// GetThingWithDateTimeCompositesByTypeIDAndCreatedResource retrieves a page of ThingWithDateTimeComposites from the database.
	GetThingWithDateTimeCompositesByTypeIDAndCreatedResource(ctx context.Context, input GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput, fn func(m *models.ThingWithDateTimeComposite, lastThingWithDateTimeComposite bool) bool) error
	// DeleteThingWithDateTimeComposite deletes a ThingWithDateTimeComposite from the database.
	DeleteThingWithDateTimeComposite(ctx context.Context, typeVar string, id string, created strfmt.DateTime, resource string) error

	// SaveThingWithMatchingKeys saves a ThingWithMatchingKeys to the database.
	SaveThingWithMatchingKeys(ctx context.Context, m models.ThingWithMatchingKeys) error
	// GetThingWithMatchingKeys retrieves a ThingWithMatchingKeys from the database.
	GetThingWithMatchingKeys(ctx context.Context, bear string, assocType string, assocID string) (*models.ThingWithMatchingKeys, error)
	// GetThingWithMatchingKeyssByBearAndAssocTypeID retrieves a page of ThingWithMatchingKeyss from the database.
	GetThingWithMatchingKeyssByBearAndAssocTypeID(ctx context.Context, input GetThingWithMatchingKeyssByBearAndAssocTypeIDInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) error
	// DeleteThingWithMatchingKeys deletes a ThingWithMatchingKeys from the database.
	DeleteThingWithMatchingKeys(ctx context.Context, bear string, assocType string, assocID string) error
	// GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear retrieves a page of ThingWithMatchingKeyss from the database.
	GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear(ctx context.Context, input GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput, fn func(m *models.ThingWithMatchingKeys, lastThingWithMatchingKeys bool) bool) error

	// SaveThingWithRequiredFields saves a ThingWithRequiredFields to the database.
	SaveThingWithRequiredFields(ctx context.Context, m models.ThingWithRequiredFields) error
	// GetThingWithRequiredFields retrieves a ThingWithRequiredFields from the database.
	GetThingWithRequiredFields(ctx context.Context, name string) (*models.ThingWithRequiredFields, error)
	// DeleteThingWithRequiredFields deletes a ThingWithRequiredFields from the database.
	DeleteThingWithRequiredFields(ctx context.Context, name string) error

	// SaveThingWithRequiredFields2 saves a ThingWithRequiredFields2 to the database.
	SaveThingWithRequiredFields2(ctx context.Context, m models.ThingWithRequiredFields2) error
	// GetThingWithRequiredFields2 retrieves a ThingWithRequiredFields2 from the database.
	GetThingWithRequiredFields2(ctx context.Context, name string, id string) (*models.ThingWithRequiredFields2, error)
	// GetThingWithRequiredFields2sByNameAndID retrieves a page of ThingWithRequiredFields2s from the database.
	GetThingWithRequiredFields2sByNameAndID(ctx context.Context, input GetThingWithRequiredFields2sByNameAndIDInput, fn func(m *models.ThingWithRequiredFields2, lastThingWithRequiredFields2 bool) bool) error
	// DeleteThingWithRequiredFields2 deletes a ThingWithRequiredFields2 from the database.
	DeleteThingWithRequiredFields2(ctx context.Context, name string, id string) error

	// SaveThingWithUnderscores saves a ThingWithUnderscores to the database.
	SaveThingWithUnderscores(ctx context.Context, m models.ThingWithUnderscores) error
	// GetThingWithUnderscores retrieves a ThingWithUnderscores from the database.
	GetThingWithUnderscores(ctx context.Context, iDApp string) (*models.ThingWithUnderscores, error)
	// DeleteThingWithUnderscores deletes a ThingWithUnderscores from the database.
	DeleteThingWithUnderscores(ctx context.Context, iDApp string) error
}

Interface for interacting with the swagger-test database.

type MockInterface

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

MockInterface is a mock of Interface interface

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance

func (*MockInterface) DeleteDeployment

func (m *MockInterface) DeleteDeployment(ctx context.Context, environment, application, version string) error

DeleteDeployment mocks base method

func (*MockInterface) DeleteNoRangeThingWithCompositeAttributes

func (m *MockInterface) DeleteNoRangeThingWithCompositeAttributes(ctx context.Context, name, branch string) error

DeleteNoRangeThingWithCompositeAttributes mocks base method

func (*MockInterface) DeleteSimpleThing

func (m *MockInterface) DeleteSimpleThing(ctx context.Context, name string) error

DeleteSimpleThing mocks base method

func (*MockInterface) DeleteTeacherSharingRule added in v1.12.0

func (m *MockInterface) DeleteTeacherSharingRule(ctx context.Context, teacher, school, app string) error

DeleteTeacherSharingRule mocks base method

func (*MockInterface) DeleteThing

func (m *MockInterface) DeleteThing(ctx context.Context, name string, version int64) error

DeleteThing mocks base method

func (*MockInterface) DeleteThingWithCompositeAttributes added in v1.12.0

func (m *MockInterface) DeleteThingWithCompositeAttributes(ctx context.Context, name, branch string, date strfmt.DateTime) error

DeleteThingWithCompositeAttributes mocks base method

func (*MockInterface) DeleteThingWithCompositeEnumAttributes added in v1.14.0

func (m *MockInterface) DeleteThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) error

DeleteThingWithCompositeEnumAttributes mocks base method

func (*MockInterface) DeleteThingWithDateRange

func (m *MockInterface) DeleteThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) error

DeleteThingWithDateRange mocks base method

func (*MockInterface) DeleteThingWithDateTimeComposite added in v1.14.1

func (m *MockInterface) DeleteThingWithDateTimeComposite(ctx context.Context, typeVar, id string, created strfmt.DateTime, resource string) error

DeleteThingWithDateTimeComposite mocks base method

func (*MockInterface) DeleteThingWithMatchingKeys

func (m *MockInterface) DeleteThingWithMatchingKeys(ctx context.Context, bear, assocType, assocID string) error

DeleteThingWithMatchingKeys mocks base method

func (*MockInterface) DeleteThingWithRequiredFields added in v1.13.0

func (m *MockInterface) DeleteThingWithRequiredFields(ctx context.Context, name string) error

DeleteThingWithRequiredFields mocks base method

func (*MockInterface) DeleteThingWithRequiredFields2

func (m *MockInterface) DeleteThingWithRequiredFields2(ctx context.Context, name, id string) error

DeleteThingWithRequiredFields2 mocks base method

func (*MockInterface) DeleteThingWithUnderscores added in v1.7.1

func (m *MockInterface) DeleteThingWithUnderscores(ctx context.Context, iDApp string) error

DeleteThingWithUnderscores mocks base method

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInterface) GetDeployment

func (m *MockInterface) GetDeployment(ctx context.Context, environment, application, version string) (*models.Deployment, error)

GetDeployment mocks base method

func (*MockInterface) GetDeploymentByVersion

func (m *MockInterface) GetDeploymentByVersion(ctx context.Context, version string) (*models.Deployment, error)

GetDeploymentByVersion mocks base method

func (*MockInterface) GetDeploymentsByEnvAppAndDate

func (m *MockInterface) GetDeploymentsByEnvAppAndDate(ctx context.Context, input GetDeploymentsByEnvAppAndDateInput, fn func(*models.Deployment, bool) bool) error

GetDeploymentsByEnvAppAndDate mocks base method

func (*MockInterface) GetDeploymentsByEnvAppAndVersion

func (m *MockInterface) GetDeploymentsByEnvAppAndVersion(ctx context.Context, input GetDeploymentsByEnvAppAndVersionInput, fn func(*models.Deployment, bool) bool) error

GetDeploymentsByEnvAppAndVersion mocks base method

func (*MockInterface) GetDeploymentsByEnvironmentAndDate

func (m *MockInterface) GetDeploymentsByEnvironmentAndDate(ctx context.Context, input GetDeploymentsByEnvironmentAndDateInput, fn func(*models.Deployment, bool) bool) error

GetDeploymentsByEnvironmentAndDate mocks base method

func (*MockInterface) GetNoRangeThingWithCompositeAttributes

func (m *MockInterface) GetNoRangeThingWithCompositeAttributes(ctx context.Context, name, branch string) (*models.NoRangeThingWithCompositeAttributes, error)

GetNoRangeThingWithCompositeAttributes mocks base method

func (*MockInterface) GetNoRangeThingWithCompositeAttributessByNameVersionAndDate

func (m *MockInterface) GetNoRangeThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetNoRangeThingWithCompositeAttributessByNameVersionAndDateInput, fn func(*models.NoRangeThingWithCompositeAttributes, bool) bool) error

GetNoRangeThingWithCompositeAttributessByNameVersionAndDate mocks base method

func (*MockInterface) GetSimpleThing

func (m *MockInterface) GetSimpleThing(ctx context.Context, name string) (*models.SimpleThing, error)

GetSimpleThing mocks base method

func (*MockInterface) GetTeacherSharingRule added in v1.12.0

func (m *MockInterface) GetTeacherSharingRule(ctx context.Context, teacher, school, app string) (*models.TeacherSharingRule, error)

GetTeacherSharingRule mocks base method

func (*MockInterface) GetTeacherSharingRulesByDistrictAndSchoolTeacherApp added in v1.12.0

func (m *MockInterface) GetTeacherSharingRulesByDistrictAndSchoolTeacherApp(ctx context.Context, input GetTeacherSharingRulesByDistrictAndSchoolTeacherAppInput, fn func(*models.TeacherSharingRule, bool) bool) error

GetTeacherSharingRulesByDistrictAndSchoolTeacherApp mocks base method

func (*MockInterface) GetTeacherSharingRulesByTeacherAndSchoolApp added in v1.12.0

func (m *MockInterface) GetTeacherSharingRulesByTeacherAndSchoolApp(ctx context.Context, input GetTeacherSharingRulesByTeacherAndSchoolAppInput, fn func(*models.TeacherSharingRule, bool) bool) error

GetTeacherSharingRulesByTeacherAndSchoolApp mocks base method

func (*MockInterface) GetThing

func (m *MockInterface) GetThing(ctx context.Context, name string, version int64) (*models.Thing, error)

GetThing mocks base method

func (*MockInterface) GetThingByID added in v1.8.0

func (m *MockInterface) GetThingByID(ctx context.Context, id string) (*models.Thing, error)

GetThingByID mocks base method

func (*MockInterface) GetThingWithCompositeAttributes added in v1.12.0

func (m *MockInterface) GetThingWithCompositeAttributes(ctx context.Context, name, branch string, date strfmt.DateTime) (*models.ThingWithCompositeAttributes, error)

GetThingWithCompositeAttributes mocks base method

func (*MockInterface) GetThingWithCompositeAttributessByNameBranchAndDate added in v1.12.0

func (m *MockInterface) GetThingWithCompositeAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameBranchAndDateInput, fn func(*models.ThingWithCompositeAttributes, bool) bool) error

GetThingWithCompositeAttributessByNameBranchAndDate mocks base method

func (*MockInterface) GetThingWithCompositeAttributessByNameVersionAndDate added in v1.12.0

func (m *MockInterface) GetThingWithCompositeAttributessByNameVersionAndDate(ctx context.Context, input GetThingWithCompositeAttributessByNameVersionAndDateInput, fn func(*models.ThingWithCompositeAttributes, bool) bool) error

GetThingWithCompositeAttributessByNameVersionAndDate mocks base method

func (*MockInterface) GetThingWithCompositeEnumAttributes added in v1.14.0

func (m *MockInterface) GetThingWithCompositeEnumAttributes(ctx context.Context, name string, branchID models.Branch, date strfmt.DateTime) (*models.ThingWithCompositeEnumAttributes, error)

GetThingWithCompositeEnumAttributes mocks base method

func (*MockInterface) GetThingWithCompositeEnumAttributessByNameBranchAndDate added in v1.14.0

func (m *MockInterface) GetThingWithCompositeEnumAttributessByNameBranchAndDate(ctx context.Context, input GetThingWithCompositeEnumAttributessByNameBranchAndDateInput, fn func(*models.ThingWithCompositeEnumAttributes, bool) bool) error

GetThingWithCompositeEnumAttributessByNameBranchAndDate mocks base method

func (*MockInterface) GetThingWithDateRange

func (m *MockInterface) GetThingWithDateRange(ctx context.Context, name string, date strfmt.DateTime) (*models.ThingWithDateRange, error)

GetThingWithDateRange mocks base method

func (*MockInterface) GetThingWithDateRangesByNameAndDate added in v1.8.0

func (m *MockInterface) GetThingWithDateRangesByNameAndDate(ctx context.Context, input GetThingWithDateRangesByNameAndDateInput, fn func(*models.ThingWithDateRange, bool) bool) error

GetThingWithDateRangesByNameAndDate mocks base method

func (*MockInterface) GetThingWithDateTimeComposite added in v1.14.1

func (m *MockInterface) GetThingWithDateTimeComposite(ctx context.Context, typeVar, id string, created strfmt.DateTime, resource string) (*models.ThingWithDateTimeComposite, error)

GetThingWithDateTimeComposite mocks base method

func (*MockInterface) GetThingWithDateTimeCompositesByTypeIDAndCreatedResource added in v1.14.1

func (m *MockInterface) GetThingWithDateTimeCompositesByTypeIDAndCreatedResource(ctx context.Context, input GetThingWithDateTimeCompositesByTypeIDAndCreatedResourceInput, fn func(*models.ThingWithDateTimeComposite, bool) bool) error

GetThingWithDateTimeCompositesByTypeIDAndCreatedResource mocks base method

func (*MockInterface) GetThingWithMatchingKeys

func (m *MockInterface) GetThingWithMatchingKeys(ctx context.Context, bear, assocType, assocID string) (*models.ThingWithMatchingKeys, error)

GetThingWithMatchingKeys mocks base method

func (*MockInterface) GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear

func (m *MockInterface) GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear(ctx context.Context, input GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBearInput, fn func(*models.ThingWithMatchingKeys, bool) bool) error

GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear mocks base method

func (*MockInterface) GetThingWithMatchingKeyssByBearAndAssocTypeID

func (m *MockInterface) GetThingWithMatchingKeyssByBearAndAssocTypeID(ctx context.Context, input GetThingWithMatchingKeyssByBearAndAssocTypeIDInput, fn func(*models.ThingWithMatchingKeys, bool) bool) error

GetThingWithMatchingKeyssByBearAndAssocTypeID mocks base method

func (*MockInterface) GetThingWithRequiredFields added in v1.13.0

func (m *MockInterface) GetThingWithRequiredFields(ctx context.Context, name string) (*models.ThingWithRequiredFields, error)

GetThingWithRequiredFields mocks base method

func (*MockInterface) GetThingWithRequiredFields2

func (m *MockInterface) GetThingWithRequiredFields2(ctx context.Context, name, id string) (*models.ThingWithRequiredFields2, error)

GetThingWithRequiredFields2 mocks base method

func (*MockInterface) GetThingWithRequiredFields2sByNameAndID

func (m *MockInterface) GetThingWithRequiredFields2sByNameAndID(ctx context.Context, input GetThingWithRequiredFields2sByNameAndIDInput, fn func(*models.ThingWithRequiredFields2, bool) bool) error

GetThingWithRequiredFields2sByNameAndID mocks base method

func (*MockInterface) GetThingWithUnderscores added in v1.7.1

func (m *MockInterface) GetThingWithUnderscores(ctx context.Context, iDApp string) (*models.ThingWithUnderscores, error)

GetThingWithUnderscores mocks base method

func (*MockInterface) GetThingsByNameAndCreatedAt added in v1.8.0

func (m *MockInterface) GetThingsByNameAndCreatedAt(ctx context.Context, input GetThingsByNameAndCreatedAtInput, fn func(*models.Thing, bool) bool) error

GetThingsByNameAndCreatedAt mocks base method

func (*MockInterface) GetThingsByNameAndVersion added in v1.8.0

func (m *MockInterface) GetThingsByNameAndVersion(ctx context.Context, input GetThingsByNameAndVersionInput, fn func(*models.Thing, bool) bool) error

GetThingsByNameAndVersion mocks base method

func (*MockInterface) SaveDeployment

func (m_2 *MockInterface) SaveDeployment(ctx context.Context, m models.Deployment) error

SaveDeployment mocks base method

func (*MockInterface) SaveNoRangeThingWithCompositeAttributes

func (m_2 *MockInterface) SaveNoRangeThingWithCompositeAttributes(ctx context.Context, m models.NoRangeThingWithCompositeAttributes) error

SaveNoRangeThingWithCompositeAttributes mocks base method

func (*MockInterface) SaveSimpleThing

func (m_2 *MockInterface) SaveSimpleThing(ctx context.Context, m models.SimpleThing) error

SaveSimpleThing mocks base method

func (*MockInterface) SaveTeacherSharingRule added in v1.12.0

func (m_2 *MockInterface) SaveTeacherSharingRule(ctx context.Context, m models.TeacherSharingRule) error

SaveTeacherSharingRule mocks base method

func (*MockInterface) SaveThing

func (m_2 *MockInterface) SaveThing(ctx context.Context, m models.Thing) error

SaveThing mocks base method

func (*MockInterface) SaveThingWithCompositeAttributes added in v1.12.0

func (m_2 *MockInterface) SaveThingWithCompositeAttributes(ctx context.Context, m models.ThingWithCompositeAttributes) error

SaveThingWithCompositeAttributes mocks base method

func (*MockInterface) SaveThingWithCompositeEnumAttributes added in v1.14.0

func (m_2 *MockInterface) SaveThingWithCompositeEnumAttributes(ctx context.Context, m models.ThingWithCompositeEnumAttributes) error

SaveThingWithCompositeEnumAttributes mocks base method

func (*MockInterface) SaveThingWithDateRange

func (m_2 *MockInterface) SaveThingWithDateRange(ctx context.Context, m models.ThingWithDateRange) error

SaveThingWithDateRange mocks base method

func (*MockInterface) SaveThingWithDateTimeComposite added in v1.14.1

func (m_2 *MockInterface) SaveThingWithDateTimeComposite(ctx context.Context, m models.ThingWithDateTimeComposite) error

SaveThingWithDateTimeComposite mocks base method

func (*MockInterface) SaveThingWithMatchingKeys

func (m_2 *MockInterface) SaveThingWithMatchingKeys(ctx context.Context, m models.ThingWithMatchingKeys) error

SaveThingWithMatchingKeys mocks base method

func (*MockInterface) SaveThingWithRequiredFields added in v1.13.0

func (m_2 *MockInterface) SaveThingWithRequiredFields(ctx context.Context, m models.ThingWithRequiredFields) error

SaveThingWithRequiredFields mocks base method

func (*MockInterface) SaveThingWithRequiredFields2

func (m_2 *MockInterface) SaveThingWithRequiredFields2(ctx context.Context, m models.ThingWithRequiredFields2) error

SaveThingWithRequiredFields2 mocks base method

func (*MockInterface) SaveThingWithUnderscores added in v1.7.1

func (m_2 *MockInterface) SaveThingWithUnderscores(ctx context.Context, m models.ThingWithUnderscores) error

SaveThingWithUnderscores mocks base method

func (*MockInterface) ScanThings added in v1.13.1

func (m *MockInterface) ScanThings(ctx context.Context, input ScanThingsInput, fn func(*models.Thing, bool) bool) error

ScanThings mocks base method

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface

func (*MockInterfaceMockRecorder) DeleteDeployment

func (mr *MockInterfaceMockRecorder) DeleteDeployment(ctx, environment, application, version interface{}) *gomock.Call

DeleteDeployment indicates an expected call of DeleteDeployment

func (*MockInterfaceMockRecorder) DeleteNoRangeThingWithCompositeAttributes

func (mr *MockInterfaceMockRecorder) DeleteNoRangeThingWithCompositeAttributes(ctx, name, branch interface{}) *gomock.Call

DeleteNoRangeThingWithCompositeAttributes indicates an expected call of DeleteNoRangeThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) DeleteSimpleThing

func (mr *MockInterfaceMockRecorder) DeleteSimpleThing(ctx, name interface{}) *gomock.Call

DeleteSimpleThing indicates an expected call of DeleteSimpleThing

func (*MockInterfaceMockRecorder) DeleteTeacherSharingRule added in v1.12.0

func (mr *MockInterfaceMockRecorder) DeleteTeacherSharingRule(ctx, teacher, school, app interface{}) *gomock.Call

DeleteTeacherSharingRule indicates an expected call of DeleteTeacherSharingRule

func (*MockInterfaceMockRecorder) DeleteThing

func (mr *MockInterfaceMockRecorder) DeleteThing(ctx, name, version interface{}) *gomock.Call

DeleteThing indicates an expected call of DeleteThing

func (*MockInterfaceMockRecorder) DeleteThingWithCompositeAttributes added in v1.12.0

func (mr *MockInterfaceMockRecorder) DeleteThingWithCompositeAttributes(ctx, name, branch, date interface{}) *gomock.Call

DeleteThingWithCompositeAttributes indicates an expected call of DeleteThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) DeleteThingWithCompositeEnumAttributes added in v1.14.0

func (mr *MockInterfaceMockRecorder) DeleteThingWithCompositeEnumAttributes(ctx, name, branchID, date interface{}) *gomock.Call

DeleteThingWithCompositeEnumAttributes indicates an expected call of DeleteThingWithCompositeEnumAttributes

func (*MockInterfaceMockRecorder) DeleteThingWithDateRange

func (mr *MockInterfaceMockRecorder) DeleteThingWithDateRange(ctx, name, date interface{}) *gomock.Call

DeleteThingWithDateRange indicates an expected call of DeleteThingWithDateRange

func (*MockInterfaceMockRecorder) DeleteThingWithDateTimeComposite added in v1.14.1

func (mr *MockInterfaceMockRecorder) DeleteThingWithDateTimeComposite(ctx, typeVar, id, created, resource interface{}) *gomock.Call

DeleteThingWithDateTimeComposite indicates an expected call of DeleteThingWithDateTimeComposite

func (*MockInterfaceMockRecorder) DeleteThingWithMatchingKeys

func (mr *MockInterfaceMockRecorder) DeleteThingWithMatchingKeys(ctx, bear, assocType, assocID interface{}) *gomock.Call

DeleteThingWithMatchingKeys indicates an expected call of DeleteThingWithMatchingKeys

func (*MockInterfaceMockRecorder) DeleteThingWithRequiredFields added in v1.13.0

func (mr *MockInterfaceMockRecorder) DeleteThingWithRequiredFields(ctx, name interface{}) *gomock.Call

DeleteThingWithRequiredFields indicates an expected call of DeleteThingWithRequiredFields

func (*MockInterfaceMockRecorder) DeleteThingWithRequiredFields2

func (mr *MockInterfaceMockRecorder) DeleteThingWithRequiredFields2(ctx, name, id interface{}) *gomock.Call

DeleteThingWithRequiredFields2 indicates an expected call of DeleteThingWithRequiredFields2

func (*MockInterfaceMockRecorder) DeleteThingWithUnderscores added in v1.7.1

func (mr *MockInterfaceMockRecorder) DeleteThingWithUnderscores(ctx, iDApp interface{}) *gomock.Call

DeleteThingWithUnderscores indicates an expected call of DeleteThingWithUnderscores

func (*MockInterfaceMockRecorder) GetDeployment

func (mr *MockInterfaceMockRecorder) GetDeployment(ctx, environment, application, version interface{}) *gomock.Call

GetDeployment indicates an expected call of GetDeployment

func (*MockInterfaceMockRecorder) GetDeploymentByVersion

func (mr *MockInterfaceMockRecorder) GetDeploymentByVersion(ctx, version interface{}) *gomock.Call

GetDeploymentByVersion indicates an expected call of GetDeploymentByVersion

func (*MockInterfaceMockRecorder) GetDeploymentsByEnvAppAndDate

func (mr *MockInterfaceMockRecorder) GetDeploymentsByEnvAppAndDate(ctx, input, fn interface{}) *gomock.Call

GetDeploymentsByEnvAppAndDate indicates an expected call of GetDeploymentsByEnvAppAndDate

func (*MockInterfaceMockRecorder) GetDeploymentsByEnvAppAndVersion

func (mr *MockInterfaceMockRecorder) GetDeploymentsByEnvAppAndVersion(ctx, input, fn interface{}) *gomock.Call

GetDeploymentsByEnvAppAndVersion indicates an expected call of GetDeploymentsByEnvAppAndVersion

func (*MockInterfaceMockRecorder) GetDeploymentsByEnvironmentAndDate

func (mr *MockInterfaceMockRecorder) GetDeploymentsByEnvironmentAndDate(ctx, input, fn interface{}) *gomock.Call

GetDeploymentsByEnvironmentAndDate indicates an expected call of GetDeploymentsByEnvironmentAndDate

func (*MockInterfaceMockRecorder) GetNoRangeThingWithCompositeAttributes

func (mr *MockInterfaceMockRecorder) GetNoRangeThingWithCompositeAttributes(ctx, name, branch interface{}) *gomock.Call

GetNoRangeThingWithCompositeAttributes indicates an expected call of GetNoRangeThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) GetNoRangeThingWithCompositeAttributessByNameVersionAndDate

func (mr *MockInterfaceMockRecorder) GetNoRangeThingWithCompositeAttributessByNameVersionAndDate(ctx, input, fn interface{}) *gomock.Call

GetNoRangeThingWithCompositeAttributessByNameVersionAndDate indicates an expected call of GetNoRangeThingWithCompositeAttributessByNameVersionAndDate

func (*MockInterfaceMockRecorder) GetSimpleThing

func (mr *MockInterfaceMockRecorder) GetSimpleThing(ctx, name interface{}) *gomock.Call

GetSimpleThing indicates an expected call of GetSimpleThing

func (*MockInterfaceMockRecorder) GetTeacherSharingRule added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetTeacherSharingRule(ctx, teacher, school, app interface{}) *gomock.Call

GetTeacherSharingRule indicates an expected call of GetTeacherSharingRule

func (*MockInterfaceMockRecorder) GetTeacherSharingRulesByDistrictAndSchoolTeacherApp added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetTeacherSharingRulesByDistrictAndSchoolTeacherApp(ctx, input, fn interface{}) *gomock.Call

GetTeacherSharingRulesByDistrictAndSchoolTeacherApp indicates an expected call of GetTeacherSharingRulesByDistrictAndSchoolTeacherApp

func (*MockInterfaceMockRecorder) GetTeacherSharingRulesByTeacherAndSchoolApp added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetTeacherSharingRulesByTeacherAndSchoolApp(ctx, input, fn interface{}) *gomock.Call

GetTeacherSharingRulesByTeacherAndSchoolApp indicates an expected call of GetTeacherSharingRulesByTeacherAndSchoolApp

func (*MockInterfaceMockRecorder) GetThing

func (mr *MockInterfaceMockRecorder) GetThing(ctx, name, version interface{}) *gomock.Call

GetThing indicates an expected call of GetThing

func (*MockInterfaceMockRecorder) GetThingByID added in v1.8.0

func (mr *MockInterfaceMockRecorder) GetThingByID(ctx, id interface{}) *gomock.Call

GetThingByID indicates an expected call of GetThingByID

func (*MockInterfaceMockRecorder) GetThingWithCompositeAttributes added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetThingWithCompositeAttributes(ctx, name, branch, date interface{}) *gomock.Call

GetThingWithCompositeAttributes indicates an expected call of GetThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) GetThingWithCompositeAttributessByNameBranchAndDate added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetThingWithCompositeAttributessByNameBranchAndDate(ctx, input, fn interface{}) *gomock.Call

GetThingWithCompositeAttributessByNameBranchAndDate indicates an expected call of GetThingWithCompositeAttributessByNameBranchAndDate

func (*MockInterfaceMockRecorder) GetThingWithCompositeAttributessByNameVersionAndDate added in v1.12.0

func (mr *MockInterfaceMockRecorder) GetThingWithCompositeAttributessByNameVersionAndDate(ctx, input, fn interface{}) *gomock.Call

GetThingWithCompositeAttributessByNameVersionAndDate indicates an expected call of GetThingWithCompositeAttributessByNameVersionAndDate

func (*MockInterfaceMockRecorder) GetThingWithCompositeEnumAttributes added in v1.14.0

func (mr *MockInterfaceMockRecorder) GetThingWithCompositeEnumAttributes(ctx, name, branchID, date interface{}) *gomock.Call

GetThingWithCompositeEnumAttributes indicates an expected call of GetThingWithCompositeEnumAttributes

func (*MockInterfaceMockRecorder) GetThingWithCompositeEnumAttributessByNameBranchAndDate added in v1.14.0

func (mr *MockInterfaceMockRecorder) GetThingWithCompositeEnumAttributessByNameBranchAndDate(ctx, input, fn interface{}) *gomock.Call

GetThingWithCompositeEnumAttributessByNameBranchAndDate indicates an expected call of GetThingWithCompositeEnumAttributessByNameBranchAndDate

func (*MockInterfaceMockRecorder) GetThingWithDateRange

func (mr *MockInterfaceMockRecorder) GetThingWithDateRange(ctx, name, date interface{}) *gomock.Call

GetThingWithDateRange indicates an expected call of GetThingWithDateRange

func (*MockInterfaceMockRecorder) GetThingWithDateRangesByNameAndDate added in v1.8.0

func (mr *MockInterfaceMockRecorder) GetThingWithDateRangesByNameAndDate(ctx, input, fn interface{}) *gomock.Call

GetThingWithDateRangesByNameAndDate indicates an expected call of GetThingWithDateRangesByNameAndDate

func (*MockInterfaceMockRecorder) GetThingWithDateTimeComposite added in v1.14.1

func (mr *MockInterfaceMockRecorder) GetThingWithDateTimeComposite(ctx, typeVar, id, created, resource interface{}) *gomock.Call

GetThingWithDateTimeComposite indicates an expected call of GetThingWithDateTimeComposite

func (*MockInterfaceMockRecorder) GetThingWithDateTimeCompositesByTypeIDAndCreatedResource added in v1.14.1

func (mr *MockInterfaceMockRecorder) GetThingWithDateTimeCompositesByTypeIDAndCreatedResource(ctx, input, fn interface{}) *gomock.Call

GetThingWithDateTimeCompositesByTypeIDAndCreatedResource indicates an expected call of GetThingWithDateTimeCompositesByTypeIDAndCreatedResource

func (*MockInterfaceMockRecorder) GetThingWithMatchingKeys

func (mr *MockInterfaceMockRecorder) GetThingWithMatchingKeys(ctx, bear, assocType, assocID interface{}) *gomock.Call

GetThingWithMatchingKeys indicates an expected call of GetThingWithMatchingKeys

func (*MockInterfaceMockRecorder) GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear

func (mr *MockInterfaceMockRecorder) GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear(ctx, input, fn interface{}) *gomock.Call

GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear indicates an expected call of GetThingWithMatchingKeyssByAssocTypeIDAndCreatedBear

func (*MockInterfaceMockRecorder) GetThingWithMatchingKeyssByBearAndAssocTypeID

func (mr *MockInterfaceMockRecorder) GetThingWithMatchingKeyssByBearAndAssocTypeID(ctx, input, fn interface{}) *gomock.Call

GetThingWithMatchingKeyssByBearAndAssocTypeID indicates an expected call of GetThingWithMatchingKeyssByBearAndAssocTypeID

func (*MockInterfaceMockRecorder) GetThingWithRequiredFields added in v1.13.0

func (mr *MockInterfaceMockRecorder) GetThingWithRequiredFields(ctx, name interface{}) *gomock.Call

GetThingWithRequiredFields indicates an expected call of GetThingWithRequiredFields

func (*MockInterfaceMockRecorder) GetThingWithRequiredFields2

func (mr *MockInterfaceMockRecorder) GetThingWithRequiredFields2(ctx, name, id interface{}) *gomock.Call

GetThingWithRequiredFields2 indicates an expected call of GetThingWithRequiredFields2

func (*MockInterfaceMockRecorder) GetThingWithRequiredFields2sByNameAndID

func (mr *MockInterfaceMockRecorder) GetThingWithRequiredFields2sByNameAndID(ctx, input, fn interface{}) *gomock.Call

GetThingWithRequiredFields2sByNameAndID indicates an expected call of GetThingWithRequiredFields2sByNameAndID

func (*MockInterfaceMockRecorder) GetThingWithUnderscores added in v1.7.1

func (mr *MockInterfaceMockRecorder) GetThingWithUnderscores(ctx, iDApp interface{}) *gomock.Call

GetThingWithUnderscores indicates an expected call of GetThingWithUnderscores

func (*MockInterfaceMockRecorder) GetThingsByNameAndCreatedAt added in v1.8.0

func (mr *MockInterfaceMockRecorder) GetThingsByNameAndCreatedAt(ctx, input, fn interface{}) *gomock.Call

GetThingsByNameAndCreatedAt indicates an expected call of GetThingsByNameAndCreatedAt

func (*MockInterfaceMockRecorder) GetThingsByNameAndVersion added in v1.8.0

func (mr *MockInterfaceMockRecorder) GetThingsByNameAndVersion(ctx, input, fn interface{}) *gomock.Call

GetThingsByNameAndVersion indicates an expected call of GetThingsByNameAndVersion

func (*MockInterfaceMockRecorder) SaveDeployment

func (mr *MockInterfaceMockRecorder) SaveDeployment(ctx, m interface{}) *gomock.Call

SaveDeployment indicates an expected call of SaveDeployment

func (*MockInterfaceMockRecorder) SaveNoRangeThingWithCompositeAttributes

func (mr *MockInterfaceMockRecorder) SaveNoRangeThingWithCompositeAttributes(ctx, m interface{}) *gomock.Call

SaveNoRangeThingWithCompositeAttributes indicates an expected call of SaveNoRangeThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) SaveSimpleThing

func (mr *MockInterfaceMockRecorder) SaveSimpleThing(ctx, m interface{}) *gomock.Call

SaveSimpleThing indicates an expected call of SaveSimpleThing

func (*MockInterfaceMockRecorder) SaveTeacherSharingRule added in v1.12.0

func (mr *MockInterfaceMockRecorder) SaveTeacherSharingRule(ctx, m interface{}) *gomock.Call

SaveTeacherSharingRule indicates an expected call of SaveTeacherSharingRule

func (*MockInterfaceMockRecorder) SaveThing

func (mr *MockInterfaceMockRecorder) SaveThing(ctx, m interface{}) *gomock.Call

SaveThing indicates an expected call of SaveThing

func (*MockInterfaceMockRecorder) SaveThingWithCompositeAttributes added in v1.12.0

func (mr *MockInterfaceMockRecorder) SaveThingWithCompositeAttributes(ctx, m interface{}) *gomock.Call

SaveThingWithCompositeAttributes indicates an expected call of SaveThingWithCompositeAttributes

func (*MockInterfaceMockRecorder) SaveThingWithCompositeEnumAttributes added in v1.14.0

func (mr *MockInterfaceMockRecorder) SaveThingWithCompositeEnumAttributes(ctx, m interface{}) *gomock.Call

SaveThingWithCompositeEnumAttributes indicates an expected call of SaveThingWithCompositeEnumAttributes

func (*MockInterfaceMockRecorder) SaveThingWithDateRange

func (mr *MockInterfaceMockRecorder) SaveThingWithDateRange(ctx, m interface{}) *gomock.Call

SaveThingWithDateRange indicates an expected call of SaveThingWithDateRange

func (*MockInterfaceMockRecorder) SaveThingWithDateTimeComposite added in v1.14.1

func (mr *MockInterfaceMockRecorder) SaveThingWithDateTimeComposite(ctx, m interface{}) *gomock.Call

SaveThingWithDateTimeComposite indicates an expected call of SaveThingWithDateTimeComposite

func (*MockInterfaceMockRecorder) SaveThingWithMatchingKeys

func (mr *MockInterfaceMockRecorder) SaveThingWithMatchingKeys(ctx, m interface{}) *gomock.Call

SaveThingWithMatchingKeys indicates an expected call of SaveThingWithMatchingKeys

func (*MockInterfaceMockRecorder) SaveThingWithRequiredFields added in v1.13.0

func (mr *MockInterfaceMockRecorder) SaveThingWithRequiredFields(ctx, m interface{}) *gomock.Call

SaveThingWithRequiredFields indicates an expected call of SaveThingWithRequiredFields

func (*MockInterfaceMockRecorder) SaveThingWithRequiredFields2

func (mr *MockInterfaceMockRecorder) SaveThingWithRequiredFields2(ctx, m interface{}) *gomock.Call

SaveThingWithRequiredFields2 indicates an expected call of SaveThingWithRequiredFields2

func (*MockInterfaceMockRecorder) SaveThingWithUnderscores added in v1.7.1

func (mr *MockInterfaceMockRecorder) SaveThingWithUnderscores(ctx, m interface{}) *gomock.Call

SaveThingWithUnderscores indicates an expected call of SaveThingWithUnderscores

func (*MockInterfaceMockRecorder) ScanThings added in v1.13.1

func (mr *MockInterfaceMockRecorder) ScanThings(ctx, input, fn interface{}) *gomock.Call

ScanThings indicates an expected call of ScanThings

type ScanThingsInput added in v1.13.1

type ScanThingsInput struct {
	// StartingAfter is an optional specification of an (exclusive) starting point.
	StartingAfter *models.Thing
	// DisableConsistentRead turns off the default behavior of running a consistent read.
	DisableConsistentRead bool
	// Limiter is an optional limit on how quickly items are scanned.
	Limiter *rate.Limiter
}

ScanThingsInput is the input to the ScanThings method.

type SchoolApp added in v1.12.0

type SchoolApp struct {
	School string
	App    string
}

SchoolApp struct.

type SchoolTeacherApp added in v1.12.0

type SchoolTeacherApp struct {
	School  string
	Teacher string
	App     string
}

SchoolTeacherApp struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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