marman

package module
v0.0.0-...-98f90e0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

README

MarMan

MarMan (Marketplace Manager), is a tool used by ISV-CI to download files from various marketplaces.

Currently, it supports downloading files from the Tanzu Network, or from releases on Github.

Commands

  • marman github-download-release - Downloads a file from a GitHub release. May require a GITHUB_TOKEN.
  • marman tanzu-network-download - Downloads a file off of Tanzu Network. Requires a PIVNET_TOKEN (refresh or legacy).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool `long:"debug" description:"Outputs more info than usual"`
}

type DownloadPASConfig

type DownloadPASConfig struct {
	Version      string `short:"v" long:"version" default:"X" default-mask:"latest GA" description:"Semver constraint for picking a release version"`
	TanzuNetHost string `long:"pivnet-host" description:"Host for Tanzu Network" env:"TANZU_NETWORK_HOSTNAME" default:"https://network.pivotal.io"`
	PivnetToken  string `long:"pivnet-token" description:"Authentication token for PivNet" env:"PIVNET_TOKEN"`
}

func (*DownloadPASConfig) Execute

func (cmd *DownloadPASConfig) Execute(args []string) error

type DownloadSRTConfig

type DownloadSRTConfig struct {
	Version      string `short:"v" long:"version" default:"X" default-mask:"latest GA" description:"Semver constraint for picking a release version"`
	TanzuNetHost string `long:"pivnet-host" description:"Host for Tanzu Network" env:"TANZU_NETWORK_HOSTNAME" default:"https://network.pivotal.io"`
	PivnetToken  string `long:"pivnet-token" description:"Authentication token for PivNet" env:"PIVNET_TOKEN"`
}

func (*DownloadSRTConfig) Execute

func (cmd *DownloadSRTConfig) Execute(args []string) error

type Downloader

type Downloader interface {
	DownloadFromReader(filename string, closer io.ReadCloser) error
	DownloadFromURL(filename string, url string) error
}

type MarmanDownloader

type MarmanDownloader struct{}

func (*MarmanDownloader) DownloadFromReader

func (d *MarmanDownloader) DownloadFromReader(filename string, closer io.ReadCloser) error

func (*MarmanDownloader) DownloadFromURL

func (d *MarmanDownloader) DownloadFromURL(filename string, url string) error

type ReadCloser

type ReadCloser interface {
	io.Reader
	io.Closer
}

Directories

Path Synopsis
cmd
downloadstemcellfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
githubfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
pivnetfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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