garm/vendor/github.com/go-macaroon-bakery/macaroon-bakery/v3/httpbakery/dischargeclient_generated.go
Gabriel Adrian Samfira c61b7fd268
Update go modules
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-03-12 16:22:37 +02:00

35 lines
973 B
Go

// The code in this file was automatically generated by running httprequest-generate-client.
// DO NOT EDIT
package httpbakery
import (
"context"
"gopkg.in/httprequest.v1"
)
type dischargeClient struct {
Client httprequest.Client
}
// Discharge discharges a third party caveat.
func (c *dischargeClient) Discharge(ctx context.Context, p *dischargeRequest) (*dischargeResponse, error) {
var r *dischargeResponse
err := c.Client.Call(ctx, p, &r)
return r, err
}
// DischargeInfo returns information on the discharger.
func (c *dischargeClient) DischargeInfo(ctx context.Context, p *dischargeInfoRequest) (dischargeInfoResponse, error) {
var r dischargeInfoResponse
err := c.Client.Call(ctx, p, &r)
return r, err
}
// PublicKey returns the public key of the discharge service.
func (c *dischargeClient) PublicKey(ctx context.Context, p *publicKeyRequest) (publicKeyResponse, error) {
var r publicKeyResponse
err := c.Client.Call(ctx, p, &r)
return r, err
}