Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateTrustDomainNames ¶
func PopulateTrustDomainNames(ctx context.Context, datastore Datastore, relationships ...*entity.Relationship) ([]*entity.Relationship, error)
PopulateTrustDomainNames updates the TrustDomainAName and TrustDomainBName fields of each Relationship in the given slice based on their TrustDomainAID and TrustDomainBID, respectively. It fetches the trust domain names from the provided Datastore.
Types ¶
type Datastore ¶
type Datastore interface { CreateOrUpdateTrustDomain(ctx context.Context, req *entity.TrustDomain) (*entity.TrustDomain, error) DeleteTrustDomain(ctx context.Context, trustDomainID uuid.UUID) error ListTrustDomains(ctx context.Context) ([]*entity.TrustDomain, error) FindTrustDomainByID(ctx context.Context, trustDomainID uuid.UUID) (*entity.TrustDomain, error) FindTrustDomainByName(ctx context.Context, trustDomain spiffeid.TrustDomain) (*entity.TrustDomain, error) CreateOrUpdateBundle(ctx context.Context, req *entity.Bundle) (*entity.Bundle, error) FindBundleByID(ctx context.Context, bundleID uuid.UUID) (*entity.Bundle, error) FindBundleByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) (*entity.Bundle, error) ListBundles(ctx context.Context) ([]*entity.Bundle, error) DeleteBundle(ctx context.Context, bundleID uuid.UUID) error CreateJoinToken(ctx context.Context, req *entity.JoinToken) (*entity.JoinToken, error) FindJoinTokensByID(ctx context.Context, joinTokenID uuid.UUID) (*entity.JoinToken, error) FindJoinTokensByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.JoinToken, error) ListJoinTokens(ctx context.Context) ([]*entity.JoinToken, error) UpdateJoinToken(ctx context.Context, joinTokenID uuid.UUID, used bool) (*entity.JoinToken, error) DeleteJoinToken(ctx context.Context, joinTokenID uuid.UUID) error FindJoinToken(ctx context.Context, token string) (*entity.JoinToken, error) CreateOrUpdateRelationship(ctx context.Context, req *entity.Relationship) (*entity.Relationship, error) FindRelationshipByID(ctx context.Context, relationshipID uuid.UUID) (*entity.Relationship, error) FindRelationshipsByTrustDomainID(ctx context.Context, trustDomainID uuid.UUID) ([]*entity.Relationship, error) ListRelationships(ctx context.Context) ([]*entity.Relationship, error) DeleteRelationship(ctx context.Context, relationshipID uuid.UUID) error }
Click to show internal directories.
Click to hide internal directories.