identity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 5 Imported by: 4

README

Vanadium Identity Service

This package and its sub-packages implement the identity service at https://dev.v.io/auth.

The design is described here: https://vanadium.github.io/designdocs/identity-service.html

Documentation

Overview

This file was auto-generated by the vanadium vdl tool. Package: identity Package identity defines interfaces for Vanadium identity providers.

Index

Constants

View Source
const SeekBlessingsRoute = "not currently implemented"

Variables

View Source
var MacaroonBlesserDesc rpc.InterfaceDesc = descMacaroonBlesser

MacaroonBlesserDesc describes the MacaroonBlesser interface.

Functions

This section is empty.

Types

type BlessingRootResponse

type BlessingRootResponse struct {
	// Names of the blessings.
	Names []string
	// Base64 der-encoded public key.
	PublicKey string
}

Type definitions ================ BlessingRootResponse is the struct representing the JSON response provided by the "blessing-root" route of the identity service.

func (BlessingRootResponse) VDLIsZero

func (x BlessingRootResponse) VDLIsZero() bool

func (*BlessingRootResponse) VDLRead

func (x *BlessingRootResponse) VDLRead(dec vdl.Decoder) error

func (BlessingRootResponse) VDLReflect

func (BlessingRootResponse) VDLReflect(struct {
	Name string `vdl:"v.io/x/ref/services/identity.BlessingRootResponse"`
})

func (BlessingRootResponse) VDLWrite

func (x BlessingRootResponse) VDLWrite(enc vdl.Encoder) error

type MacaroonBlesserClientMethods

type MacaroonBlesserClientMethods interface {
	// Bless uses the provided macaroon (which contains email and caveats)
	// to return a blessing for the client.
	Bless(_ *context.T, macaroon string, _ ...rpc.CallOpt) (blessing security.Blessings, _ error)
}

MacaroonBlesserClientMethods is the client interface containing MacaroonBlesser methods.

MacaroonBlesser returns a blessing given the provided macaroon string.

type MacaroonBlesserClientStub

type MacaroonBlesserClientStub interface {
	MacaroonBlesserClientMethods
}

MacaroonBlesserClientStub embeds MacaroonBlesserClientMethods and is a placeholder for additional management operations.

func MacaroonBlesserClient

func MacaroonBlesserClient(name string) MacaroonBlesserClientStub

MacaroonBlesserClient returns a client stub for MacaroonBlesser.

type MacaroonBlesserServerMethods

type MacaroonBlesserServerMethods interface {
	// Bless uses the provided macaroon (which contains email and caveats)
	// to return a blessing for the client.
	Bless(_ *context.T, _ rpc.ServerCall, macaroon string) (blessing security.Blessings, _ error)
}

MacaroonBlesserServerMethods is the interface a server writer implements for MacaroonBlesser.

MacaroonBlesser returns a blessing given the provided macaroon string.

type MacaroonBlesserServerStub

type MacaroonBlesserServerStub interface {
	MacaroonBlesserServerStubMethods
	// DescribeInterfaces the MacaroonBlesser interfaces.
	Describe__() []rpc.InterfaceDesc
}

MacaroonBlesserServerStub adds universal methods to MacaroonBlesserServerStubMethods.

func MacaroonBlesserServer

func MacaroonBlesserServer(impl MacaroonBlesserServerMethods) MacaroonBlesserServerStub

MacaroonBlesserServer returns a server stub for MacaroonBlesser. It converts an implementation of MacaroonBlesserServerMethods into an object that may be used by rpc.Server.

type MacaroonBlesserServerStubMethods

type MacaroonBlesserServerStubMethods MacaroonBlesserServerMethods

MacaroonBlesserServerStubMethods is the server interface containing MacaroonBlesser methods, as expected by rpc.Server. There is no difference between this interface and MacaroonBlesserServerMethods since there are no streaming methods.

Jump to

Keyboard shortcuts

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