writer

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Overview

Package writer provides a writer for a credential plugin.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Write(out credentialplugin.Output) error
}

type MockInterface added in v1.25.2

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface added in v1.25.2

func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockInterface) EXPECT added in v1.25.2

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

func (*MockInterface) Write added in v1.25.2

func (_m *MockInterface) Write(out credentialplugin.Output) error

Write provides a mock function with given fields: out

type MockInterface_Expecter added in v1.25.2

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

func (*MockInterface_Expecter) Write added in v1.25.2

func (_e *MockInterface_Expecter) Write(out interface{}) *MockInterface_Write_Call

Write is a helper method to define mock.On call

  • out credentialplugin.Output

type MockInterface_Write_Call added in v1.25.2

type MockInterface_Write_Call struct {
	*mock.Call
}

MockInterface_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*MockInterface_Write_Call) Return added in v1.25.2

func (*MockInterface_Write_Call) Run added in v1.25.2

type Writer

type Writer struct {
	Stdout stdio.Stdout
}

func (*Writer) Write

func (w *Writer) Write(out credentialplugin.Output) error

Write writes the ExecCredential to standard output for kubectl.

Jump to

Keyboard shortcuts

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