Documentation ¶
Overview ¶
Package _7zip
- Version: 1.0.0
- Copyright (c) 2022. Pashifika *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Package _7zip
- Version: 1.0.0
- Copyright (c) 2022. Pashifika *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Package _7zip
- Version: 1.0.0
- Copyright (c) 2022. Pashifika *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Info() (fs.FileInfo, error)
- func (f *File) IsDir() bool
- func (f *File) ModTime() time.Time
- func (f *File) Mode() fs.FileMode
- func (f *File) Name() string
- func (f *File) OpenFile() error
- func (f *File) Read(b []byte) (int, error)
- func (f *File) ReadDir(n int) ([]fs.DirEntry, error)
- func (f *File) Root() string
- func (f *File) Size() int64
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Sys() interface{}
- func (f *File) Type() fs.FileMode
- func (f *File) Write(_ []byte) (n int, err error)
- type ReadCloser
- func (rc *ReadCloser) Close() error
- func (rc *ReadCloser) GetDirEntries(path string, n int) ([]fs.DirEntry, error)
- func (rc *ReadCloser) Name() string
- func (rc *ReadCloser) Open(name string) (fs.File, error)
- func (rc *ReadCloser) OpenReader(path string) (fs.FS, error)
- func (rc *ReadCloser) OpenReaderWithPassword(path, pwd string) (fs.FS, error)
- func (rc *ReadCloser) Reset()
- func (rc *ReadCloser) SetCharset(_ []encoding.Encoding, _ bool)
- func (rc *ReadCloser) SetRootInfo(info os.FileInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadCloser ¶
type ReadCloser struct {
// contains filtered or unexported fields
}
func (*ReadCloser) Close ¶
func (rc *ReadCloser) Close() error
Close closes the 7-zip file or volumes, rendering them unusable for I/O.
func (*ReadCloser) GetDirEntries ¶
func (*ReadCloser) Name ¶
func (rc *ReadCloser) Name() string
func (*ReadCloser) Open ¶
func (rc *ReadCloser) Open(name string) (fs.File, error)
Open opens the named file in the 7-zip file, using the semantics of fs.FS.Open: paths are always slash separated, with no leading / or ../ elements.
func (*ReadCloser) OpenReader ¶
func (rc *ReadCloser) OpenReader(path string) (fs.FS, error)
OpenReader will open the 7-zip file specified by name and return a ReadCloser. If name has a ".001" suffix it is assumed there are multiple volumes and each sequential volume will be opened.
func (*ReadCloser) OpenReaderWithPassword ¶
func (rc *ReadCloser) OpenReaderWithPassword(path, pwd string) (fs.FS, error)
OpenReaderWithPassword will open the 7-zip file specified by name using password as the basis of the decryption key and return a ReadCloser. If name has a ".001" suffix it is assumed there are multiple volumes and each sequential volume will be opened.
func (*ReadCloser) Reset ¶
func (rc *ReadCloser) Reset()
func (*ReadCloser) SetCharset ¶
func (rc *ReadCloser) SetCharset(_ []encoding.Encoding, _ bool)
func (*ReadCloser) SetRootInfo ¶
func (rc *ReadCloser) SetRootInfo(info os.FileInfo)