domain

package
v1.0.8-dta Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Library

type Library struct {
	gorm.Model `json:"-"`
	ProjectID  uuid.UUID `gorm:"type:uuid;primary_key;" json:"projectId"`
	CommitHash string    `gorm:"primary_key" json:"commit,omitempty"`
	Name       string    `json:"name,omitempty"`
	Type       string    `json:"type,omitempty"`
	Scope      string    `json:"scope,omitempty"`
	Packaging  string    `json:"packaging,omitempty"`
}

Library represents a third party library from the dependency tree

func NewLibrary

func NewLibrary(projectID uuid.UUID, commitHash, name, libraryType, scope, packaging string) *Library

NewLibrary creates a Library

type Project

type Project struct {
	gorm.Model `json:"-"`
	ProjectID  uuid.UUID `gorm:"type:uuid;primary_key;" json:"projectId"`
	CommitHash string    `gorm:"primary_key" json:"commit,omitempty"`
	Name       string    `json:"name,omitempty"`
	Status     string    `json:"status,omitempty"`
	BuildTool  string    `json:"-"`
	Data       string    `json:"-"`
}

Project defines data related to a project repository

func NewProject

func NewProject(id uuid.UUID, commit, name, status, buildTool, data string) *Project

NewProject creates an instance of Project

type Status

type Status string

Status represents the status of a job

const (
	DownloadSuccess       Status = "DOWNLOAD_SUCCESS"
	DownloadFailure       Status = "DOWNLOAD_FAILURE"
	UnbundleSuccess       Status = "UNBUNDLE_SUCCESS"
	UnbundleFailure       Status = "UNBUNDLE_FAILURE"
	BuildToolSuccess      Status = "BUILD_TOOL_SUCCESS"
	BuildToolFailure      Status = "BUILD_TOOL_FAILURE"
	DependencyTreeSuccess Status = "DEPENDENCY_TREE_SUCCESS"
	DependencyTreeFailure Status = "DEPENDENCY_TREE_FAILURE"
	ParseSuccess          Status = "PARSE_SUCCESS"
	ParseFailure          Status = "PARSE_FAILURE"
	McdSuccess            Status = "MCD_SUCCESS"
	McdFailure            Status = "MCD_FAILURE"
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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