Documentation ¶
Index ¶
- Constants
- Variables
- func CloneFile(f CloneableFile) (*os.File, error)
- func FormatVersion(v Version, format VersionFormat) string
- func FullDuplexCopy(ctx context.Context, left io.ReadWriter, right io.ReadWriter, ...) (rErr error)
- func IsBinaryCompatibleWithHost(binaryOs Os, binaryArch Arch, hostOs Os, hostArch Arch) bool
- func IsClosedError(err error) bool
- func IsNotExist(err error) bool
- func VersionToMap(v Version) map[string]any
- type Arch
- func (this Arch) Bare() string
- func (this Arch) IsEqualTo(other any) bool
- func (this Arch) IsZero() bool
- func (this Arch) MarshalText() ([]byte, error)
- func (this Arch) Oci() string
- func (this *Arch) Set(plain string) error
- func (this *Arch) SetOci(plain string) error
- func (this Arch) String() string
- func (this *Arch) UnmarshalText(in []byte) error
- type CloneableFile
- type CloseWriter
- type EnvVars
- type FileMode
- type FullDuplexCopyOpts
- type Os
- type Signal
- func (this *Signal) DecodeMsgPack(dec codec.MsgPackDecoder) error
- func (this *Signal) DecodeMsgpack(dec *msgpack.Decoder) (err error)
- func (this Signal) EncodeMsgPack(enc codec.MsgPackEncoder) error
- func (this Signal) EncodeMsgpack(enc *msgpack.Encoder) error
- func (this Signal) IsEqualTo(other any) bool
- func (this Signal) IsZero() bool
- func (this Signal) MarshalText() ([]byte, error)
- func (this Signal) Native() syscall.Signal
- func (this Signal) SendToProcess(p *os.Process) error
- func (this *Signal) Set(plain string) error
- func (this Signal) String() string
- func (this *Signal) UnmarshalText(text []byte) error
- type Version
- type VersionEdition
- type VersionFeature
- type VersionFeatureCategory
- type VersionFeatures
- type VersionFormat
Constants ¶
View Source
const ( SIGABRT = Signal(syscall.SIGABRT) SIGALRM = Signal(syscall.SIGALRM) SIGBUS = Signal(syscall.SIGBUS) SIGCHLD = Signal(syscall.SIGCHLD) SIGCLD = Signal(syscall.SIGCLD) SIGCONT = Signal(syscall.SIGCONT) SIGFPE = Signal(syscall.SIGFPE) SIGHUP = Signal(syscall.SIGHUP) SIGILL = Signal(syscall.SIGILL) SIGINT = Signal(syscall.SIGINT) SIGIO = Signal(syscall.SIGIO) SIGIOT = Signal(syscall.SIGIOT) SIGKILL = Signal(syscall.SIGKILL) SIGPIPE = Signal(syscall.SIGPIPE) SIGPOLL = Signal(syscall.SIGPOLL) SIGPROF = Signal(syscall.SIGPROF) SIGPWR = Signal(syscall.SIGPWR) SIGQUIT = Signal(syscall.SIGQUIT) SIGSEGV = Signal(syscall.SIGSEGV) SIGSTOP = Signal(syscall.SIGSTOP) SIGSYS = Signal(syscall.SIGSYS) SIGTERM = Signal(syscall.SIGTERM) SIGTRAP = Signal(syscall.SIGTRAP) SIGTSTP = Signal(syscall.SIGTSTP) SIGTTIN = Signal(syscall.SIGTTIN) SIGTTOU = Signal(syscall.SIGTTOU) SIGURG = Signal(syscall.SIGURG) SIGUSR1 = Signal(syscall.SIGUSR1) SIGUSR2 = Signal(syscall.SIGUSR2) SIGVTALRM = Signal(syscall.SIGVTALRM) SIGWINCH = Signal(syscall.SIGWINCH) SIGXCPU = Signal(syscall.SIGXCPU) SIGXFSZ = Signal(syscall.SIGXFSZ) )
Variables ¶
View Source
var (
ErrUnknownSignal = errors.New("unknown signal")
)
Functions ¶
func FormatVersion ¶ added in v0.4.0
func FormatVersion(v Version, format VersionFormat) string
func FullDuplexCopy ¶ added in v0.4.0
func FullDuplexCopy(ctx context.Context, left io.ReadWriter, right io.ReadWriter, opts *FullDuplexCopyOpts) (rErr error)
func IsBinaryCompatibleWithHost ¶ added in v0.4.0
func IsClosedError ¶ added in v0.4.0
func IsNotExist ¶
func VersionToMap ¶ added in v0.4.0
Types ¶
type Arch ¶ added in v0.4.0
type Arch uint8
func (Arch) MarshalText ¶ added in v0.4.0
func (*Arch) UnmarshalText ¶ added in v0.4.0
type CloneableFile ¶ added in v0.4.0
type CloseWriter ¶ added in v0.4.0
type CloseWriter interface {
CloseWrite() error
}
type FullDuplexCopyOpts ¶ added in v0.4.0
type Os ¶ added in v0.4.0
type Os uint8
func (Os) MarshalText ¶ added in v0.4.0
func (*Os) UnmarshalText ¶ added in v0.4.0
type Signal ¶
type Signal uint16
func (*Signal) DecodeMsgPack ¶ added in v0.4.0
func (this *Signal) DecodeMsgPack(dec codec.MsgPackDecoder) error
func (*Signal) DecodeMsgpack ¶ added in v0.4.0
func (Signal) EncodeMsgPack ¶ added in v0.4.0
func (this Signal) EncodeMsgPack(enc codec.MsgPackEncoder) error
func (Signal) EncodeMsgpack ¶ added in v0.4.0
func (Signal) MarshalText ¶
func (*Signal) UnmarshalText ¶
type VersionEdition ¶ added in v0.4.0
type VersionEdition uint8
const ( VersionEditionUnknown VersionEdition = iota VersionEditionGeneric VersionEditionExtended )
func (*VersionEdition) Set ¶ added in v0.4.0
func (this *VersionEdition) Set(plain string) error
func (VersionEdition) String ¶ added in v0.4.0
func (this VersionEdition) String() string
type VersionFeature ¶ added in v0.4.0
type VersionFeature interface {
Name() string
}
type VersionFeatureCategory ¶ added in v0.4.0
type VersionFeatureCategory interface { Name() string ForEach(func(VersionFeature)) }
type VersionFeatures ¶ added in v0.4.0
type VersionFeatures interface {
ForEach(func(VersionFeatureCategory))
}
type VersionFormat ¶ added in v0.4.0
type VersionFormat uint8
const ( VersionFormatShort VersionFormat = iota VersionFormatLong )
Click to show internal directories.
Click to hide internal directories.