access

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receipt

type Receipt struct {
	Status            string   `json:"status"`
	ResourceServer    string   `json:"resourceServer"`
	ResourceIndicator string   `json:"resourceIndicator,omitempty"`
	Scopes            []string `json:"scopes"`
	ApprovalURL       string   `json:"approvalUrl,omitempty"`
}

type RequestOptions

type RequestOptions struct {
	Handoff bool
}

type ResponseError added in v0.5.2

type ResponseError struct {
	Operation  string
	StatusCode int
	Body       []byte
}

ResponseError preserves the server response without inventing a client error code.

func (*ResponseError) Error added in v0.5.2

func (e *ResponseError) Error() string

type Service

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

func New

func New(agentService *agent.Service, httpClient realmrootapi.HttpRequestDoer) (*Service, error)

func (*Service) Request

func (s *Service) Request(ctx context.Context, server catalog.ResourceServer, scopes []string, authorizationDetails []map[string]any, reason string, options RequestOptions) (Receipt, error)

Jump to

Keyboard shortcuts

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