gerrits

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gerrit

type Gerrit struct {
	DateCreated   string `json:"date_created,omitempty"`
	DateModified  string `json:"date_modified,omitempty"`
	GerritID      string `json:"gerrit_id,omitempty"`
	GerritName    string `json:"gerrit_name,omitempty"`
	GerritURL     string `json:"gerrit_url,omitempty"`
	GroupIDCcla   string `json:"group_id_ccla,omitempty"`
	GroupIDIcla   string `json:"group_id_icla,omitempty"`
	GroupNameCcla string `json:"group_name_ccla,omitempty"`
	GroupNameIcla string `json:"group_name_icla,omitempty"`
	ProjectID     string `json:"project_id,omitempty"`
	Version       string `json:"version,omitempty"`
}

Gerrit represent gerrit instances table

type Repository

type Repository interface {
	GetProjectGerrits(projectID string) ([]*models.Gerrit, error)
	DeleteProject(projectID string) error
}

Repository defines functions of Repositories

func NewRepository

func NewRepository(awsSession *session.Session, stage string) Repository

NewRepository create new Repository

type Service added in v1.0.13

type Service interface {
	DeleteProject(projectID string) error
}

Service handles gerrit Repository service

func NewService added in v1.0.13

func NewService(repo Repository) Service

NewService creates a new gerrit service

Jump to

Keyboard shortcuts

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