Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPIOWriter ¶
type CPIOWriter struct {
// contains filtered or unexported fields
}
CPIOWriter implements Writer for cpio.CPIOWriter.
func NewCPIOWriter ¶
func NewCPIOWriter(w io.Writer) *CPIOWriter
NewCPIOWriter creates a new archive writer.
func (*CPIOWriter) Close ¶
func (w *CPIOWriter) Close() error
Close closes the Writer. Flush is called by the underlying closer.
func (*CPIOWriter) Flush ¶
func (w *CPIOWriter) Flush() error
Flush writes the data to the underlying io.Writer.
func (*CPIOWriter) WriteDirectory ¶
func (w *CPIOWriter) WriteDirectory(path string) error
WriteDirectory add a directory entry for the given path to the archive.
func (*CPIOWriter) WriteLink ¶
func (w *CPIOWriter) WriteLink(path, target string) error
WriteLink adds a symbolic link for the given path pointing to the given target.
func (*CPIOWriter) WriteRegular ¶
WriteRegular copies the exisiting file from source into the archive.
type MockWriter ¶
func (*MockWriter) WriteDirectory ¶
func (m *MockWriter) WriteDirectory(path string) error
func (*MockWriter) WriteLink ¶
func (m *MockWriter) WriteLink(path, target string) error
func (*MockWriter) WriteRegular ¶
Click to show internal directories.
Click to hide internal directories.