entity

package
v0.0.0-...-c142cca Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Key       string
	Name      string
	Qualifier string
}

func NewProject

func NewProject(key string, name string) *Project

func (*Project) Validate

func (p *Project) Validate() error

type ProjectRepository

type ProjectRepository interface {
	Create(project *Project) error
	Delete(project *Project) error
}

type QualityGate

type QualityGate struct {
	Name       string
	ProjectKey string
}

func NewQualityGate

func NewQualityGate(name string, projectKey string) *QualityGate

func (*QualityGate) Validate

func (q *QualityGate) Validate() error

type QualityGateRepository

type QualityGateRepository interface {
	AddQualityGate(qualityGate *QualityGate) error
}

type QualityProfile

type QualityProfile struct {
	ProjectKey string
	Name       string
	Language   string
}

func NewQualityProfile

func NewQualityProfile(name string, language string, projectKey string) *QualityProfile

func (*QualityProfile) Validate

func (q *QualityProfile) Validate() error

type QualityProfileRepository

type QualityProfileRepository interface {
	AddQualityProfile(qualityProfile *QualityProfile) error
}

type SonarCfg

type SonarCfg struct {
	Host  string
	Token string
}

type UserRepository

type UserRepository interface {
	CreateUserToken(userToken *UserToken) error
}

type UserToken

type UserToken struct {
	Login      string `json:"login"`
	Name       string `json:"name"`
	Token      string `json:"token"`
	CreatedAt  string `json:"createdAt"`
	Type       string `json:"type"`
	ProjectKey string `json:"projectKey"`
}

func NewUserToken

func NewUserToken(projectKey string, tokenType string, name string) *UserToken

func (*UserToken) Validate

func (p *UserToken) Validate() error

Jump to

Keyboard shortcuts

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