mocks

package
v0.3.2-rc19 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRoleTemplateCache

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

func NewMockRoleTemplateCache

func NewMockRoleTemplateCache() *MockRoleTemplateCache

func (*MockRoleTemplateCache) Add

func (mc *MockRoleTemplateCache) Add(template *v3.RoleTemplate)

func (*MockRoleTemplateCache) AddErr

func (mc *MockRoleTemplateCache) AddErr(calls int, err error)

func (*MockRoleTemplateCache) AddIndexer

func (mc *MockRoleTemplateCache) AddIndexer(indexName string, indexer controllerv3.RoleTemplateIndexer)

func (*MockRoleTemplateCache) Get

func (mc *MockRoleTemplateCache) Get(name string) (*v3.RoleTemplate, error)

func (*MockRoleTemplateCache) GetByIndex

func (mc *MockRoleTemplateCache) GetByIndex(indexName, key string) ([]*v3.RoleTemplate, error)

func (*MockRoleTemplateCache) List

func (mc *MockRoleTemplateCache) List(selector labels.Selector) ([]*v3.RoleTemplate, error)

Jump to

Keyboard shortcuts

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