v.io: v.io/x/ref/services/discharger Index | Files

package discharger

import "v.io/x/ref/services/discharger"

Package discharger defines an interface for obtaining discharges for third-party caveats. nolint:golint

Index

Package Files

discharger.vdl.go

Variables

var DischargerDesc rpc.InterfaceDesc = descDischarger

DischargerDesc describes the Discharger interface.

var (

    // Indicates that the Caveat does not require a discharge
    ErrNotAThirdPartyCaveat = verror.NewIDAction("v.io/x/ref/services/discharger.NotAThirdPartyCaveat", verror.NoRetry)
)

func ErrorfNotAThirdPartyCaveat Uses

func ErrorfNotAThirdPartyCaveat(ctx *context.T, format string, c security.Caveat) error

ErrorfNotAThirdPartyCaveat calls ErrNotAThirdPartyCaveat.Errorf with the supplied arguments.

func MessageNotAThirdPartyCaveat Uses

func MessageNotAThirdPartyCaveat(ctx *context.T, message string, c security.Caveat) error

MessageNotAThirdPartyCaveat calls ErrNotAThirdPartyCaveat.Message with the supplied arguments.

func NewErrNotAThirdPartyCaveat Uses

func NewErrNotAThirdPartyCaveat(ctx *context.T, c security.Caveat) error

NewErrNotAThirdPartyCaveat returns an error with the ErrNotAThirdPartyCaveat ID. Deprecated: this function will be removed in the future, use ErrorfNotAThirdPartyCaveat or MessageNotAThirdPartyCaveat instead.

func ParamsErrNotAThirdPartyCaveat Uses

func ParamsErrNotAThirdPartyCaveat(argumentError error) (verrorComponent string, verrorOperation string, c security.Caveat, returnErr error)

ParamsErrNotAThirdPartyCaveat extracts the expected parameters from the error's ParameterList.

type DischargerClientMethods Uses

type DischargerClientMethods interface {
    // Discharge is called by a principal that holds a blessing with a third
    // party caveat and seeks to get a discharge that proves the fulfillment of
    // this caveat.
    Discharge(_ *context.T, Caveat security.Caveat, Impetus security.DischargeImpetus, _ ...rpc.CallOpt) (Discharge security.Discharge, _ error)
}

DischargerClientMethods is the client interface containing Discharger methods.

Discharger is the interface for obtaining discharges for ThirdPartyCaveats.

type DischargerClientStub Uses

type DischargerClientStub interface {
    DischargerClientMethods
}

DischargerClientStub embeds DischargerClientMethods and is a placeholder for additional management operations.

func DischargerClient Uses

func DischargerClient(name string) DischargerClientStub

DischargerClient returns a client stub for Discharger.

type DischargerServerMethods Uses

type DischargerServerMethods interface {
    // Discharge is called by a principal that holds a blessing with a third
    // party caveat and seeks to get a discharge that proves the fulfillment of
    // this caveat.
    Discharge(_ *context.T, _ rpc.ServerCall, Caveat security.Caveat, Impetus security.DischargeImpetus) (Discharge security.Discharge, _ error)
}

DischargerServerMethods is the interface a server writer implements for Discharger.

Discharger is the interface for obtaining discharges for ThirdPartyCaveats.

type DischargerServerStub Uses

type DischargerServerStub interface {
    DischargerServerStubMethods
    // DescribeInterfaces the Discharger interfaces.
    Describe__() []rpc.InterfaceDesc
}

DischargerServerStub adds universal methods to DischargerServerStubMethods.

func DischargerServer Uses

func DischargerServer(impl DischargerServerMethods) DischargerServerStub

DischargerServer returns a server stub for Discharger. It converts an implementation of DischargerServerMethods into an object that may be used by rpc.Server.

type DischargerServerStubMethods Uses

type DischargerServerStubMethods DischargerServerMethods

DischargerServerStubMethods is the server interface containing Discharger methods, as expected by rpc.Server. There is no difference between this interface and DischargerServerMethods since there are no streaming methods.

Package discharger imports 7 packages (graph) and is imported by 13 packages. Updated 2020-10-24. Refresh now. Tools for package owners.