Documentation ¶
Index ¶
- type Artifact
- type Config
- type Distribution
- type Option
- type Store
- func (as Store) Artifacts() map[string]Artifact
- func (as Store) Distribution(artifact, version, distribution string) (Distribution, bool)
- func (as Store) Distributions(artifact, version string) (map[string]Distribution, bool)
- func (as Store) Version(artifact, version string) (Version, bool)
- func (as Store) Versions(artifact string) (map[string]Version, bool)
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distribution ¶
type Distribution struct { FileLocation string `json:"-"` SHA256Digest string `json:"sha256digest"` }
Distribution is a specific distribution of a Version of an Artifact(ex linux-amd64)
type Option ¶
func WithConfig ¶
WithConfig creates a Store with the provided config
func WithConfigFile ¶
WithConfigFile creates a Store with a config loaded from a yaml file on disk
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an artifact store served from Archivista
func (Store) Distribution ¶
func (as Store) Distribution(artifact, version, distribution string) (Distribution, bool)
Distribution returns the entry for a specific distribution for a specific version
func (Store) Distributions ¶
func (as Store) Distributions(artifact, version string) (map[string]Distribution, bool)
Distributions returns all of the available Distributions for a specified Version of an Artifact
type Version ¶
type Version struct { Distributions map[string]Distribution `json:"distributions"` Description string `json:"description"` }
Version represents a version of an Artifact (ex v0.2.0) with the available Distributions of version
Click to show internal directories.
Click to hide internal directories.