compression_type

package
v0.0.0-...-3525705 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompressionTypeEmpty = CompressionType("")
	CompressionTypeNone  = CompressionType("none")
	CompressionTypeGzip  = CompressionType("gzip")
	CompressionTypeZlib  = CompressionType("zlib")
	CompressionTypeZstd  = CompressionType("zstd")

	CompressionTypeDefault = CompressionTypeZstd
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionType

type CompressionType string

func (*CompressionType) GetBlobCompression

func (compressionType *CompressionType) GetBlobCompression() interfaces.CLIFlagIOWrapper

func (CompressionType) GetCLICompletion

func (compressionType CompressionType) GetCLICompletion() map[string]string

func (*CompressionType) Set

func (compressionType *CompressionType) Set(value string) (err error)

func (*CompressionType) SetFlagDefinitions

func (compressionType *CompressionType) SetFlagDefinitions(
	flagDefinitions interfaces.CLIFlagDefinitions,
)

func (CompressionType) String

func (compressionType CompressionType) String() string

func (CompressionType) WrapReader

func (compressionType CompressionType) WrapReader(
	readerIn io.Reader,
) (readerOut io.ReadCloser, err error)

func (CompressionType) WrapWriter

func (compressionType CompressionType) WrapWriter(
	writerIn io.Writer,
) (io.WriteCloser, error)

type ErrUnsupportedCompression

type ErrUnsupportedCompression string

func (ErrUnsupportedCompression) Error

func (err ErrUnsupportedCompression) Error() string

func (ErrUnsupportedCompression) Is

func (ErrUnsupportedCompression) Is(target error) (ok bool)

Source Files

  • main.go

Jump to

Keyboard shortcuts

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