Skip to content

Commit

Permalink
Move namespace to struct for scale service and delete function
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jul 6, 2023
1 parent b1e79da commit 8a2dc38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

package types

// ScaleServiceRequest scales the service to the requested replcia count.
// ScaleServiceRequest scales the service to the requested replica count.
type ScaleServiceRequest struct {
ServiceName string `json:"serviceName"`
Replicas uint64 `json:"replicas"`
Namespace string `json:"namespace,omitempty"`
}

// DeleteFunctionRequest delete a deployed function
type DeleteFunctionRequest struct {
FunctionName string `json:"functionName"`
Namespace string `json:"namespace,omitempty"`
}

// ProviderInfo provides information about the configured provider
Expand Down

0 comments on commit 8a2dc38

Please sign in to comment.