bin

package
v1.11.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ZPOOL is zpool command name
	ZPOOL = "zpool"

	// BASH is bash command name
	BASH = "bash"

	// ZFS is zfs command name
	ZFS = "zfs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor added in v1.11.0

type Executor interface {
	Execute(command string) ([]byte, error)
}

Executor is an interface for executing ZPOOL/ZFS operations

type Zcmd added in v1.11.0

type Zcmd struct{}

Zcmd is structure which is responsible for executing ZPOOl/ZFS commands

func NewZcmd added in v1.11.0

func NewZcmd() *Zcmd

NewZcmd is new instance of Zcmd

func (*Zcmd) Execute added in v1.11.0

func (z *Zcmd) Execute(command string) ([]byte, error)

Execute is to execute zpool/zfs commands in bash

Jump to

Keyboard shortcuts

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