Documentation ¶
Index ¶
- func SystemArch() string
- func WithNoNesting(f *TableFormatter)
- type Arch
- type Delete
- type DeleteCommand
- type Download
- type FormatterList
- type Guess
- type List
- type MarshalData
- type Modifier
- type NoteCommand
- type OpFile
- type Public
- type PublicAdd
- type PublicDel
- type Remote
- type Root
- type StructuredStdout
- type SuggestFlags
- type TableFormatter
- type Tag
- type TagCommand
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SystemArch ¶
func SystemArch() string
func WithNoNesting ¶
func WithNoNesting(f *TableFormatter)
Types ¶
type DeleteCommand ¶
type Download ¶
type Download struct { *cobra.Command ForceUid bool ForcePath bool Output string Overwrite bool Arch string Tag []string // contains filtered or unexported fields }
func NewDownload ¶
type FormatterList ¶
type FormatterList struct {
// contains filtered or unexported fields
}
A FormatterList contains a squence of astore.Formatter objects
The FormatterList also implements the astore.Formatter interface, allowing one to apply multiple formatters to an input stream.
func (*FormatterList) Append ¶
func (fl *FormatterList) Append(formatter castore.Formatter)
Appends a astore.Formatter to a FormatterList
func (*FormatterList) Artifact ¶
func (fl *FormatterList) Artifact(af *astore.Artifact)
Implements the astore.Formatter.Artifact() method for FormatterList.
Calls astore.Artifact() on each formatter in the formatters sequence, passing in the input astore.Artifact.
func (*FormatterList) Element ¶
func (fl *FormatterList) Element(el *astore.Element)
Implements the astore.Formatter.Element() method for FormatterList.
Calls astore.Element() on each formatter in the formatters sequence, passing in the input astore.Artifact.
func (*FormatterList) Flush ¶
func (fl *FormatterList) Flush()
Implements the astore.Formatter.Flush() method for FormatterList.
Calls astore.Flush() on each formatter in the formatters sequence.
type MarshalData ¶
MarshalData is the collection of Artifacts and Elements from an astore operation.
type NoteCommand ¶
func NewNote ¶
func NewNote(root *Root) *NoteCommand
type OpFile ¶
type OpFile struct {
// contains filtered or unexported fields
}
OpFile formats the astore meta based on the outputFile extension.
See also marshal.MarshalFile()
func (*OpFile) Artifact ¶
Implements the astore.Formatter.Artifact() method for MarshalFormat.
Stores the input artifact into an internal artifact sequence.
type PublicAdd ¶
type PublicAdd struct { *cobra.Command Uid string NonExistentOK bool Arch string Tag []string All bool // contains filtered or unexported fields }
func NewPublicAdd ¶
type PublicDel ¶
func NewPublicDel ¶
type Remote ¶
type Remote struct { *cobra.Command Suggest SuggestFlags }
type Root ¶
func (*Root) OutputArtifacts ¶
type StructuredStdout ¶
type StructuredStdout struct {
// contains filtered or unexported fields
}
func NewStructuredStdout ¶
func NewStructuredStdout(m marshal.Marshaller) *StructuredStdout
func (*StructuredStdout) Artifact ¶
func (s *StructuredStdout) Artifact(af *astore.Artifact)
func (*StructuredStdout) Element ¶
func (s *StructuredStdout) Element(el *astore.Element)
func (*StructuredStdout) Flush ¶
func (s *StructuredStdout) Flush()
type SuggestFlags ¶
type SuggestFlags astore.SuggestOptions
func (*SuggestFlags) Options ¶
func (sf *SuggestFlags) Options() *astore.SuggestOptions
func (*SuggestFlags) Register ¶
func (sf *SuggestFlags) Register(flagset *pflag.FlagSet)
type TableFormatter ¶
type TableFormatter struct {
// contains filtered or unexported fields
}
func NewTableFormatter ¶
func NewTableFormatter(mods ...Modifier) *TableFormatter
func (*TableFormatter) Artifact ¶
func (ff *TableFormatter) Artifact(af *astore.Artifact)
func (*TableFormatter) Element ¶
func (ff *TableFormatter) Element(el *astore.Element)
func (*TableFormatter) Flush ¶
func (ff *TableFormatter) Flush()
type TagCommand ¶
func NewTagCommand ¶
func NewTagCommand(root *Root, name string, op func([]string) astore.TagModifier) *TagCommand