eventing

package
v0.0.0-...-f13d8c9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckXattrTestValues

func CheckXattrTestValues(bucketName string) error

func CreateCollection

func CreateCollection(bucketName, scopeName, collectionName string) error

func DropCollection

func DropCollection(bucketName, scopeName, collectionName string) error

func RetryREST

func RetryREST(b util.Backoff, retryCount int, callback RestCallbackFunc, args ...interface{}) *restResponse

func RetrySettings

func RetrySettings(b util.Backoff, retryCount int, callback SettingsCallbackFunc, args ...interface{}) *responseSchema

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

func NewBasicAuth

func NewBasicAuth(authorization string) (*BasicAuth, error)

func (*BasicAuth) Validate

func (b *BasicAuth) Validate(other *BasicAuth) bool

type DetailLog

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

type DigestAuth

type DigestAuth struct {
	Method   string
	Realm    string
	Qop      string
	Nonce    string
	Opaque   string
	Password string
}

func (*DigestAuth) GetHeader

func (d *DigestAuth) GetHeader() string

func (*DigestAuth) Validate

func (d *DigestAuth) Validate(request *DigestRequest) bool

type DigestRequest

type DigestRequest struct {
	Username string
	Realm    string
	Nonce    string
	Uri      string
	Cnonce   string
	Nc       string
	Qop      string
	Response string
	Opaque   string
}

func NewDigestRequest

func NewDigestRequest(authorization string) *DigestRequest

type FunctionScope

type FunctionScope struct {
	BucketName string `json:"bucket,omitempty"`
	ScopeName  string `json:"scope,omitempty"`
}

type RestCallbackFunc

type RestCallbackFunc func(arg ...interface{}) (response *restResponse)

type SettingsCallbackFunc

type SettingsCallbackFunc func(arg ...interface{}) (*responseSchema, error)

type Verification

type Verification struct {
	IsBodyConsistent   bool `json:"is_body_consistent"`
	IsCookieConsistent bool `json:"is_cookie_consistent"`
}

func (*Verification) HandleBinary

func (v *Verification) HandleBinary(body []byte)

func (*Verification) HandleCookie

func (v *Verification) HandleCookie(r *http.Request)

func (*Verification) HandleForm

func (v *Verification) HandleForm(body []byte)

func (*Verification) HandleJSON

func (v *Verification) HandleJSON(body []byte)

func (*Verification) HandleText

func (v *Verification) HandleText(body []byte)

Jump to

Keyboard shortcuts

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