fakedatastore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDatabase

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

func NewFakeDB

func NewFakeDB() *FakeDatabase

func (*FakeDatabase) AppendNextError

func (db *FakeDatabase) AppendNextError(err error)

func (*FakeDatabase) CreateJoinToken

func (db *FakeDatabase) CreateJoinToken(ctx context.Context, req *entity.JoinToken) (*entity.JoinToken, error)

func (*FakeDatabase) CreateOrUpdateBundle

func (db *FakeDatabase) CreateOrUpdateBundle(ctx context.Context, req *entity.Bundle) (*entity.Bundle, error)

func (*FakeDatabase) CreateOrUpdateRelationship

func (db *FakeDatabase) CreateOrUpdateRelationship(ctx context.Context, req *entity.Relationship) (*entity.Relationship, error)

func (*FakeDatabase) CreateOrUpdateTrustDomain

func (db *FakeDatabase) CreateOrUpdateTrustDomain(ctx context.Context, req *entity.TrustDomain) (*entity.TrustDomain, error)

func (*FakeDatabase) DeleteBundle

func (db *FakeDatabase) DeleteBundle(ctx context.Context, bundleID uuid.UUID) error

func (*FakeDatabase) DeleteJoinToken

func (db *FakeDatabase) DeleteJoinToken(ctx context.Context, joinTokenID uuid.UUID) error

func (*FakeDatabase) DeleteRelationship

func (db *FakeDatabase) DeleteRelationship(ctx context.Context, relationshipID uuid.UUID) error

func (*FakeDatabase) DeleteTrustDomain

func (db *FakeDatabase) DeleteTrustDomain(ctx context.Context, trustDomainID uuid.UUID) error

func (*FakeDatabase) FindBundleByID

func (db *FakeDatabase) FindBundleByID(ctx context.Context, bundleID uuid.UUID) (*entity.Bundle, error)

func (*FakeDatabase) FindBundleByTrustDomainID

func (db *FakeDatabase) FindBundleByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) (*entity.Bundle, error)

func (*FakeDatabase) FindJoinToken

func (db *FakeDatabase) FindJoinToken(ctx context.Context, token string) (*entity.JoinToken, error)

func (*FakeDatabase) FindJoinTokensByID

func (db *FakeDatabase) FindJoinTokensByID(ctx context.Context, joinTokenID uuid.UUID) (*entity.JoinToken, error)

func (*FakeDatabase) FindJoinTokensByTrustDomainID

func (db *FakeDatabase) FindJoinTokensByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.JoinToken, error)

func (*FakeDatabase) FindRelationshipByID

func (db *FakeDatabase) FindRelationshipByID(ctx context.Context, relationshipID uuid.UUID) (*entity.Relationship, error)

func (*FakeDatabase) FindRelationshipsByTrustDomainID

func (db *FakeDatabase) FindRelationshipsByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.Relationship, error)

func (*FakeDatabase) FindTrustDomainByID

func (db *FakeDatabase) FindTrustDomainByID(ctx context.Context, trustDomainID uuid.UUID) (*entity.TrustDomain, error)

func (*FakeDatabase) FindTrustDomainByName

func (db *FakeDatabase) FindTrustDomainByName(ctx context.Context, trustDomain spiffeid.TrustDomain) (*entity.TrustDomain, error)

func (*FakeDatabase) ListBundles

func (db *FakeDatabase) ListBundles(ctx context.Context) ([]*entity.Bundle, error)

func (*FakeDatabase) ListJoinTokens

func (db *FakeDatabase) ListJoinTokens(ctx context.Context) ([]*entity.JoinToken, error)

func (*FakeDatabase) ListRelationships

func (db *FakeDatabase) ListRelationships(ctx context.Context, listCriteria *criteria.ListRelationshipsCriteria) ([]*entity.Relationship, error)

func (*FakeDatabase) ListTrustDomains

func (db *FakeDatabase) ListTrustDomains(ctx context.Context) ([]*entity.TrustDomain, error)

func (*FakeDatabase) SetNextError

func (db *FakeDatabase) SetNextError(err error)

func (*FakeDatabase) UpdateJoinToken

func (db *FakeDatabase) UpdateJoinToken(ctx context.Context, joinTokenID uuid.UUID, used bool) (*entity.JoinToken, error)

func (*FakeDatabase) WithBundles

func (db *FakeDatabase) WithBundles(bundles ...*entity.Bundle)

WithBundles overrides all bundles

func (*FakeDatabase) WithRelationships

func (db *FakeDatabase) WithRelationships(relationships ...*entity.Relationship)

WithRelationships overrides all relationships

func (*FakeDatabase) WithTokens

func (db *FakeDatabase) WithTokens(bundles ...*entity.JoinToken)

WithTokens overrides all tokens

func (*FakeDatabase) WithTrustDomains

func (db *FakeDatabase) WithTrustDomains(trustDomains ...*entity.TrustDomain)

WithTrustDomains overrides all trust domains

Jump to

Keyboard shortcuts

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