cloudsim

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: UPL-1.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cloudsim provides authorization provider implementations for clients that connect to cloud simulator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenProvider

type AccessTokenProvider struct {
	TenantID string
}

AccessTokenProvider implements the nosqldb.AuthorizationProvider interface. It provides a dummy access token for the examples that run against the Oracle NoSQL Cloud Simulator.

This should only be used when running with the Cloud Simulator, it is not recommended for use in production.

func (*AccessTokenProvider) AuthorizationScheme

func (p *AccessTokenProvider) AuthorizationScheme() string

AuthorizationScheme returns a string representation of the supported authorization scheme.

func (*AccessTokenProvider) AuthorizationString

func (p *AccessTokenProvider) AuthorizationString(req auth.Request) (string, error)

AuthorizationString returns an authorization string for the specified request.

func (*AccessTokenProvider) Close

func (p *AccessTokenProvider) Close() error

Close releases resources allocated by the provider. It is no-op for this provider.

func (*AccessTokenProvider) SignHTTPRequest

func (p *AccessTokenProvider) SignHTTPRequest(req *http.Request) error

SignHTTPRequest signs the specified HTTP request. It is no-op for this provider.

Jump to

Keyboard shortcuts

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