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.