commands

package
v1.0.6-0...-6ede92f Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const BUCKET_LOCATION = ""

Variables

View Source
var VERSION = "1.0.0"

Functions

func DownloadDocker

func DownloadDocker(imageName, tag, path, fileName string)

func DownloadFile

func DownloadFile(filePath, url string)

DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.

func DownloadGit

func DownloadGit(filePath, repo, branch, fileDir string)

func DownloadPivnetNonTile

func DownloadPivnetNonTile(c *pivnet.DownloadProductFilesCommand, token, filename string)

func DownloadPivnetTile

func DownloadPivnetTile(c *pivnet.DownloadProductFilesCommand, token, iaas, fileName string)

func DownloadVMWare

func DownloadVMWare(fileName, slug, productFamily, fileDir string)

Types

type BillOfMaterialsCommands

type BillOfMaterialsCommands struct {
	Version           VersionCommand           `command:"version" description:"Print version information and exit"`
	UploadBits        UploadBitsCommand        `command:"upload-bits" description:"Uploads a directory"`
	DownloadBits      DownloadBitsCommand      `command:"download-bits" description:"Downloads bits defined in the BoM"`
	GenerateResources GenerateResourcesCommand `command:"generate-resources" description:"Generates a 'resources' block that can be used in a Concourse pipeline"`
}
var BoMCommands BillOfMaterialsCommands

type DownloadBitsCommand

type DownloadBitsCommand struct {
	Bom     string `long:"bom" env:"MINIO_BOM" description:"YAML file containing information about all files to upload" required:"true"`
	BitsDir string `long:"bits" env:"MINIO_BITS_DIR" description:"Minio Secret Access Key used to connect to host" required:"true"`
}

func (*DownloadBitsCommand) Execute

func (c *DownloadBitsCommand) Execute([]string) error

type GenerateResourcesCommand

type GenerateResourcesCommand struct {
	HostName        string `long:"host" env:"MINIO_HOST" description:"Minio Host to connect to" required:"true"`
	AccessKey       string `long:"key" env:"MINIO_ACCESS_KEY" description:"Minio Access Key used to connect to host" required:"true"`
	SecretAccessKey string `long:"secret" env:"MINIO_SECRET" description:"Minio Secret Access Key used to connect to host" required:"true"`
	Bucket          string `long:"bucket" env:"MINIO_BUCKET" description:"Minio Bucket where files will be uploaded" required:"true"`
	Bom             string `long:"bom" env:"MINIO_BOM" description:"YAML file containing information about all files to upload" required:"true"`
}

func (*GenerateResourcesCommand) Execute

func (c *GenerateResourcesCommand) Execute([]string) error

type UploadBitsCommand

type UploadBitsCommand struct {
	HostName        string `long:"host" env:"MINIO_HOST" description:"Minio Host to connect to" required:"true"`
	AccessKey       string `long:"key" env:"MINIO_ACCESS_KEY" description:"Minio Access Key used to connect to host" required:"true"`
	SecretAccessKey string `long:"secret" env:"MINIO_SECRET" description:"Minio Secret Access Key used to connect to host" required:"true"`
	Bucket          string `long:"bucket" env:"MINIO_BUCKET" description:"Minio Bucket where files will be uploaded" required:"true"`
	BitsDir         string `long:"bits" env:"MINIO_BITS_DIR" description:"Minio Secret Access Key used to connect to host" required:"true"`
	Bom             string `long:"bom" env:"MINIO_BOM" description:"YAML file containing information about all files to upload" required:"true"`
}

func (*UploadBitsCommand) Execute

func (c *UploadBitsCommand) Execute([]string) error

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Execute - returns the version

Jump to

Keyboard shortcuts

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