terminal

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package terminal is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultTerminal

type DefaultTerminal struct{}

func (DefaultTerminal) ReadPassword

func (DefaultTerminal) ReadPassword(fd int) ([]byte, error)

func (DefaultTerminal) StdoutIsTerminal

func (DefaultTerminal) StdoutIsTerminal() bool

type MockTerminal

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

MockTerminal is a mock of Terminal interface.

func NewMockTerminal

func NewMockTerminal(ctrl *gomock.Controller) *MockTerminal

NewMockTerminal creates a new mock instance.

func (*MockTerminal) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTerminal) ReadPassword

func (m *MockTerminal) ReadPassword(fd int) ([]byte, error)

ReadPassword mocks base method.

func (*MockTerminal) StdoutIsTerminal

func (m *MockTerminal) StdoutIsTerminal() bool

StdoutIsTerminal mocks base method.

type MockTerminalMockRecorder

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

MockTerminalMockRecorder is the mock recorder for MockTerminal.

func (*MockTerminalMockRecorder) ReadPassword

func (mr *MockTerminalMockRecorder) ReadPassword(fd any) *gomock.Call

ReadPassword indicates an expected call of ReadPassword.

func (*MockTerminalMockRecorder) StdoutIsTerminal

func (mr *MockTerminalMockRecorder) StdoutIsTerminal() *gomock.Call

StdoutIsTerminal indicates an expected call of StdoutIsTerminal.

type Terminal

type Terminal interface {
	StdoutIsTerminal() bool
	ReadPassword(fd int) ([]byte, error)
}

Jump to

Keyboard shortcuts

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