Skip to content

Commit

Permalink
Update provider version info to faas-provider
Browse files Browse the repository at this point in the history
Update InfoResponse to ProviderInfo
Update ProviderVersion to VersionInfo

Signed-off-by: Vivek Singh <[email protected]>
  • Loading branch information
viveksyngh authored and alexellis committed Jan 14, 2021
1 parent 3f8aa58 commit 378b43c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions types/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ type ScaleServiceRequest struct {
Replicas uint64 `json:"replicas"`
}

// InfoResponse provides information about the underlying provider
type InfoResponse struct {
Provider string `json:"provider"`
Version ProviderVersion `json:"version"`
Orchestration string `json:"orchestration"`
// DeleteFunctionRequest delete a deployed function
type DeleteFunctionRequest struct {
FunctionName string `json:"functionName"`
}

// ProviderVersion provides the commit sha and release version number of the underlying provider
type ProviderVersion struct {
SHA string `json:"sha"`
Release string `json:"release"`
// ProviderInfo provides information about the configured provider
type ProviderInfo struct {
Name string `json:"provider"`
Version *VersionInfo `json:"version"`
Orchestration string `json:"orchestration"`
}

// DeleteFunctionRequest delete a deployed function
type DeleteFunctionRequest struct {
FunctionName string `json:"functionName"`
// VersionInfo provides the commit message, sha and release version number
type VersionInfo struct {
CommitMessage string `json:"commit_message,omitempty"`
SHA string `json:"sha"`
Release string `json:"release"`
}

0 comments on commit 378b43c

Please sign in to comment.