Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrContentCollision = fmt.Errorf("content collision")
Functions ¶
Types ¶
type Content ¶
type Content struct { Source string `yaml:"src,omitempty" json:"src,omitempty"` Destination string `yaml:"dst,omitempty" json:"dst,omitempty"` Type string `yaml:"type,omitempty" json:"type,omitempty"` Packager string `yaml:"packager,omitempty" json:"packager,omitempty"` FileInfo *ContentFileInfo `yaml:"file_info,omitempty" json:"file_info,omitempty"` }
Content describes the source and destination of one file to copy into a package.
func (*Content) WithFileInfoDefaults ¶
type ContentFileInfo ¶
type ContentFileInfo struct { Owner string `yaml:"owner,omitempty" json:"owner,omitempty"` Group string `yaml:"group,omitempty" json:"group,omitempty"` Mode os.FileMode `yaml:"mode,omitempty" json:"mode,omitempty"` MTime time.Time `yaml:"mtime,omitempty" json:"mtime,omitempty"` Size int64 `yaml:"-" json:"-"` }
type Contents ¶
type Contents []*Content
Contents list of Content to process.
func ExpandContentGlobs ¶
ExpandContentGlobs gathers all of the real files to be copied into the package.
func (Contents) ContainsDestination ¶ added in v2.9.0
Click to show internal directories.
Click to hide internal directories.