issue

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.1.5

type Action interface {
	AddStepSummary(markdown string)
	Infof(msg string, args ...interface{})
	SetEnv(k, v string)
	SetOutput(k, v string)
}

type Controller

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

func New

func New(gh github.Client, fs afero.Fs, action Action) *Controller

func (*Controller) Run

func (ctrl *Controller) Run(ctx context.Context, logE *logrus.Entry, param *Param) error

type MockAction added in v0.1.5

type MockAction struct {
	mock.Mock
}

MockAction is an autogenerated mock type for the Action type

func NewMockAction added in v0.1.5

func NewMockAction(t mockConstructorTestingTNewMockAction) *MockAction

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

func (*MockAction) AddStepSummary added in v0.1.5

func (_m *MockAction) AddStepSummary(markdown string)

AddStepSummary provides a mock function with given fields: markdown

func (*MockAction) EXPECT added in v0.1.5

func (_m *MockAction) EXPECT() *MockAction_Expecter

func (*MockAction) Infof added in v0.1.5

func (_m *MockAction) Infof(msg string, args ...interface{})

Infof provides a mock function with given fields: msg, args

func (*MockAction) SetEnv added in v0.1.5

func (_m *MockAction) SetEnv(k string, v string)

SetEnv provides a mock function with given fields: k, v

func (*MockAction) SetOutput added in v0.1.5

func (_m *MockAction) SetOutput(k string, v string)

SetOutput provides a mock function with given fields: k, v

type MockAction_AddStepSummary_Call added in v0.1.5

type MockAction_AddStepSummary_Call struct {
	*mock.Call
}

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

func (*MockAction_AddStepSummary_Call) Return added in v0.1.5

func (*MockAction_AddStepSummary_Call) Run added in v0.1.5

func (*MockAction_AddStepSummary_Call) RunAndReturn added in v0.1.5

type MockAction_Expecter added in v0.1.5

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

func (*MockAction_Expecter) AddStepSummary added in v0.1.5

func (_e *MockAction_Expecter) AddStepSummary(markdown interface{}) *MockAction_AddStepSummary_Call

AddStepSummary is a helper method to define mock.On call

  • markdown string

func (*MockAction_Expecter) Infof added in v0.1.5

func (_e *MockAction_Expecter) Infof(msg interface{}, args ...interface{}) *MockAction_Infof_Call

Infof is a helper method to define mock.On call

  • msg string
  • args ...interface{}

func (*MockAction_Expecter) SetEnv added in v0.1.5

func (_e *MockAction_Expecter) SetEnv(k interface{}, v interface{}) *MockAction_SetEnv_Call

SetEnv is a helper method to define mock.On call

  • k string
  • v string

func (*MockAction_Expecter) SetOutput added in v0.1.5

func (_e *MockAction_Expecter) SetOutput(k interface{}, v interface{}) *MockAction_SetOutput_Call

SetOutput is a helper method to define mock.On call

  • k string
  • v string

type MockAction_Infof_Call added in v0.1.5

type MockAction_Infof_Call struct {
	*mock.Call
}

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

func (*MockAction_Infof_Call) Return added in v0.1.5

func (*MockAction_Infof_Call) Run added in v0.1.5

func (_c *MockAction_Infof_Call) Run(run func(msg string, args ...interface{})) *MockAction_Infof_Call

func (*MockAction_Infof_Call) RunAndReturn added in v0.1.5

func (_c *MockAction_Infof_Call) RunAndReturn(run func(string, ...interface{})) *MockAction_Infof_Call

type MockAction_SetEnv_Call added in v0.1.5

type MockAction_SetEnv_Call struct {
	*mock.Call
}

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

func (*MockAction_SetEnv_Call) Return added in v0.1.5

func (*MockAction_SetEnv_Call) Run added in v0.1.5

func (*MockAction_SetEnv_Call) RunAndReturn added in v0.1.5

func (_c *MockAction_SetEnv_Call) RunAndReturn(run func(string, string)) *MockAction_SetEnv_Call

type MockAction_SetOutput_Call added in v0.1.5

type MockAction_SetOutput_Call struct {
	*mock.Call
}

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

func (*MockAction_SetOutput_Call) Return added in v0.1.5

func (*MockAction_SetOutput_Call) Run added in v0.1.5

func (*MockAction_SetOutput_Call) RunAndReturn added in v0.1.5

func (_c *MockAction_SetOutput_Call) RunAndReturn(run func(string, string)) *MockAction_SetOutput_Call

type Param

type Param struct {
	RepoOwner       string
	RepoName        string
	Target          string
	GitHubServerURL string
}

Jump to

Keyboard shortcuts

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