Files
fx-serverless/types/service.go
Minghe 047fac2a0a Docker image build in Cluster (#327)
* * 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
2019-10-16 23:37:52 +08:00

21 lines
412 B
Go

package types
// ServiceRunOptions a service to start options
type ServiceRunOptions struct {
Image string
Port int64
}
// DefaultHost default host IP
const DefaultHost = "0.0.0.0"
// Service instance of a service
type Service struct {
ID string `json:"id"`
Host string `json:"host"`
Port int `json:"port"`
State string `json:"state"`
Name string `json:"name"`
Image string `json:"image"`
}