Documentation ¶
Overview ¶
Package smbclient is used to execute smbclient commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandError ¶
type CommandError struct { Desc string Command []string Err error Output string ErrOutput string ExitStatus int }
CommandError represents a failed command.
func (CommandError) Error ¶
func (ce CommandError) Error() string
func (CommandError) Unwrap ¶
func (ce CommandError) Unwrap() error
Unwrap returns the error that generated the CommandError.
type SmbClient ¶
type SmbClient interface { List(ctx context.Context, host Host, auth Auth) (Listing, error) Command(ctx context.Context, share Share, auth Auth, cmd []string) error CommandOutput(ctx context.Context, share Share, auth Auth, cmd []string) ([]byte, error) CacheFlush(ctx context.Context) error }
SmbClient is an interface that covers common methods for interacting with smbclient when testing.
func MustPodExec ¶
func MustPodExec( tclient *kube.TestClient, namespace, pod, container string) SmbClient
MustPodExec returns an SmbClient set up to execute commands on the given pod and container, using the given kube client.
Click to show internal directories.
Click to hide internal directories.