Documentation ¶
Index ¶
- type FakeDatabase
- func (db *FakeDatabase) AppendNextError(err error)
- func (db *FakeDatabase) CreateJoinToken(ctx context.Context, req *entity.JoinToken) (*entity.JoinToken, error)
- func (db *FakeDatabase) CreateOrUpdateBundle(ctx context.Context, req *entity.Bundle) (*entity.Bundle, error)
- func (db *FakeDatabase) CreateOrUpdateRelationship(ctx context.Context, req *entity.Relationship) (*entity.Relationship, error)
- func (db *FakeDatabase) CreateOrUpdateTrustDomain(ctx context.Context, req *entity.TrustDomain) (*entity.TrustDomain, error)
- func (db *FakeDatabase) DeleteBundle(ctx context.Context, bundleID uuid.UUID) error
- func (db *FakeDatabase) DeleteJoinToken(ctx context.Context, joinTokenID uuid.UUID) error
- func (db *FakeDatabase) DeleteRelationship(ctx context.Context, relationshipID uuid.UUID) error
- func (db *FakeDatabase) DeleteTrustDomain(ctx context.Context, trustDomainID uuid.UUID) error
- func (db *FakeDatabase) FindBundleByID(ctx context.Context, bundleID uuid.UUID) (*entity.Bundle, error)
- func (db *FakeDatabase) FindBundleByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) (*entity.Bundle, error)
- func (db *FakeDatabase) FindJoinToken(ctx context.Context, token string) (*entity.JoinToken, error)
- func (db *FakeDatabase) FindJoinTokensByID(ctx context.Context, joinTokenID uuid.UUID) (*entity.JoinToken, error)
- func (db *FakeDatabase) FindJoinTokensByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.JoinToken, error)
- func (db *FakeDatabase) FindRelationshipByID(ctx context.Context, relationshipID uuid.UUID) (*entity.Relationship, error)
- func (db *FakeDatabase) FindRelationshipsByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.Relationship, error)
- func (db *FakeDatabase) FindTrustDomainByID(ctx context.Context, trustDomainID uuid.UUID) (*entity.TrustDomain, error)
- func (db *FakeDatabase) FindTrustDomainByName(ctx context.Context, trustDomain spiffeid.TrustDomain) (*entity.TrustDomain, error)
- func (db *FakeDatabase) ListBundles(ctx context.Context) ([]*entity.Bundle, error)
- func (db *FakeDatabase) ListJoinTokens(ctx context.Context) ([]*entity.JoinToken, error)
- func (db *FakeDatabase) ListRelationships(ctx context.Context, listCriteria *criteria.ListRelationshipsCriteria) ([]*entity.Relationship, error)
- func (db *FakeDatabase) ListTrustDomains(ctx context.Context) ([]*entity.TrustDomain, error)
- func (db *FakeDatabase) SetNextError(err error)
- func (db *FakeDatabase) UpdateJoinToken(ctx context.Context, joinTokenID uuid.UUID, used bool) (*entity.JoinToken, error)
- func (db *FakeDatabase) WithBundles(bundles ...*entity.Bundle)
- func (db *FakeDatabase) WithRelationships(relationships ...*entity.Relationship)
- func (db *FakeDatabase) WithTokens(bundles ...*entity.JoinToken)
- func (db *FakeDatabase) WithTrustDomains(trustDomains ...*entity.TrustDomain)
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 (*FakeDatabase) CreateOrUpdateBundle ¶
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 (*FakeDatabase) DeleteJoinToken ¶
func (*FakeDatabase) DeleteRelationship ¶
func (*FakeDatabase) DeleteTrustDomain ¶
func (*FakeDatabase) FindBundleByID ¶
func (*FakeDatabase) FindBundleByTrustDomainID ¶
func (*FakeDatabase) FindJoinToken ¶
func (*FakeDatabase) FindJoinTokensByID ¶
func (*FakeDatabase) FindJoinTokensByTrustDomainID ¶
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 (*FakeDatabase) ListJoinTokens ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.