feat: add config for runner auth with client certificates (gitea/act_runner#321)

This commit is contained in:
Ryan Budhu
2024-07-22 11:58:25 -04:00
parent 8c8a8ce401
commit 8e4e70b177
7 changed files with 86 additions and 11 deletions

View File

@@ -33,6 +33,42 @@ func (_m *Client) Address() string {
return r0
}
// Clientcert provides a mock function with given fields:
func (_m *Client) Clientcert() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Clientcert")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Clientkey provides a mock function with given fields:
func (_m *Client) Clientkey() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Clientkey")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Declare provides a mock function with given fields: _a0, _a1
func (_m *Client) Declare(_a0 context.Context, _a1 *connect.Request[runnerv1.DeclareRequest]) (*connect.Response[runnerv1.DeclareResponse], error) {
ret := _m.Called(_a0, _a1)