Documentation
¶
Index ¶
- Variables
- func AppendStructToMap(Struct interface{}, Map map[string]interface{}) error
- func GetBinaryPath(command string) (string, error)
- func MarshallStructToMap(Struct interface{}) (map[string]interface{}, error)
- func StringsMatchingWildcards(attributes, wildcards []string) ([]string, error)
- type ProgressReader
- type ProgressWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExternalBinaryPaths = []string{"/usr/sbin", "/sbin", "/usr/local/sbin"}
)
Functions ¶
func AppendStructToMap ¶
func GetBinaryPath ¶
func MarshallStructToMap ¶
func StringsMatchingWildcards ¶
Given a string list containing attribute names, and a string list containing attribute name wildcard expressions, return the list of attributes that match at least one of the expressions. Only '*' wildcard is supported at the moment, matching any number of characters, including zero.
This is intended to be used to match `artifact_provides` attributes against `clears_artifact_provides` attributes.
Types ¶
type ProgressReader ¶
func NewProgressReader ¶
func NewProgressReader() *ProgressReader
type ProgressWriter ¶
type ProgressWriter struct { Writer io.WriteCloser // contains filtered or unexported fields }
func NewProgressWriter ¶
func NewProgressWriter() *ProgressWriter
func (*ProgressWriter) Finish ¶
func (p *ProgressWriter) Finish()
func (*ProgressWriter) Reset ¶
func (p *ProgressWriter) Reset(size int64, filename string, payloadNumber int)
func (*ProgressWriter) Wrap ¶
func (p *ProgressWriter) Wrap(w io.WriteCloser) io.Writer
Click to show internal directories.
Click to hide internal directories.