credentials

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOutput

type MockOutput struct {
	mock.Mock
}

MockOutput is an output for the builders

func NewMockOutput

func NewMockOutput() *MockOutput

NewMockOutput creates a new MockOutput

func (*MockOutput) Print

func (o *MockOutput) Print(credentials []*credentials.Credential) error

MockOutput prints the credentials

type Output

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

Output is an output for the builders

func NewOutput

func NewOutput(write OutputWriter, output ...Outputter) *Output

NewOutput creates a new Output

func (*Output) Print

func (o *Output) Print(credentials []*credentials.Credential) error

Output prints the credentials

type OutputWriter

type OutputWriter interface {
	PrintTable(content [][]string) error
}

type Outputter

type Outputter interface {
	Output(badge *credentials.Credential) (string, string, error)
}

Jump to

Keyboard shortcuts

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