thing

package
v0.0.0-...-ee64981 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseBuilder

type BaseBuilder struct {
	// contains filtered or unexported fields
}

func (*BaseBuilder) AsService

func (b *BaseBuilder) AsService() thing.Builder

func (*BaseBuilder) AuthenticateThing

func (b *BaseBuilder) AuthenticateThing(thingID string, audience string, keyID string, key crypto.Signer, claims func() interface{}) thing.Builder

func (*BaseBuilder) ConnectTo

func (b *BaseBuilder) ConnectTo(u *url.URL) thing.Builder

func (*BaseBuilder) Create

func (b *BaseBuilder) Create() (thing.Thing, error)

func (*BaseBuilder) HandleCallbacksWith

func (b *BaseBuilder) HandleCallbacksWith(handlers ...callback.Handler) thing.Builder

func (*BaseBuilder) InRealm

func (b *BaseBuilder) InRealm(realm string) thing.Builder

func (*BaseBuilder) RegisterThing

func (b *BaseBuilder) RegisterThing(certificates []*x509.Certificate, claims func() interface{}) thing.Builder

func (*BaseBuilder) TimeoutRequestAfter

func (b *BaseBuilder) TimeoutRequestAfter(d time.Duration) thing.Builder

func (*BaseBuilder) WithConnection

func (b *BaseBuilder) WithConnection(connection client.Connection) thing.Builder

func (*BaseBuilder) WithTree

func (b *BaseBuilder) WithTree(tree string) thing.Builder

type DefaultThing

type DefaultThing struct {
	// contains filtered or unexported fields
}

func (*DefaultThing) IntrospectAccessToken

func (t *DefaultThing) IntrospectAccessToken(token string) (introspection thing.IntrospectionResponse, err error)

func (*DefaultThing) Logout

func (t *DefaultThing) Logout() error

func (*DefaultThing) RequestAccessToken

func (t *DefaultThing) RequestAccessToken(scopes ...string) (response thing.AccessTokenResponse, err error)

func (*DefaultThing) RequestAttributes

func (t *DefaultThing) RequestAttributes(names ...string) (response thing.AttributesResponse, err error)

Jump to

Keyboard shortcuts

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