artifact

package
v0.0.0-...-ede9753 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	UUID uuid.UUID

	// ID is the hash of the artifact itself as it was computed
	// when being uploaded (see: content-addressable storage)
	ID string

	// AccessLink is a URL that allows access (download) of the
	// artifact's payload when requested and for a limited time span
	AccessLink *url.URL

	// Size of the artifact in bytes
	Size int
}

func FromDatabaseType

func FromDatabaseType(m *model.Artifact) *A

func (*A) ToDatabaseType

func (a *A) ToDatabaseType(projectID string) *model.Artifact

func (*A) ToRestType

func (a *A) ToRestType() generated.Artifact

Jump to

Keyboard shortcuts

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