cmd

package
v0.0.0-...-e7631cd Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DryRun bool

DryRun - if true, don't do anything that would change packagecloud.io state

Functions

func Execute

func Execute()

Execute the pkgcloud command

Types

type Distributions

type Distributions struct {
	*pkgcloud.Distributions
}

Distributions - wraps pkgcloud.Distributions to allow adding convenience methods

func (*Distributions) Linearize

func (d *Distributions) Linearize() []*LinearizesDistribution

Linearize - translate a Distributions into a list of LinearizedDistributions

type LinearizesDistribution

type LinearizesDistribution struct {
	ID                int
	Type              string
	DistributionName  string
	DistributionIndex string
	VersionName       string
	VersionIndex      string
}

LinearizesDistribution - pkgcloud.Distributions is really not what you are usually looking for LinearizesDistribution linearizes it to a more usefule form: one entry per distribution

type Package

type Package struct {
	*pkgcloud.Package
}

Package - wraps pkgcloud.Package in order to allow adding 'convenience' method

func (*Package) DaysOld

func (p *Package) DaysOld() int

DaysOld - Number of days old the Package is

func (*Package) Destroy

func (p *Package) Destroy() string

Destroy - destroy the package referenced by pkgcloud.Package

func (*Package) Promote

func (p *Package) Promote(repo string) string

Promote - promote Package to repo

Jump to

Keyboard shortcuts

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