fixtures

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetController

func GetController(fixtures map[string]interface{}) (api.Controller, error)

Types

type Controller

type Controller struct{}

func (Controller) Setup

func (c Controller) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Controller) Teardown

func (c Controller) Teardown(fixture interface{}) error

type Definitions added in v0.0.8

type Definitions struct {
	Definitions api.Definitions
}

func (Definitions) Setup added in v0.0.8

func (c Definitions) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Definitions) Teardown added in v0.0.8

func (c Definitions) Teardown(fixture interface{}) error

type ObjectRole

type ObjectRole struct {
	ObjectName       string
	OrganizationRole string
	ObjectRole       string
	Organization     string
}

func (ObjectRole) Setup

func (o ObjectRole) Setup(fixtures map[string]interface{}) (interface{}, error)

func (ObjectRole) Teardown

func (o ObjectRole) Teardown(fixture interface{}) error

type Organization

type Organization struct {
	Name string
}

func (Organization) Setup

func (o Organization) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Organization) Teardown

func (o Organization) Teardown(fixture interface{}) error

type Plugin

type Plugin struct {
	Plugin api.APIPlugin
}

func (Plugin) Setup

func (o Plugin) Setup(fixtures map[string]interface{}) (interface{}, error)

func (Plugin) Teardown

func (o Plugin) Teardown(fixture interface{}) error

type User

type User struct {
	Limits       map[string]interface{}
	Email        string
	SuperUser    bool
	Organization string
	Roles        []string
	Scopes       []string
}

func (User) Setup

func (u User) Setup(fixtures map[string]interface{}) (interface{}, error)

func (User) Teardown

func (u User) Teardown(fixture interface{}) error

Jump to

Keyboard shortcuts

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