fixture

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

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

func (*ApiKey) Save

func (a *ApiKey) Save() models.APIKey

func (*ApiKey) WithEnvironmentID

func (a *ApiKey) WithEnvironmentID(value string) *ApiKey

func (*ApiKey) WithOrgID

func (a *ApiKey) WithOrgID(value string) *ApiKey

type Application

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

func (*Application) NewDomainModel

func (a *Application) NewDomainModel() *domain.Application

func (*Application) Save

func (a *Application) Save() models.Application

func (*Application) WithEnvironmentID

func (a *Application) WithEnvironmentID(value string) *Application

func (*Application) WithName

func (a *Application) WithName(value string) *Application

type Endpoint

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

func (*Endpoint) NewDomainModel

func (a *Endpoint) NewDomainModel() *domain.Endpoint

func (*Endpoint) Save

func (a *Endpoint) Save() models.Endpoint

func (*Endpoint) WithAppID

func (a *Endpoint) WithAppID(value string) *Endpoint

func (*Endpoint) WithEventTypeIDs

func (a *Endpoint) WithEventTypeIDs(eventTypeIDs []string) *Endpoint

func (*Endpoint) WithSigningSecret

func (a *Endpoint) WithSigningSecret(value string) *Endpoint

func (*Endpoint) WithURL

func (a *Endpoint) WithURL(value string) *Endpoint

type Environment

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

func (*Environment) NewDomainModel

func (e *Environment) NewDomainModel() *domain.Environment

func (*Environment) Save

func (e *Environment) Save() models.Environment

func (*Environment) WithArchivedAt

func (e *Environment) WithArchivedAt(value time.Time) *Environment

func (*Environment) WithEnvType

func (e *Environment) WithEnvType(value string) *Environment

func (*Environment) WithID

func (e *Environment) WithID(id string) *Environment

func (*Environment) WithName

func (e *Environment) WithName(value string) *Environment

func (*Environment) WithOrganizationID

func (e *Environment) WithOrganizationID(value string) *Environment

type EventType

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

func (*EventType) NewDomainModel

func (a *EventType) NewDomainModel() *domain.EventType

func (*EventType) Save

func (a *EventType) Save() models.EventType

func (*EventType) WithArchivedAt

func (a *EventType) WithArchivedAt(value time.Time) *EventType

func (*EventType) WithDescription

func (a *EventType) WithDescription(value string) *EventType

func (*EventType) WithName

func (a *EventType) WithName(value string) *EventType

func (*EventType) WithOrgID

func (a *EventType) WithOrgID(value string) *EventType

func (*EventType) WithSchema

func (a *EventType) WithSchema(value string) *EventType

func (*EventType) WithSchemaExample

func (a *EventType) WithSchemaExample(value string) *EventType

type Factory

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

Factory An utility to facilitate the creation of mock data for testing purposes.

func NewFactory

func NewFactory(t *testing.T, ctx context.Context, db *sql.DB) *Factory

func (*Factory) NewApiKey

func (f *Factory) NewApiKey() *ApiKey

func (*Factory) NewApplication

func (f *Factory) NewApplication() *Application

func (*Factory) NewEndpoint

func (f *Factory) NewEndpoint() *Endpoint

func (*Factory) NewEnvironment

func (f *Factory) NewEnvironment() *Environment

func (*Factory) NewEventType

func (f *Factory) NewEventType() *EventType

func (*Factory) NewMember

func (f *Factory) NewMember() *Member

func (*Factory) NewOrganization

func (f *Factory) NewOrganization() *Organization

type Member

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

func (*Member) NewDomainModel

func (m *Member) NewDomainModel() *iam.Member

func (*Member) Save

func (m *Member) Save() (models.Member, string)

func (*Member) WithEmail

func (m *Member) WithEmail(value string) *Member

func (*Member) WithFirstName

func (m *Member) WithFirstName(value string) *Member

func (*Member) WithID

func (m *Member) WithID(id string) *Member

func (*Member) WithLastName

func (m *Member) WithLastName(value string) *Member

func (*Member) WithOrganizationID

func (m *Member) WithOrganizationID(value string) *Member

type Organization

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

func (*Organization) Save

func (o *Organization) Save() models.Organization

func (*Organization) WithDisabledAt

func (o *Organization) WithDisabledAt(disabledAt time.Time) *Organization

Jump to

Keyboard shortcuts

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