Documentation ¶
Index ¶
- Constants
- Variables
- func FormatSize(size int64) string
- func LatestVersionString(product *models.Product) string
- type EncodedOutput
- func (o *EncodedOutput) Print(object interface{}) error
- func (o *EncodedOutput) PrintHeader(message string)
- func (o *EncodedOutput) RenderAssets(assets []*pkg.Asset) error
- func (o *EncodedOutput) RenderChart(chart *models.ChartVersion) error
- func (o *EncodedOutput) RenderCharts(charts []*models.ChartVersion) error
- func (o *EncodedOutput) RenderContainerImages(images []*models.DockerVersionList) error
- func (o *EncodedOutput) RenderFile(file *models.ProductDeploymentFile) error
- func (o *EncodedOutput) RenderFiles(files []*models.ProductDeploymentFile) error
- func (o *EncodedOutput) RenderProduct(product *models.Product, _ *models.Version) error
- func (o *EncodedOutput) RenderProducts(products []*models.Product) error
- func (o *EncodedOutput) RenderVersions(product *models.Product) error
- type Encoder
- type Format
- type HumanOutput
- func (o *HumanOutput) NewTable(headers ...string) *tablewriter.Table
- func (o *HumanOutput) PrintHeader(message string)
- func (o *HumanOutput) Printf(format string, a ...interface{})
- func (o *HumanOutput) Println(a ...interface{})
- func (o *HumanOutput) RenderAssets(assets []*pkg.Asset) error
- func (o *HumanOutput) RenderChart(chart *models.ChartVersion) error
- func (o *HumanOutput) RenderCharts(charts []*models.ChartVersion) error
- func (o *HumanOutput) RenderContainerImages(images []*models.DockerVersionList) error
- func (o *HumanOutput) RenderFile(file *models.ProductDeploymentFile) error
- func (o *HumanOutput) RenderFiles(files []*models.ProductDeploymentFile) error
- func (o *HumanOutput) RenderProduct(product *models.Product, version *models.Version) error
- func (o *HumanOutput) RenderProducts(products []*models.Product) error
- func (o *HumanOutput) RenderVersions(product *models.Product) error
Constants ¶
View Source
const ( FormatHuman = "human" FormatJSON = "json" FormatYAML = "yaml" )
Variables ¶
View Source
var SupportedOutputs = []string{FormatHuman, FormatJSON, FormatYAML}
Functions ¶
func FormatSize ¶
func LatestVersionString ¶
Types ¶
type EncodedOutput ¶
type EncodedOutput struct { Marshall Encoder // contains filtered or unexported fields }
func NewJSONOutput ¶
func NewJSONOutput(writer io.Writer) *EncodedOutput
func NewYAMLOutput ¶
func NewYAMLOutput(writer io.Writer) *EncodedOutput
func (*EncodedOutput) Print ¶
func (o *EncodedOutput) Print(object interface{}) error
func (*EncodedOutput) PrintHeader ¶
func (o *EncodedOutput) PrintHeader(message string)
PrintHeader is a no-op for encoded output. This output only prints the data
func (*EncodedOutput) RenderAssets ¶
func (o *EncodedOutput) RenderAssets(assets []*pkg.Asset) error
func (*EncodedOutput) RenderChart ¶
func (o *EncodedOutput) RenderChart(chart *models.ChartVersion) error
func (*EncodedOutput) RenderCharts ¶
func (o *EncodedOutput) RenderCharts(charts []*models.ChartVersion) error
func (*EncodedOutput) RenderContainerImages ¶
func (o *EncodedOutput) RenderContainerImages(images []*models.DockerVersionList) error
func (*EncodedOutput) RenderFile ¶
func (o *EncodedOutput) RenderFile(file *models.ProductDeploymentFile) error
func (*EncodedOutput) RenderFiles ¶
func (o *EncodedOutput) RenderFiles(files []*models.ProductDeploymentFile) error
func (*EncodedOutput) RenderProduct ¶
func (*EncodedOutput) RenderProducts ¶
func (o *EncodedOutput) RenderProducts(products []*models.Product) error
func (*EncodedOutput) RenderVersions ¶
func (o *EncodedOutput) RenderVersions(product *models.Product) error
type Format ¶
type Format interface { PrintHeader(message string) RenderProduct(product *models.Product, version *models.Version) error RenderProducts(products []*models.Product) error RenderVersions(product *models.Product) error RenderChart(chart *models.ChartVersion) error RenderCharts(charts []*models.ChartVersion) error RenderContainerImages(images []*models.DockerVersionList) error RenderFile(file *models.ProductDeploymentFile) error RenderFiles(files []*models.ProductDeploymentFile) error RenderAssets(assets []*pkg.Asset) error }
type HumanOutput ¶
type HumanOutput struct {
// contains filtered or unexported fields
}
func NewHumanOutput ¶
func NewHumanOutput(writer io.Writer, marketplaceHost string) *HumanOutput
func (*HumanOutput) NewTable ¶
func (o *HumanOutput) NewTable(headers ...string) *tablewriter.Table
func (*HumanOutput) PrintHeader ¶
func (o *HumanOutput) PrintHeader(message string)
func (*HumanOutput) Printf ¶
func (o *HumanOutput) Printf(format string, a ...interface{})
func (*HumanOutput) Println ¶
func (o *HumanOutput) Println(a ...interface{})
func (*HumanOutput) RenderAssets ¶
func (o *HumanOutput) RenderAssets(assets []*pkg.Asset) error
func (*HumanOutput) RenderChart ¶
func (o *HumanOutput) RenderChart(chart *models.ChartVersion) error
func (*HumanOutput) RenderCharts ¶
func (o *HumanOutput) RenderCharts(charts []*models.ChartVersion) error
func (*HumanOutput) RenderContainerImages ¶
func (o *HumanOutput) RenderContainerImages(images []*models.DockerVersionList) error
func (*HumanOutput) RenderFile ¶
func (o *HumanOutput) RenderFile(file *models.ProductDeploymentFile) error
func (*HumanOutput) RenderFiles ¶
func (o *HumanOutput) RenderFiles(files []*models.ProductDeploymentFile) error
func (*HumanOutput) RenderProduct ¶
func (*HumanOutput) RenderProducts ¶
func (o *HumanOutput) RenderProducts(products []*models.Product) error
func (*HumanOutput) RenderVersions ¶
func (o *HumanOutput) RenderVersions(product *models.Product) error
Click to show internal directories.
Click to hide internal directories.