Documentation ¶
Overview ¶
Creates an OAuth 2.0 authentication request as a URL string
Index ¶
- Variables
- type NewOidcPrepareAuthentication
- type OidcPrepareAuthentication
- func (r *OidcPrepareAuthentication) Header(key, value string) *OidcPrepareAuthentication
- func (r *OidcPrepareAuthentication) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r OidcPrepareAuthentication) IsSuccess(ctx context.Context) (bool, error)
- func (r OidcPrepareAuthentication) Perform(ctx context.Context) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type NewOidcPrepareAuthentication ¶
type NewOidcPrepareAuthentication func() *OidcPrepareAuthentication
NewOidcPrepareAuthentication type alias for index.
func NewOidcPrepareAuthenticationFunc ¶
func NewOidcPrepareAuthenticationFunc(tp elastictransport.Interface) NewOidcPrepareAuthentication
NewOidcPrepareAuthenticationFunc returns a new instance of OidcPrepareAuthentication with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type OidcPrepareAuthentication ¶
type OidcPrepareAuthentication struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *OidcPrepareAuthentication
Creates an OAuth 2.0 authentication request as a URL string
func (*OidcPrepareAuthentication) Header ¶
func (r *OidcPrepareAuthentication) Header(key, value string) *OidcPrepareAuthentication
Header set a key, value pair in the OidcPrepareAuthentication headers map.
func (*OidcPrepareAuthentication) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (OidcPrepareAuthentication) IsSuccess ¶
func (r OidcPrepareAuthentication) IsSuccess(ctx context.Context) (bool, error)
IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.