MCPcopy Create free account
hub / github.com/cloudbase/garm / GetGithubCredentialsByName

Method GetGithubCredentialsByName

database/sql/github.go:333–339  ·  view source on GitHub ↗
(ctx context.Context, name string, detailed bool)

Source from the content-addressed store, hash-verified

331}
332
333func (s *sqlDatabase) GetGithubCredentialsByName(ctx context.Context, name string, detailed bool) (params.ForgeCredentials, error) {
334 creds, err := s.getGithubCredentialsByName(ctx, s.conn, name, detailed)
335 if err != nil {
336 return params.ForgeCredentials{}, fmt.Errorf("error fetching github credentials: %w", err)
337 }
338 return s.sqlToCommonForgeCredentials(creds)
339}
340
341func (s *sqlDatabase) GetGithubCredentials(ctx context.Context, id uint, detailed bool) (params.ForgeCredentials, error) {
342 var creds GithubCredentials

Callers

nothing calls this directly

Tested by

no test coverage detected