Documentation
¶
Index ¶
- func DefaultActionsToken(t testing.TB) string
- func New(t testing.TB, handler http.Handler, options ...actionsServerOption) *actionsServer
- func NewUnstarted(t testing.TB, handler http.Handler, options ...actionsServerOption) *actionsServer
- func WithActionsRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
- func WithActionsToken(token string) actionsServerOption
- func WithRunnerRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultActionsToken ¶
func New ¶
New returns a new httptest.Server that handles the authentication requests neeeded to create a new client. Any requests not made to the /actions/runners/registration-token or /actions/runner-registration endpoints will be handled by the provided handler. The returned server is started and will be automatically closed when the test ends.
func NewUnstarted ¶
func WithActionsRegistrationTokenHandler ¶
func WithActionsRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
func WithActionsToken ¶
func WithActionsToken(token string) actionsServerOption
func WithRunnerRegistrationTokenHandler ¶
func WithRunnerRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.