* * image build in cluster now use InitContainer to do the image building inside pods, which invoke docker again node's docker daemon * create a docker build image tool fx/contrib/docker_packer * clean up no need env in GitHub action workflow * bump version
16 lines
380 B
Go
16 lines
380 B
Go
package deploy
|
|
|
|
import (
|
|
"context"
|
|
|
|
types "github.com/metrue/fx/types"
|
|
)
|
|
|
|
// Deployer make a image a service
|
|
type Deployer interface {
|
|
Deploy(ctx context.Context, fn types.Func, name string, bindings []types.PortBinding) error
|
|
Destroy(ctx context.Context, name string) error
|
|
Update(ctx context.Context, name string) error
|
|
GetStatus(ctx context.Context, name string) error
|
|
}
|