vcs_connection

package
v0.0.0-...-699ca5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitbucketConnection

type BitbucketConnection struct {
}

type Controller

type Controller struct {
}

func (*Controller) CreateConnection

func (ctrl *Controller) CreateConnection(c *gin.Context)

func (*Controller) ListConnections

func (ctrl *Controller) ListConnections(c *gin.Context)

type GitConnection

type GitConnection struct {
}

type GithubConnection

type GithubConnection struct {
}

type GitlabConnection

type GitlabConnection struct {
}

type VcsConnection

type VcsConnection struct {
	ID        uuid.UUID  `gorm:"type:uuid;default:gen_random_uuid()" json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `sql:"index" json:"deleted_at"`
	Name      string     `json:"name"`
	// One of github, gitlab, bitbucket, or git
	Provider  string              `json:"provider"`
	Github    GithubConnection    `gorm:"embedded;embeddedPrefix:github_"`
	Gitlab    GitlabConnection    `gorm:"embedded;embeddedPrefix:gitlab_"`
	Bitbucket BitbucketConnection `gorm:"embedded;embeddedPrefix:bitbucket_"`
	Git       GitConnection       `gorm:"embedded;embeddedPrefix:git_"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL