Documentation ¶
Index ¶
- func DefaultActionsToken(t ginkgo.GinkgoTInterface) string
- func New(t ginkgo.GinkgoTInterface, handler http.Handler, ...) *actionsServer
- func NewUnstarted(t ginkgo.GinkgoTInterface, handler http.Handler, ...) *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 DefaultActionsToken(t ginkgo.GinkgoTInterface) string
func New ¶
func New(t ginkgo.GinkgoTInterface, handler http.Handler, options ...actionsServerOption) *actionsServer
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.
TODO: this uses ginkgo interface _only_ to support our current controller tests
func NewUnstarted ¶
func NewUnstarted(t ginkgo.GinkgoTInterface, handler http.Handler, options ...actionsServerOption) *actionsServer
TODO: this uses ginkgo interface _only_ to support our current controller tests
func WithActionsRegistrationTokenHandler ¶ added in v0.27.5
func WithActionsRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
func WithActionsToken ¶
func WithActionsToken(token string) actionsServerOption
func WithRunnerRegistrationTokenHandler ¶ added in v0.27.5
func WithRunnerRegistrationTokenHandler(h http.HandlerFunc) actionsServerOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.