Documentation ¶
Index ¶
- func BuildGitHTTPURL(repoName *ParsedRepositoryName) entities.EnvRepositoryGitURL
- func BuildGitURL(repoName *ParsedRepositoryName) entities.EnvRepositoryGitURL
- type AuthenticatedUser
- type ParsedRepositoryName
- type Service
- func (s Service) CreateSSHKey(accessToken string, keyPairName string, publicKeyContent string) (*github.Key, error)
- func (s Service) DoesRepositoryExist(accessToken string, repositoryOwner string, repositoryName string) (bool, error)
- func (s Service) GetAuthenticatedUser(accessToken string) (*AuthenticatedUser, error)
- func (s Service) IsInvalidAccessTokenError(err error) bool
- func (s Service) IsNotFoundError(err error) bool
- func (s Service) RemoveSSHKey(accessToken string, sshKeyID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGitHTTPURL ¶
func BuildGitHTTPURL(repoName *ParsedRepositoryName) entities.EnvRepositoryGitURL
func BuildGitURL ¶
func BuildGitURL(repoName *ParsedRepositoryName) entities.EnvRepositoryGitURL
Types ¶
type AuthenticatedUser ¶
type ParsedRepositoryName ¶
func ParseRepositoryName ¶
func ParseRepositoryName( repositoryName string, defaultRepositoryOwner string, ) (*ParsedRepositoryName, error)
type Service ¶
type Service struct{}
func NewService ¶
func NewService() Service
func (Service) CreateSSHKey ¶
func (Service) DoesRepositoryExist ¶
func (Service) GetAuthenticatedUser ¶
func (s Service) GetAuthenticatedUser( accessToken string, ) (*AuthenticatedUser, error)
func (Service) IsInvalidAccessTokenError ¶
func (Service) IsNotFoundError ¶
Click to show internal directories.
Click to hide internal directories.