shared

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CommandsListing = `` /* 641-byte string literal not displayed */

CommandsListing is used to print listing of all supported commands with their short description

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsAddConfiguration

type ArgsAddConfiguration struct {
	Name   string     `flag:"name,configuration name"`
	Layers LayersList `flag:"layer,layer in component:version format; can be set multiple times"`
}

ArgsAddConfiguration describes arguments to configuratin add command

func (*ArgsAddConfiguration) Validate

func (a *ArgsAddConfiguration) Validate() error

Validate checks arguments sanity

type ArgsAddVersionByFile

type ArgsAddVersionByFile struct {
	Name    string `flag:"name,component name"`
	Version string `flag:"version,unique version id"`
	File    string `flag:"file,tar.gz file to upload"`
}

ArgsAddVersionByFile describes arguments to add component version command when version is added by uploading file

func (*ArgsAddVersionByFile) Validate

func (a *ArgsAddVersionByFile) Validate() error

Validate checks arguments sanity

type ArgsAddVersionByHash

type ArgsAddVersionByHash struct {
	Name    string `flag:"name,component name"`
	Version string `flag:"version,unique version id"`
	Hash    string `flag:"hash,sha256 content hash in hex representation (64 chars)"`
}

ArgsAddVersionByHash describes arguments to add component version command when version is added by its hash from previously downloaded file

func (*ArgsAddVersionByHash) Validate

func (a *ArgsAddVersionByHash) Validate() error

Validate checks arguments sanity

type ArgsBumpConfiguration

type ArgsBumpConfiguration struct {
	Name string `flag:"name,configuration name"`
	Comp string `flag:"component,component name to update"`
}

ArgsBumpConfiguration describes arguments for command to update single configuration layer to its most recent version

func (*ArgsBumpConfiguration) Validate

func (a *ArgsBumpConfiguration) Validate() error

Validate checks arguments sanity

type ArgsDelComponent

type ArgsDelComponent struct {
	Name string `flag:"name,component name"`
}

ArgsDelComponent describes arguments to delete component command

func (*ArgsDelComponent) Validate

func (a *ArgsDelComponent) Validate() error

Validate checks arguments sanity

type ArgsDelConfiguration

type ArgsDelConfiguration struct {
	Name  string `flag:"name,configuration name"`
	Force bool   `flag:"force,remove configuration for real"`
}

ArgsDelConfiguration describes arguments to delete configuration command

func (*ArgsDelConfiguration) Validate

func (a *ArgsDelConfiguration) Validate() error

Validate checks arguments sanity

type ArgsDelVersion

type ArgsDelVersion struct {
	Name    string `flag:"name,component name"`
	Version string `flag:"version,unique version id"`
}

ArgsDelVersion describes arguments to delete version command

func (*ArgsDelVersion) Validate

func (a *ArgsDelVersion) Validate() error

Validate checks arguments sanity

type ArgsShowComponent

type ArgsShowComponent struct {
	Name string `flag:"name,component name"`
}

ArgsShowComponent describes show component command arguments

func (*ArgsShowComponent) Validate

func (a *ArgsShowComponent) Validate() error

Validate checks arguments sanity

type ArgsShowConfiguration

type ArgsShowConfiguration struct {
	Name    string `flag:"name,configuration name"`
	Verbose bool   `flag:"v,show extra details"`
}

ArgsShowConfiguration describes show configuration command arguments

func (*ArgsShowConfiguration) Validate

func (a *ArgsShowConfiguration) Validate() error

Validate checks arguments sanity

type ArgsUpdateConfiguration

type ArgsUpdateConfiguration struct {
	Name string `flag:"name,configuration name"`
	Comp string `flag:"component,component name to update"`
	Ver  string `flag:"version,new version of selected component"`
}

ArgsUpdateConfiguration describes update configuration command arguments

func (*ArgsUpdateConfiguration) Validate

func (a *ArgsUpdateConfiguration) Validate() error

Validate checks arguments sanity

type LayersList

type LayersList []compVer

LayersList implements flag.Value interface

func (*LayersList) Set

func (c *LayersList) Set(value string) error

func (*LayersList) String

func (c *LayersList) String() string

Jump to

Keyboard shortcuts

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