mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
13 lines
423 B
Go
13 lines
423 B
Go
package client
|
|
|
|
import (
|
|
"github.com/psviderski/uncloud/pkg/api"
|
|
"github.com/psviderski/uncloud/pkg/client/deploy"
|
|
)
|
|
|
|
// NewDeployment creates a new deployment for the given service specification.
|
|
// If strategy is nil, a default deploy.RollingStrategy will be used.
|
|
func (cli *Client) NewDeployment(spec api.ServiceSpec, strategy deploy.Strategy) *deploy.Deployment {
|
|
return deploy.NewDeployment(cli, spec, strategy)
|
|
}
|