Documentation
¶
Index ¶
- Constants
- Variables
- func RepoServerRun(servicePort string, prefabHubAddress string, workDir string) (err error)
- func SendResponse(conn net.Conn, status string, body ...string) (err error)
- type LocalPrefabService
- func (ps *LocalPrefabService) RepoRequest(spec repointerface.SpecSheet) (body []string, err error)
- func (ps *LocalPrefabService) RequestBlueprint(prefab *prefablib.Prefab, ctx *dcontext.DeployContext) (blueprint prefablib.Blueprint, err error)
- func (ps *LocalPrefabService) RequestPrefab(prefab *prefablib.Prefab, ctx *dcontext.DeployContext) (prefabPath string, blueprint prefablib.Blueprint, err error)
- func (ps *LocalPrefabService) WaitDownload() error
- type Response
Constants ¶
Variables ¶
View Source
var RESP_STATUS []string = []string{ RESP_SUCCESS, RESP_DECODE_SPEC_FAILED, RESP_REPO_CONNECTION_ERR, RESP_PREFAB_NO_MATCH, RESP_PREFAB_SERVICE_INTERNAL_ERR, }
Functions ¶
func RepoServerRun ¶
servicePort format: `:PORT` prefabAddress format: `http[s]://username:password@hostname/path`
Types ¶
type LocalPrefabService ¶
type LocalPrefabService struct {
// contains filtered or unexported fields
}
func NewLocalPrefabService ¶
func NewLocalPrefabService(workDir string, tmpDir string, serverEndpoint string) (ps *LocalPrefabService, err error)
func (*LocalPrefabService) RepoRequest ¶
func (ps *LocalPrefabService) RepoRequest(spec repointerface.SpecSheet) (body []string, err error)
func (*LocalPrefabService) RequestBlueprint ¶
func (ps *LocalPrefabService) RequestBlueprint(prefab *prefablib.Prefab, ctx *dcontext.DeployContext) (blueprint prefablib.Blueprint, err error)
func (*LocalPrefabService) RequestPrefab ¶
func (ps *LocalPrefabService) RequestPrefab(prefab *prefablib.Prefab, ctx *dcontext.DeployContext) (prefabPath string, blueprint prefablib.Blueprint, err error)
func (*LocalPrefabService) WaitDownload ¶
func (ps *LocalPrefabService) WaitDownload() error
Click to show internal directories.
Click to hide internal directories.