@@ -32,14 +32,14 @@ type TarEntry interface {
32
32
AppendTar (tw * tar.Writer , opts Options ) error
33
33
}
34
34
35
- // Option is a set of options used during building blob.
35
+ // Options is a set of options used during building blob.
36
36
type Options struct {
37
37
38
38
// Prefix is the prefix string need to be added to each file name (e.g. "./", "/", etc.)
39
39
Prefix string
40
40
}
41
41
42
- // Options is an option used during building blob.
42
+ // Option is an option used during building blob.
43
43
type Option func (o * Options )
44
44
45
45
// WithPrefix is an option to add a prefix string to each file name (e.g. "./", "/", etc.)
@@ -77,7 +77,7 @@ type tarEntryFunc func(*tar.Writer, Options) error
77
77
78
78
func (f tarEntryFunc ) AppendTar (tw * tar.Writer , opts Options ) error { return f (tw , opts ) }
79
79
80
- // DirecoryOption is an option for a directory entry.
80
+ // DirectoryOption is an option for a directory entry.
81
81
type DirectoryOption func (o * dirOpts )
82
82
83
83
type dirOpts struct {
@@ -102,7 +102,7 @@ func WithDirXattrs(xattrs map[string]string) DirectoryOption {
102
102
}
103
103
}
104
104
105
- // WithFileMode specifies the mode of the directory.
105
+ // WithDirMode specifies the mode of the directory.
106
106
func WithDirMode (mode os.FileMode ) DirectoryOption {
107
107
return func (o * dirOpts ) {
108
108
o .mode = & mode
0 commit comments