Documentation ¶
Index ¶
Constants ¶
View Source
const (
Non200Response = "non 200 response"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Log logr.Logger DestURL string DestHeader map[string]string DestURLSuffixExpr string AuthURL string AuthHeader map[string]string AuthDestHeader string AuthDestHeaderPrefix string AuthTokenExpr string AuthBodyData []byte }
Uploader config for construction
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func NewUploader ¶
func NewUploader(client *http.Client, config *Config, transformer *transformer.Transformer) (u *Uploader, err error)
Optional: Defines an endpoint to call to request an authorization token used when making the destURL request authURL: authorizataion endpoint authHeader: headers sent when sending the authorization request authDestHeader: the additional header map key to set on the destHeader ("Authorization") authDestPrefix: the additional prefix map string value to set on the destHeader ("Bearer ") parseResponse: optionally jsonpath parse the response for the authorization token
Click to show internal directories.
Click to hide internal directories.