Documentation ¶
Index ¶
Constants ¶
View Source
const TYPE = "dir"
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type Spec ¶
type Spec struct { cpi.MediaFileSpec `json:",inline"` // PreserveDir defines that the directory specified in the Path field should be included in the blob. // Only supported for Type dir. PreserveDir *bool `json:"preserveDir,omitempty"` // IncludeFiles is a list of shell file name patterns that describe the files that should be included. // If nothing is defined all files are included. // Only relevant for blobinput type "dir". IncludeFiles []string `json:"includeFiles,omitempty"` // ExcludeFiles is a list of shell file name patterns that describe the files that should be excluded from the resulting tar. // Excluded files always overwrite included files. // Only relevant for blobinput type "dir". ExcludeFiles []string `json:"excludeFiles,omitempty"` // FollowSymlinks configures to follow and resolve symlinks when a directory is tarred. // This options will include the content of the symlink directly in the tar. // This option should be used with care. FollowSymlinks *bool `json:"followSymlinks,omitempty"` }
func (*Spec) GetBlob ¶
func (s *Spec) GetBlob(ctx inputs.Context, info inputs.InputResourceInfo) (blobaccess.BlobAccess, string, error)
Click to show internal directories.
Click to hide internal directories.