artifact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 2 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 {
	Name string
	Type Type
}

Artifact represents an artifact and its relevant info.

type Artifacts

type Artifacts struct {
	// contains filtered or unexported fields
}

Artifacts is a list of artifacts.

func New

func New() Artifacts

New return a new list of artifacts.

func (*Artifacts) Add

func (artifacts *Artifacts) Add(a *Artifact)

Add safely adds a new artifact to an artifact list.

func (Artifacts) List

func (artifacts Artifacts) List() []*Artifact

List return the actual list of artifacts.

type Type

type Type int

Type defines the type of an artifact.

const (
	// DockerImage is a published Docker image.
	DockerImage Type = iota
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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