Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPTriggerType represents a HTTP trigger in function load request from the host HTTPTriggerType = "httpTrigger" // BlobTriggerType represents a blob trigger in function load request from host BlobTriggerType = "blobTrigger" // HTTPBindingType represents a HTTP binding in function load request from the host HTTPBindingType = "http" // BlobBindingType represents a blob binding in function load request from the host BlobBindingType = "blob" )
TODO - add other binding and trigger types TODO - in the end, every trigger is a binding - does it make sense to have separate types for trigger / binding?
Variables ¶
View Source
var StringToType = map[string]reflect.Type{ "*http.Request": reflect.TypeOf((*http.Request)(nil)), "*azfunc.Context": reflect.TypeOf((*Context)(nil)), "*azfunc.Blob": reflect.TypeOf((*Blob)(nil)), }
StringToType - Because we don't have go/types information, we need to map the type info from the AST (which is string) to the actual types - see loader.go:83 investiage automatically adding here all types from package azfunc
Functions ¶
This section is empty.
Types ¶
type BlobProperties ¶
type BlobProperties struct { LastModified time.Time `xml:"Last-Modified" json:"LastModified"` Etag string `xml:"Etag" json:"ETag"` ContentMD5 string `xml:"Content-MD5" header:"x-ms-blob-content-md5" json:"ContentMD5"` ContentLength int64 `xml:"Content-Length" json:"Length"` ContentType string `xml:"Content-Type" header:"x-ms-blob-content-type" json:"ContentType"` ContentEncoding string `xml:"Content-Encoding" header:"x-ms-blob-content-encoding" json:"ContentEncoding"` CacheControl string `xml:"Cache-Control" header:"x-ms-blob-cache-control" json:"CacheControl"` ContentLanguage string `xml:"Cache-Language" header:"x-ms-blob-content-language" json:"ContentLanguage"` ContentDisposition string `xml:"Content-Disposition" header:"x-ms-blob-content-disposition" json:"ContentDisposition"` BlobType BlobType `xml:"x-ms-blob-blob-type" json:"BlobType"` SequenceNumber int64 `xml:"x-ms-blob-sequence-number" json:"PageBlobSequenceNumber"` // TODO these properties do not appear in the json or in the CloudBlob type from .NET - investigate if needed or can be removed CopyID string `xml:"CopyId"` CopyStatus string `xml:"CopyStatus"` CopySource string `xml:"CopySource"` CopyProgress string `xml:"CopyProgress"` CopyCompletionTime time.Time `xml:"CopyCompletionTime"` CopyStatusDescription string `xml:"CopyStatusDescription"` // LeaseStatus string `xml:"LeaseStatus" json:"LeaseStatus"` LeaseState string `xml:"LeaseState" json:"LeaseState"` LeaseDuration string `xml:"LeaseDuration" json:"LeaseDuration"` ServerEncrypted bool `xml:"ServerEncrypted" json:"IsServerEncrypted"` IncrementalCopy bool `xml:"IncrementalCopy" json:"IsIncrementalCopy"` }
BlobProperties contains various properties of a blob returned in various endpoints like ListBlobs or GetBlobProperties.
Click to show internal directories.
Click to hide internal directories.