test

package
v3.9.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name   string
	Object interface{}
}

type IdentityRegistry

type IdentityRegistry struct {
	*fake.FakeIdentities

	GetErr        map[string]error
	GetIdentities map[string]*userapi.Identity

	CreateErr      error
	CreateIdentity *userapi.Identity

	UpdateErr      error
	UpdateIdentity *userapi.Identity

	ListErr      error
	ListIdentity *userapi.IdentityList

	Actions *[]Action
}

func NewIdentityRegistry

func NewIdentityRegistry() *IdentityRegistry

func (*IdentityRegistry) Create

func (*IdentityRegistry) Get

func (r *IdentityRegistry) Get(name string, options metav1.GetOptions) (*userapi.Identity, error)

func (*IdentityRegistry) List

func (*IdentityRegistry) Update

type UserIdentityMappingRegistry

type UserIdentityMappingRegistry struct {
	Err                        error
	Created                    bool
	UserIdentityMapping        *userapi.UserIdentityMapping
	CreatedUserIdentityMapping *userapi.UserIdentityMapping
}

func (*UserIdentityMappingRegistry) CreateOrUpdateUserIdentityMapping

func (r *UserIdentityMappingRegistry) CreateOrUpdateUserIdentityMapping(mapping *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, bool, error)

func (*UserIdentityMappingRegistry) GetUserIdentityMapping

func (r *UserIdentityMappingRegistry) GetUserIdentityMapping(name string) (*userapi.UserIdentityMapping, error)

type UserRegistry

type UserRegistry struct {
	// included to fill out the interface for testing
	*fake.FakeUsers

	GetErr   map[string]error
	GetUsers map[string]*userapi.User

	CreateErr  error
	CreateUser *userapi.User

	UpdateErr  map[string]error
	UpdateUser *userapi.User

	ListErr   error
	ListUsers *userapi.UserList

	Actions *[]Action
}

func NewUserRegistry

func NewUserRegistry() *UserRegistry

func (*UserRegistry) Create

func (r *UserRegistry) Create(u *userapi.User) (*userapi.User, error)

func (*UserRegistry) Get

func (r *UserRegistry) Get(name string, options metav1.GetOptions) (*userapi.User, error)

func (*UserRegistry) List

func (r *UserRegistry) List(options metav1.ListOptions) (*userapi.UserList, error)

func (*UserRegistry) Update

func (r *UserRegistry) Update(u *userapi.User) (*userapi.User, error)

Jump to

Keyboard shortcuts

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