Documentation ¶
Index ¶
- type GitProvider
- type GitProviderRepository
- type GitProviderRepositoryImpl
- func (impl GitProviderRepositoryImpl) FindAll() ([]GitProvider, error)
- func (impl GitProviderRepositoryImpl) FindAllActiveForAutocomplete() ([]GitProvider, error)
- func (impl GitProviderRepositoryImpl) FindAllGitProviderCount() (int, error)
- func (impl GitProviderRepositoryImpl) FindByUrl(providerUrl string) (GitProvider, error)
- func (impl GitProviderRepositoryImpl) FindOne(providerId string) (GitProvider, error)
- func (impl GitProviderRepositoryImpl) MarkProviderDeleted(gitProvider *GitProvider) error
- func (impl GitProviderRepositoryImpl) ProviderExists(url string) (bool, error)
- func (impl GitProviderRepositoryImpl) Save(gitProvider *GitProvider) error
- func (impl GitProviderRepositoryImpl) Update(gitProvider *GitProvider) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitProvider ¶
type GitProvider struct { Id int `sql:"id,pk"` Name string `sql:"name,notnull"` Url string `sql:"url,notnull"` UserName string `sql:"user_name"` Password string `sql:"password"` SshPrivateKey string `sql:"ssh_private_key"` AccessToken string `sql:"access_token"` AuthMode constants.AuthMode `sql:"auth_mode,notnull"` Active bool `sql:"active,notnull"` Deleted bool `sql:"deleted,notnull"` GitHostId int `sql:"git_host_id"` //id stored in db git_host( foreign key) TlsCert string `sql:"tls_cert"` TlsKey string `sql:"tls_key"` CaCert string `sql:"ca_cert"` EnableTLSVerification bool `sql:"enable_tls_verification"` sql.AuditLog // contains filtered or unexported fields }
type GitProviderRepository ¶
type GitProviderRepository interface { Save(gitProvider *GitProvider) error ProviderExists(url string) (bool, error) FindAllActiveForAutocomplete() ([]GitProvider, error) FindAll() ([]GitProvider, error) FindAllGitProviderCount() (int, error) FindOne(providerId string) (GitProvider, error) FindByUrl(providerUrl string) (GitProvider, error) Update(gitProvider *GitProvider) error MarkProviderDeleted(gitProvider *GitProvider) error }
type GitProviderRepositoryImpl ¶
type GitProviderRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewGitProviderRepositoryImpl ¶
func NewGitProviderRepositoryImpl(dbConnection *pg.DB) *GitProviderRepositoryImpl
func (GitProviderRepositoryImpl) FindAll ¶
func (impl GitProviderRepositoryImpl) FindAll() ([]GitProvider, error)
func (GitProviderRepositoryImpl) FindAllActiveForAutocomplete ¶
func (impl GitProviderRepositoryImpl) FindAllActiveForAutocomplete() ([]GitProvider, error)
func (GitProviderRepositoryImpl) FindAllGitProviderCount ¶
func (impl GitProviderRepositoryImpl) FindAllGitProviderCount() (int, error)
func (GitProviderRepositoryImpl) FindByUrl ¶
func (impl GitProviderRepositoryImpl) FindByUrl(providerUrl string) (GitProvider, error)
func (GitProviderRepositoryImpl) FindOne ¶
func (impl GitProviderRepositoryImpl) FindOne(providerId string) (GitProvider, error)
func (GitProviderRepositoryImpl) MarkProviderDeleted ¶
func (impl GitProviderRepositoryImpl) MarkProviderDeleted(gitProvider *GitProvider) error
func (GitProviderRepositoryImpl) ProviderExists ¶
func (impl GitProviderRepositoryImpl) ProviderExists(url string) (bool, error)
func (GitProviderRepositoryImpl) Save ¶
func (impl GitProviderRepositoryImpl) Save(gitProvider *GitProvider) error
func (GitProviderRepositoryImpl) Update ¶
func (impl GitProviderRepositoryImpl) Update(gitProvider *GitProvider) error
Click to show internal directories.
Click to hide internal directories.