util

package
v0.0.0-...-0c40f91 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(ctx context.Context, resp *http.Response, err error) (bool, error)

Types

type SailpointError

type SailpointError struct {
	Response         string
	MessageTemplate  string `json:"msg_template,omitempty"`
	Message          string `json:"message,omitempty"`
	FormattedMessage string `json:"formatted_msg,omitempty"`

	Code           int    `json:"code,omitempty"`
	ErrorCode      int    `json:"error_code,omitempty"`
	SlptErrorCode  string `json:"slpt_error_code,omitempty"`
	ExceptionClass string `json:"exception_class,omitempty"`
}

func SailpointErrorFromHTTPBody

func SailpointErrorFromHTTPBody(resp *http.Response) (*SailpointError, bool)

func (*SailpointError) Error

func (s *SailpointError) Error() string

Jump to

Keyboard shortcuts

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