fake

package
v0.0.0-...-3266887 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 16 Imported by: 0

Documentation

Overview

Package fake implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.

Index

Constants

View Source
const ResourceCount = 1000

ResourceCount defines the number of fake resources.

Variables

This section is empty.

Functions

func FakePolicies

func FakePolicies(count int) []*v1.Policy

FakePolicies returns fake policy data.

func FakeSecrets

func FakeSecrets(count int) []*v1.Secret

FakeSecrets returns fake secret data.

func FakeUsers

func FakeUsers(count int) []*v1.User

FakeUsers returns fake user data.

func GetFakeFactoryOr

func GetFakeFactoryOr() (store.Factory, error)

GetFakeFactoryOr create fake store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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