Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("invalid token") ErrVerificationFailed = errors.New("token verification failed") PIPEOPS_CONTROL_PLANE_API = "" )
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func (*HttpClient) VerifyToken ¶
func (v *HttpClient) VerifyToken(token string, operatorID string) (*models.PipeOpsTokenVerificationResponse, error)
VerifyToken performs a POST request to verify a token.
type HttpClients ¶
type HttpClients interface {
VerifyToken(token string, operatorID string) (*models.PipeOpsTokenVerificationResponse, error)
}
func NewHttpClient ¶
func NewHttpClient() HttpClients
Click to show internal directories.
Click to hide internal directories.