MCPcopy
hub / github.com/akuity/kargo / Database

Interface Database

pkg/credentials/database.go:6–13  ·  view source on GitHub ↗

Database is an interface for a Credentials store.

Source from the content-addressed store, hash-verified

4
5// Database is an interface for a Credentials store.
6type Database interface {
7 Get(
8 ctx context.Context,
9 namespace string,
10 credType Type,
11 repo string,
12 ) (*Credentials, error)
13}
14
15// FakeDB is a mock implementation of the Database interface that is used to
16// facilitate unit testing.

Implementers 9

FakeDBpkg/credentials/database.go
databasepkg/credentials/kubernetes/database.go
fakeWorkQueuepkg/controller/management/replication/
mockPullRequestClientpkg/gitprovider/bitbucket/bitbucket_te
rolesDatabasepkg/server/rbac/roles.go
clientpkg/server/kubernetes/client.go
authorizingSubResourceClientpkg/server/kubernetes/client.go
fakeIssuesClientpkg/governance/github_client_test.go
fakePullRequestsClientpkg/governance/github_client_test.go

Calls

no outgoing calls

Tested by

no test coverage detected