mocks

package
v0.0.0-...-fadb62f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARs

type ARs struct {
	mock.Mock
}

ARs is an autogenerated mock type for the ARs type

func NewARs

func NewARs(t interface {
	mock.TestingT
	Cleanup(func())
}) *ARs

NewARs creates a new instance of ARs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ARs) ApproveAR

func (_m *ARs) ApproveAR(ctx context.Context, id int64, opts ...portal.Option) (*portal.StatusOutput, error)

ApproveAR provides a mock function with given fields: ctx, id, opts

func (*ARs) DeleteAR

func (_m *ARs) DeleteAR(ctx context.Context, id int64, opts ...portal.Option) (*portal.StatusOutput, error)

DeleteAR provides a mock function with given fields: ctx, id, opts

func (*ARs) GetAR

func (_m *ARs) GetAR(ctx context.Context, id int64, opts ...portal.Option) (*portal.AROutput, error)

GetAR provides a mock function with given fields: ctx, id, opts

func (*ARs) ListARs

func (_m *ARs) ListARs(ctx context.Context, opts ...portal.Option) (*portal.ListARsOutput, error)

ListARs provides a mock function with given fields: ctx, opts

func (*ARs) RejectAR

func (_m *ARs) RejectAR(ctx context.Context, id int64, opts ...portal.Option) (*portal.StatusOutput, error)

RejectAR provides a mock function with given fields: ctx, id, opts

type Apps

type Apps struct {
	mock.Mock
}

Apps is an autogenerated mock type for the Apps type

func NewApps

func NewApps(t interface {
	mock.TestingT
	Cleanup(func())
}) *Apps

NewApps creates a new instance of Apps. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Apps) CreateApp

func (_m *Apps) CreateApp(ctx context.Context, input *portal.AppInput, opts ...portal.Option) (*portal.AppOutput, error)

CreateApp provides a mock function with given fields: ctx, input, opts

func (*Apps) GetAR

func (_m *Apps) GetAR(ctx context.Context, appID int64, arID int64, opts ...portal.Option) (*portal.AROutput, error)

GetAR provides a mock function with given fields: ctx, appID, arID, opts

func (*Apps) GetApp

func (_m *Apps) GetApp(ctx context.Context, id int64, opts ...portal.Option) (*portal.AppOutput, error)

GetApp provides a mock function with given fields: ctx, id, opts

func (*Apps) ListARs

func (_m *Apps) ListARs(ctx context.Context, id int64, opts ...portal.Option) (*portal.ListARsOutput, error)

ListARs provides a mock function with given fields: ctx, id, opts

func (*Apps) ListApps

func (_m *Apps) ListApps(ctx context.Context, opts ...portal.Option) (*portal.ListAppsOutput, error)

ListApps provides a mock function with given fields: ctx, opts

func (*Apps) ProvisionApp

func (_m *Apps) ProvisionApp(ctx context.Context, id int64, opts ...portal.Option) (*portal.StatusOutput, error)

ProvisionApp provides a mock function with given fields: ctx, id, opts

func (*Apps) UpdateApp

func (_m *Apps) UpdateApp(ctx context.Context, id int64, input *portal.AppInput, opts ...portal.Option) (*portal.AppOutput, error)

UpdateApp provides a mock function with given fields: ctx, id, input, opts

type Catalogs

type Catalogs struct {
	mock.Mock
}

Catalogs is an autogenerated mock type for the Catalogs type

func NewCatalogs

func NewCatalogs(t interface {
	mock.TestingT
	Cleanup(func())
}) *Catalogs

NewCatalogs creates a new instance of Catalogs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Catalogs) CreateCatalog

func (_m *Catalogs) CreateCatalog(ctx context.Context, input *portal.CatalogInput, opts ...portal.Option) (*portal.CatalogOutput, error)

CreateCatalog provides a mock function with given fields: ctx, input, opts

func (*Catalogs) GetCatalog

func (_m *Catalogs) GetCatalog(ctx context.Context, id int64, opts ...portal.Option) (*portal.CatalogOutput, error)

GetCatalog provides a mock function with given fields: ctx, id, opts

func (*Catalogs) ListCatalogs

func (_m *Catalogs) ListCatalogs(ctx context.Context, options *portal.ListCatalogsInput, opts ...portal.Option) (*portal.ListCatalogsOutput, error)

ListCatalogs provides a mock function with given fields: ctx, options, opts

func (*Catalogs) UpdateCatalog

func (_m *Catalogs) UpdateCatalog(ctx context.Context, id int64, input *portal.CatalogInput, opts ...portal.Option) (*portal.CatalogOutput, error)

UpdateCatalog provides a mock function with given fields: ctx, id, input, opts

type Orgs

type Orgs struct {
	mock.Mock
}

Orgs is an autogenerated mock type for the Orgs type

func NewOrgs

func NewOrgs(t interface {
	mock.TestingT
	Cleanup(func())
}) *Orgs

NewOrgs creates a new instance of Orgs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Orgs) CreateOrg

func (_m *Orgs) CreateOrg(ctx context.Context, input *portal.OrgInput, opts ...portal.Option) (*portal.OrgOutput, error)

CreateOrg provides a mock function with given fields: ctx, input, opts

func (*Orgs) CreateTeam

func (_m *Orgs) CreateTeam(ctx context.Context, orgID int64, input *portal.TeamInput, opts ...portal.Option) (*portal.TeamOutput, error)

CreateTeam provides a mock function with given fields: ctx, orgID, input, opts

func (*Orgs) DeleteOrg

func (_m *Orgs) DeleteOrg(ctx context.Context, id int64, opts ...portal.Option) (*portal.OrgOutput, error)

DeleteOrg provides a mock function with given fields: ctx, id, opts

func (*Orgs) DeleteTeam

func (_m *Orgs) DeleteTeam(ctx context.Context, orgID int64, teamID int64, opts ...portal.Option) (*portal.TeamOutput, error)

DeleteTeam provides a mock function with given fields: ctx, orgID, teamID, opts

func (*Orgs) GetOrg

func (_m *Orgs) GetOrg(ctx context.Context, id int64, opts ...portal.Option) (*portal.OrgOutput, error)

GetOrg provides a mock function with given fields: ctx, id, opts

func (*Orgs) GetTeam

func (_m *Orgs) GetTeam(ctx context.Context, orgID int64, teamID int64, opts ...portal.Option) (*portal.TeamOutput, error)

GetTeam provides a mock function with given fields: ctx, orgID, teamID, opts

func (*Orgs) ListOrgs

func (_m *Orgs) ListOrgs(ctx context.Context, options *portal.ListOrgsInput, opts ...portal.Option) (*portal.ListOrgsOutput, error)

ListOrgs provides a mock function with given fields: ctx, options, opts

func (*Orgs) ListTeams

func (_m *Orgs) ListTeams(ctx context.Context, orgID int64, options *portal.ListTeamsInput, opts ...portal.Option) (*portal.ListTeamsOutput, error)

ListTeams provides a mock function with given fields: ctx, orgID, options, opts

func (*Orgs) UpdateOrg

func (_m *Orgs) UpdateOrg(ctx context.Context, id int64, input *portal.OrgInput, opts ...portal.Option) (*portal.OrgOutput, error)

UpdateOrg provides a mock function with given fields: ctx, id, input, opts

func (*Orgs) UpdateTeam

func (_m *Orgs) UpdateTeam(ctx context.Context, orgID int64, teamID int64, input *portal.TeamInput, opts ...portal.Option) (*portal.TeamOutput, error)

UpdateTeam provides a mock function with given fields: ctx, orgID, teamID, input, opts

type Pages

type Pages struct {
	mock.Mock
}

Pages is an autogenerated mock type for the Pages type

func NewPages

func NewPages(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pages

NewPages creates a new instance of Pages. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Pages) CreatePage

func (_m *Pages) CreatePage(ctx context.Context, input *portal.PageInput, opts ...portal.Option) (*portal.PageOutput, error)

CreatePage provides a mock function with given fields: ctx, input, opts

func (*Pages) GetPage

func (_m *Pages) GetPage(ctx context.Context, id int64, opts ...portal.Option) (*portal.PageOutput, error)

GetPage provides a mock function with given fields: ctx, id, opts

func (*Pages) ListPages

func (_m *Pages) ListPages(ctx context.Context, options *portal.ListPagesInput, opts ...portal.Option) (*portal.ListPagesOutput, error)

ListPages provides a mock function with given fields: ctx, options, opts

func (*Pages) UpdatePage

func (_m *Pages) UpdatePage(ctx context.Context, id int64, input *portal.PageInput, opts ...portal.Option) (*portal.PageOutput, error)

UpdatePage provides a mock function with given fields: ctx, id, input, opts

type Plans

type Plans struct {
	mock.Mock
}

Plans is an autogenerated mock type for the Plans type

func NewPlans

func NewPlans(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plans

NewPlans creates a new instance of Plans. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Plans) CreatePlan

func (_m *Plans) CreatePlan(ctx context.Context, input *portal.PlanInput, opts ...portal.Option) (*portal.PlanOutput, error)

CreatePlan provides a mock function with given fields: ctx, input, opts

func (*Plans) GetPlan

func (_m *Plans) GetPlan(ctx context.Context, id int64, opts ...portal.Option) (*portal.PlanOutput, error)

GetPlan provides a mock function with given fields: ctx, id, opts

func (*Plans) ListPlans

func (_m *Plans) ListPlans(ctx context.Context, options *portal.ListPlansInput, opts ...portal.Option) (*portal.ListPlansOutput, error)

ListPlans provides a mock function with given fields: ctx, options, opts

func (*Plans) UpdatePlan

func (_m *Plans) UpdatePlan(ctx context.Context, id int64, input *portal.PlanInput, opts ...portal.Option) (*portal.PlanOutput, error)

UpdatePlan provides a mock function with given fields: ctx, id, input, opts

type Products

type Products struct {
	mock.Mock
}

Products is an autogenerated mock type for the Products type

func NewProducts

func NewProducts(t interface {
	mock.TestingT
	Cleanup(func())
}) *Products

NewProducts creates a new instance of Products. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Products) CreateProduct

func (_m *Products) CreateProduct(ctx context.Context, input *portal.ProductInput, opts ...portal.Option) (*portal.ProductOutput, error)

CreateProduct provides a mock function with given fields: ctx, input, opts

func (*Products) GetProduct

func (_m *Products) GetProduct(ctx context.Context, id int64, opts ...portal.Option) (*portal.ProductOutput, error)

GetProduct provides a mock function with given fields: ctx, id, opts

func (*Products) ListProducts

func (_m *Products) ListProducts(ctx context.Context, options *portal.ListProductsInput, opts ...portal.Option) (*portal.ListProductsOutput, error)

ListProducts provides a mock function with given fields: ctx, options, opts

func (*Products) UpdateProduct

func (_m *Products) UpdateProduct(ctx context.Context, id int64, input *portal.ProductInput, opts ...portal.Option) (*portal.ProductOutput, error)

UpdateProduct provides a mock function with given fields: ctx, id, input, opts

type Providers

type Providers struct {
	mock.Mock
}

Providers is an autogenerated mock type for the Providers type

func NewProviders

func NewProviders(t interface {
	mock.TestingT
	Cleanup(func())
}) *Providers

NewProviders creates a new instance of Providers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Providers) CreateProvider

func (_m *Providers) CreateProvider(ctx context.Context, input *portal.ProviderInput, opts ...portal.Option) (*portal.ProviderOutput, error)

CreateProvider provides a mock function with given fields: ctx, input, opts

func (*Providers) DeleteProvider

func (_m *Providers) DeleteProvider(ctx context.Context, id int64, opts ...portal.Option) (*portal.ProviderOutput, error)

DeleteProvider provides a mock function with given fields: ctx, id, opts

func (*Providers) GetProvider

func (_m *Providers) GetProvider(ctx context.Context, id int64, opts ...portal.Option) (*portal.ProviderOutput, error)

GetProvider provides a mock function with given fields: ctx, id, opts

func (*Providers) ListProviders

func (_m *Providers) ListProviders(ctx context.Context, options *portal.ListProvidersInput, opts ...portal.Option) (*portal.ListProvidersOutput, error)

ListProviders provides a mock function with given fields: ctx, options, opts

func (*Providers) SyncProvider

func (_m *Providers) SyncProvider(ctx context.Context, id int64, opts ...portal.Option) (*portal.SyncProviderOutput, error)

SyncProvider provides a mock function with given fields: ctx, id, opts

func (*Providers) SyncProviders

func (_m *Providers) SyncProviders(ctx context.Context, opts ...portal.Option) (*portal.SyncProviderOutput, error)

SyncProviders provides a mock function with given fields: ctx, opts

func (*Providers) UpdateProvider

func (_m *Providers) UpdateProvider(ctx context.Context, id int64, input *portal.ProviderInput, opts ...portal.Option) (*portal.ProviderOutput, error)

UpdateProvider provides a mock function with given fields: ctx, id, input, opts

type Users

type Users struct {
	mock.Mock
}

Users is an autogenerated mock type for the Users type

func NewUsers

func NewUsers(t interface {
	mock.TestingT
	Cleanup(func())
}) *Users

NewUsers creates a new instance of Users. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Users) CreateUser

func (_m *Users) CreateUser(ctx context.Context, input *portal.UserInput, opts ...portal.Option) (*portal.UserOutput, error)

CreateUser provides a mock function with given fields: ctx, input, opts

func (*Users) DeleteUser

func (_m *Users) DeleteUser(ctx context.Context, id int64, opts ...portal.Option) (*portal.UserOutput, error)

DeleteUser provides a mock function with given fields: ctx, id, opts

func (*Users) GetUser

func (_m *Users) GetUser(ctx context.Context, id int64, opts ...portal.Option) (*portal.UserOutput, error)

GetUser provides a mock function with given fields: ctx, id, opts

func (*Users) ListUsers

func (_m *Users) ListUsers(ctx context.Context, options *portal.ListUsersInput, opts ...portal.Option) (*portal.ListUsersOutput, error)

ListUsers provides a mock function with given fields: ctx, options, opts

func (*Users) UpdateUser

func (_m *Users) UpdateUser(ctx context.Context, id int64, input *portal.UserInput, opts ...portal.Option) (*portal.UserOutput, error)

UpdateUser provides a mock function with given fields: ctx, id, input, opts

Jump to

Keyboard shortcuts

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