authapi

package
v0.0.0-...-e25e445 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API contains state variables used by the Auth API endpoint.

func NewAPI

NewAPI constructs a new API instance.

func (*API) AddTo

func (a *API) AddTo(r *mux.Router)

AddTo implements the api.API interface.

type PeeringRequest

type PeeringRequest struct {
	PeerHostName string `json:"peer"`
	UserName     string `json:"username"`
	Password     string `json:"password"`
}

PeeringRequest is the structure of the JSON request body sent to the POST /keppel/v1/auth/peering endpoint.

type Request

type Request struct {
	Scopes           auth.ScopeSet
	ClientID         string
	OfflineToken     bool
	IntendedAudience auth.Audience
}

Request contains the query parameters in a token request.

Jump to

Keyboard shortcuts

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