Documentation
¶
Index ¶
- type GitHost
- type GitHostRepository
- type GitHostRepositoryImpl
- func (impl GitHostRepositoryImpl) Exists(name string) (bool, error)
- func (impl GitHostRepositoryImpl) FindAll() ([]GitHost, error)
- func (impl GitHostRepositoryImpl) FindOneById(id int) (GitHost, error)
- func (impl GitHostRepositoryImpl) FindOneByName(name string) (GitHost, error)
- func (impl GitHostRepositoryImpl) Save(gitHost *GitHost) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHost ¶
type GitHost struct {
Id int `sql:"id,pk"`
Name string `sql:"name,notnull"`
DisplayName string `sql:"display_name,notnull"`
Active bool `sql:"active,notnull"`
WebhookUrl string `sql:"webhook_url"`
WebhookSecret string `sql:"webhook_secret"`
EventTypeHeader string `sql:"event_type_header"`
SecretHeader string `sql:"secret_header"`
SecretValidator string `sql:"secret_validator"`
sql.AuditLog
// contains filtered or unexported fields
}
type GitHostRepository ¶
type GitHostRepositoryImpl ¶
type GitHostRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewGitHostRepositoryImpl ¶
func NewGitHostRepositoryImpl(dbConnection *pg.DB) *GitHostRepositoryImpl
func (GitHostRepositoryImpl) Exists ¶
func (impl GitHostRepositoryImpl) Exists(name string) (bool, error)
func (GitHostRepositoryImpl) FindAll ¶
func (impl GitHostRepositoryImpl) FindAll() ([]GitHost, error)
func (GitHostRepositoryImpl) FindOneById ¶
func (impl GitHostRepositoryImpl) FindOneById(id int) (GitHost, error)
func (GitHostRepositoryImpl) FindOneByName ¶
func (impl GitHostRepositoryImpl) FindOneByName(name string) (GitHost, error)
func (GitHostRepositoryImpl) Save ¶
func (impl GitHostRepositoryImpl) Save(gitHost *GitHost) error
Click to show internal directories.
Click to hide internal directories.