fetcher

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 MakeFetcher(sharedVolumePath string, sharedSecretPath string, sharedConfigPath string) (*Fetcher, error)

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)

func (*Fetcher) VersionHandler added in v0.6.1

func (fetcher *Fetcher) VersionHandler(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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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