Documentation ¶
Index ¶
- func BuildGitHTTPURL(repoOwner, repoName string) entities.DevEnvRepositoryGitURL
- func BuildGitURL(repoOwner, repoName string) entities.DevEnvRepositoryGitURL
- type AuthenticatedUser
- type ParsedGitHubRepositoryName
- type Service
- func (s Service) CreateGPGKey(accessToken string, publicKeyContent string) (*github.GPGKey, error)
- func (s Service) CreateRepository(accessToken string, organization string, properties *github.Repository) (*github.Repository, error)
- 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) GetFileContentFromRepository(accessToken string, repositoryOwner string, repositoryName string, ...) (string, error)
- func (s Service) IsInvalidAccessTokenError(err error) bool
- func (s Service) IsNotFoundError(err error) bool
- func (s Service) RemoveGPGKey(accessToken string, gpgKeyID int64) error
- func (s Service) RemoveSSHKey(accessToken string, sshKeyID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGitHTTPURL ¶
func BuildGitHTTPURL(repoOwner, repoName string) entities.DevEnvRepositoryGitURL
func BuildGitURL ¶
func BuildGitURL(repoOwner, repoName string) entities.DevEnvRepositoryGitURL
Types ¶
type AuthenticatedUser ¶
type ParsedGitHubRepositoryName ¶
func ParseRepositoryName ¶
func ParseRepositoryName( repositoryName string, defaultRepositoryOwner string, ) (*ParsedGitHubRepositoryName, error)
type Service ¶
type Service struct{}
func NewService ¶
func NewService() Service
func (Service) CreateGPGKey ¶
func (Service) CreateRepository ¶
func (s Service) CreateRepository( accessToken string, organization string, properties *github.Repository, ) (*github.Repository, error)
func (Service) CreateSSHKey ¶
func (Service) DoesRepositoryExist ¶
func (Service) GetAuthenticatedUser ¶
func (s Service) GetAuthenticatedUser( accessToken string, ) (*AuthenticatedUser, error)
func (Service) GetFileContentFromRepository ¶
func (Service) IsInvalidAccessTokenError ¶
func (Service) IsNotFoundError ¶
func (Service) RemoveGPGKey ¶
Click to show internal directories.
Click to hide internal directories.