(opts ...ProjectDeployExecutorOptions)
| 17 | type ProjectDeployOption func(deploy *ProjectDeploy) |
| 18 | |
| 19 | func (p *ProjectDeploy) Deploy(opts ...ProjectDeployExecutorOptions) error { |
| 20 | var op errors.Op = "deploy.ProjectDeploy.Deploy" |
| 21 | executor := newProjectDeployExecutor(p.ec) |
| 22 | err := executor.deploy(opts...) |
| 23 | if err != nil { |
| 24 | return errors.E(op, err) |
| 25 | } |
| 26 | return nil |
| 27 | } |
| 28 | |
| 29 | func WithAdminSecret(adminSecret string) ProjectDeployOption { |
| 30 | return func(deploy *ProjectDeploy) { |