_7zip

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

func (*File) Info

func (f *File) Info() (fs.FileInfo, error)

func (*File) IsDir

func (f *File) IsDir() bool

func (*File) ModTime

func (f *File) ModTime() time.Time

func (*File) Mode

func (f *File) Mode() fs.FileMode

func (*File) Name

func (f *File) Name() string

func (*File) OpenFile

func (f *File) OpenFile() error

func (*File) Read

func (f *File) Read(b []byte) (int, error)

func (*File) ReadDir

func (f *File) ReadDir(n int) ([]fs.DirEntry, error)

func (*File) Root

func (f *File) Root() string

func (*File) Size

func (f *File) Size() int64

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

func (*File) Sys

func (f *File) Sys() interface{}

func (*File) Type

func (f *File) Type() fs.FileMode

func (*File) Write

func (f *File) Write(_ []byte) (n int, err error)

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 (rc *ReadCloser) GetDirEntries(path string, n int) ([]fs.DirEntry, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL