Documentation
¶
Index ¶
- Constants
- type FetchRequest
- type FetchRequestType
- type Fetcher
- func (fetcher *Fetcher) Fetch(req FetchRequest) (int, error)
- func (fetcher *Fetcher) FetchHandler(w http.ResponseWriter, r *http.Request)
- func (fetcher *Fetcher) FetchSecretsAndCfgMaps(secrets []fission.SecretReference, cfgmaps []fission.ConfigMapReference) (int, error)
- func (fetcher *Fetcher) UploadHandler(w http.ResponseWriter, r *http.Request)
- type UploadRequest
- type UploadResponse
Constants ¶
View Source
const ( FETCH_SOURCE = iota FETCH_DEPLOYMENT FETCH_URL // remove this? )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchRequest ¶
type FetchRequest struct {
FetchType FetchRequestType `json:"fetchType"`
Package metav1.ObjectMeta `json:"package"`
Url string `json:"url"`
StorageSvcUrl string `json:"storagesvcurl"`
Filename string `json:"filename"`
Secrets []fission.SecretReference `json:"secretList"`
ConfigMaps []fission.ConfigMapReference `json:"configMapList"`
}
type FetchRequestType ¶
type FetchRequestType int
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func MakeFetcher ¶
func (*Fetcher) Fetch ¶ added in v0.5.0
func (fetcher *Fetcher) Fetch(req FetchRequest) (int, error)
Fetch takes FetchRequest and makes the fetch call It returns the HTTP code and error if any
func (*Fetcher) FetchHandler ¶ added in v0.5.0
func (fetcher *Fetcher) FetchHandler(w http.ResponseWriter, r *http.Request)
func (*Fetcher) FetchSecretsAndCfgMaps ¶ added in v0.5.0
func (fetcher *Fetcher) FetchSecretsAndCfgMaps(secrets []fission.SecretReference, cfgmaps []fission.ConfigMapReference) (int, error)
FetchSecretsAndCfgMaps fetches secrets and configmaps specified by user It returns the HTTP code and error if any
func (*Fetcher) UploadHandler ¶ added in v0.5.0
func (fetcher *Fetcher) UploadHandler(w http.ResponseWriter, r *http.Request)
type UploadRequest ¶ added in v0.5.0
type UploadRequest struct {
Filename string `json:"filename"`
StorageSvcUrl string `json:"storagesvcurl"`
}
UploadRequest send from builder manager describes which deployment package should be upload to storage service.
type UploadResponse ¶ added in v0.5.0
type UploadResponse struct {
ArchiveDownloadUrl string `json:"archiveDownloadUrl"`
Checksum fission.Checksum `json:"checksum"`
}
UploadResponse defines the download url of an archive and its checksum.
Click to show internal directories.
Click to hide internal directories.