mocks

package
v0.0.0-...-63f4637 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: GPL-3.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 AdderAdminResources

type AdderAdminResources struct {
	mock.Mock
}

AdderAdminResources is a mock object

func (*AdderAdminResources) AddResource

func (m *AdderAdminResources) AddResource(
	value interface{}, config ...*admin.Config,
) *admin.Resource

AddResource is method mock

type AdderAdminResourcesInterface

type AdderAdminResourcesInterface interface {
	AddResource(value interface{}, config ...*admin.Config) *admin.Resource
}

AdderAdminResourcesInterface adds resources to the admin

type AdderMultipleCommands

type AdderMultipleCommands struct {
	mock.Mock
}

AdderMultipleCommands is a mock object

func (*AdderMultipleCommands) AddCommand

func (m *AdderMultipleCommands) AddCommand(args ...*cobra.Command)

AddCommand is method mock

type AdminConfig

type AdminConfig struct {
	mock.Mock
}

AdminConfig is a mock object

func (*AdminConfig) GetEditFields

func (c *AdminConfig) GetEditFields() []interface{}

GetEditFields is method mock

func (*AdminConfig) GetListFields

func (c *AdminConfig) GetListFields() []interface{}

GetListFields is method mock

type AdminConfigInterface

type AdminConfigInterface interface {
	GetListFields() []interface{}
	GetEditFields() []interface{}
}

AdminConfigInterface is a resource admin configuration

type AdminMixin

type AdminMixin struct {
	mock.Mock
}

AdminMixin is a mock object

func (*AdminMixin) Apply

func (m *AdminMixin) Apply(
	resource interface{ AdminResource },
	config interface{ AdminConfigInterface },
)

Apply is method mock

type AdminResource

type AdminResource interface {
	IndexAttrs(values ...interface{}) []*admin.Section
	ShowAttrs(values ...interface{}) []*admin.Section
	NewAttrs(values ...interface{}) []*admin.Section
	EditAttrs(values ...interface{}) []*admin.Section
	Filter(filter *admin.Filter)
}

AdminResource is the admin resource interface.

type AdminResourcesRegister

type AdminResourcesRegister struct {
	mock.Mock
}

AdminResourcesRegister register admin resources

func (*AdminResourcesRegister) Register

func (m *AdminResourcesRegister) Register(
	adm interface{ AdderAdminResourcesInterface },
)

Register is method mock

Jump to

Keyboard shortcuts

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