Documentation ¶
Index ¶
- type BaseBuilder
- func (b *BaseBuilder) AsService() thing.Builder
- func (b *BaseBuilder) AuthenticateThing(thingID string, audience string, keyID string, key crypto.Signer, ...) thing.Builder
- func (b *BaseBuilder) ConnectTo(u *url.URL) thing.Builder
- func (b *BaseBuilder) Create() (thing.Thing, error)
- func (b *BaseBuilder) HandleCallbacksWith(handlers ...callback.Handler) thing.Builder
- func (b *BaseBuilder) InRealm(realm string) thing.Builder
- func (b *BaseBuilder) RegisterThing(certificates []*x509.Certificate, claims func() interface{}) thing.Builder
- func (b *BaseBuilder) TimeoutRequestAfter(d time.Duration) thing.Builder
- func (b *BaseBuilder) WithConnection(connection client.Connection) thing.Builder
- func (b *BaseBuilder) WithTree(tree string) thing.Builder
- type DefaultThing
- func (t *DefaultThing) IntrospectAccessToken(token string) (introspection thing.IntrospectionResponse, err error)
- func (t *DefaultThing) Logout() error
- func (t *DefaultThing) RefreshAccessToken(refreshToken string, scopes ...string) (response thing.AccessTokenResponse, err error)
- func (t *DefaultThing) RequestAccessToken(scopes ...string) (response thing.AccessTokenResponse, err error)
- func (t *DefaultThing) RequestAttributes(names ...string) (response thing.AttributesResponse, err error)
- func (t *DefaultThing) RequestUserCode(scopes ...string) (response thing.DeviceAuthorizationResponse, err error)
- func (t *DefaultThing) RequestUserToken(authorizationResponse thing.DeviceAuthorizationResponse) (tokenResponse thing.AccessTokenResponse, err error)
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 (*BaseBuilder) HandleCallbacksWith ¶
func (b *BaseBuilder) HandleCallbacksWith(handlers ...callback.Handler) 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
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) RefreshAccessToken ¶ added in v7.1.0
func (t *DefaultThing) RefreshAccessToken(refreshToken string, scopes ...string) (response thing.AccessTokenResponse, err 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)
func (*DefaultThing) RequestUserCode ¶ added in v7.1.0
func (t *DefaultThing) RequestUserCode(scopes ...string) (response thing.DeviceAuthorizationResponse, err error)
func (*DefaultThing) RequestUserToken ¶ added in v7.1.0
func (t *DefaultThing) RequestUserToken(authorizationResponse thing.DeviceAuthorizationResponse) ( tokenResponse thing.AccessTokenResponse, err error)
Click to show internal directories.
Click to hide internal directories.