viewmodels

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	RepoID     models.RepoID
	ArtifactID models.ArtifactID
	Size       types.Size
	State      vo.ArtifactState
	IsOK       bool
	IsBroken   bool
	IsExpired  bool
	CreatedAt  time.Time
	ExpiredAt  expiredTime
	Checksum   string
	Meta       models.ArtifactMetas
	Files      models.ArtifactFiles
}

func NewArtifact

func NewArtifact(artifact *models.Artifact) *Artifact

func NewArtifacts

func NewArtifacts(artifacts []*models.Artifact) []*Artifact

type Repo

type Repo struct {
	RepoID         models.RepoID
	Name           string
	Description    string
	Input          string
	Storage        string
	Broken         string
	Retention      types.Duration
	Size           types.Size
	ArtifactsCount int
	Meta           models.RepoMetas
	Artifacts      []*Artifact
}

func NewRepo

func NewRepo(repo *models.Repo) *Repo

func NewRepos

func NewRepos(repos []*models.Repo) []*Repo

Jump to

Keyboard shortcuts

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