api

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRemoteIAM

func RegisterRemoteIAM(server *otohttp.Server, remoteIAM RemoteIAM)

Types

type DeleteUser

type DeleteUser struct {
	ID             string `json:"id"`
	Username       string `json:"username"`
	DeleteProjects bool   `json:"deleteProjects"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	AccessToken string `json:"accessToken"`
	Error       string `json:"error,omitempty"`
}

type RemoteIAM

type RemoteIAM interface {
	DeleteUser(context.Context, DeleteUser) (*Void, error)
	Login(context.Context, LoginRequest) (*LoginResponse, error)
}

func NewRemoteIAMClient

func NewRemoteIAMClient(
	endpoint string,
	options ...*RemoteIAMClientOptions,
) RemoteIAM

func NewRemoteIAMClientFromOptions

func NewRemoteIAMClientFromOptions(opts base.ServiceOptions) RemoteIAM

type RemoteIAMClientOptions

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

func NewRemoteIAMClientOptions

func NewRemoteIAMClientOptions() *RemoteIAMClientOptions

func (*RemoteIAMClientOptions) SetBasicAuth

func (o *RemoteIAMClientOptions) SetBasicAuth(username, password string) *RemoteIAMClientOptions

func (*RemoteIAMClientOptions) SetTimeout

func (*RemoteIAMClientOptions) SetTransport

func (o *RemoteIAMClientOptions) SetTransport(transport http.RoundTripper) *RemoteIAMClientOptions

type Void

type Void struct {
	Error string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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