From e8096dec88c38195e7230e13062728006b9126c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Tue, 14 Jul 2020 15:04:31 +0300 Subject: [PATCH] Rename the Repository Teams and Credential clients --- docs/proposals/go-git-providers.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/proposals/go-git-providers.md b/docs/proposals/go-git-providers.md index 3f2db98f..b768b28e 100644 --- a/docs/proposals/go-git-providers.md +++ b/docs/proposals/go-git-providers.md @@ -368,21 +368,21 @@ are supported `TransportType`s) ```go // RepositoryClient operates on a given/specific repository type RepositoryClient interface { - // Teams gives access to what teams have access to this specific repository - Teams() RepositoryTeamsClient + // TeamAccess gives access to what teams have access to this specific repository + TeamAccess() RepositoryTeamAccessClient // Credentials gives access to manipulating credentials for accessing this specific repository - Credentials() CredentialsClient + Credentials() RepositoryCredentialsClient } ``` #### Repository Teams -`RepositoryTeamsClient` allows adding & removing teams from the list of authorized persons to access a repository. +`RepositoryTeamAccessClient` allows adding & removing teams from the list of authorized persons to access a repository. ```go -// RepositoryTeamsClient operates on the teams list for a specific repository -type RepositoryTeamsClient interface { +// RepositoryTeamAccessClient operates on the teams list for a specific repository +type RepositoryTeamAccessClient interface { // Add adds a given team in the repo's (top-level) organization to the repository Add(ctx context.Context, teamName string, opts RepositoryAddTeamOptions) error @@ -395,11 +395,11 @@ type RepositoryTeamsClient interface { #### Repository Credentials -`CredentialsClient` allows adding & removing credentials (e.g. deploy keys) from accessing a specific repository. +`RepositoryCredentialsClient` allows adding & removing credentials (e.g. deploy keys) from accessing a specific repository. ```go -// CredentialsClient operates on the access credential list for a specific repository -type CredentialsClient interface { +// RepositoryCredentialsClient operates on the access credential list for a specific repository +type RepositoryCredentialsClient interface { // Create a credential with the given human-readable name, the given bytes and optional options Create(ctx context.Context, c RepositoryCredential, opts CredentialCreateOptions) error