Documentation
¶
Index ¶
- func JobConfigDataV1(projectDir string, tempDir string, actionConfig string) map[string]interface{}
- func ListenOnAddr(e *echo.Echo, listen string)
- func ListenOnSocket(e *echo.Echo, file string)
- func SecureWithAPIKey(e *echo.Echo, secret string)
- func Setup(handlers *APIConfig) *echo.Echo
- type APIConfig
- type ByVersion
- type DeploymentResponse
- type JobModuleDataResponse
- type JobProjectDataResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobConfigDataV1 ¶ added in v0.6.0
func ListenOnAddr ¶
func ListenOnSocket ¶
func SecureWithAPIKey ¶
SecureWithAPIKey secures the api with a secret access token The access token needs to be passed in Authorization Header with value Bearer <secret> For invalid key, it sends “401 - Unauthorized” response. For missing key, it sends “400 - Bad Request” response.
Types ¶
type APIConfig ¶
type APIConfig struct {
BuildID string
JobID string
ProjectDir string
Modules []*analyzerapi.ProjectModule
Step plangenerate.Step
CurrentModule *analyzerapi.ProjectModule
CurrentAction *catalog.Action
NCI nci.Spec
Env map[string]string
ActionEnv map[string]string
ActionConfig string
State *state.ActionStateContext
TempDir string
ArtifactDir string
ExecutableCandidates []executable.Executable
}
type DeploymentResponse ¶ added in v0.6.0
type DeploymentResponse struct {
DeploymentType string `json:"deployment_type"`
DeploymentSpec string `json:"deployment_spec"`
DeploymentFile string `json:"deployment_file"`
DeploymentEnvironment string `json:"deployment_environment"`
Properties map[string]string `json:"properties"`
}
func JobDeploymentV1 ¶ added in v0.6.0
func JobDeploymentV1(module *analyzerapi.ProjectModule, actionEnv map[string]string, env map[string]string) (DeploymentResponse, error)
type JobModuleDataResponse ¶ added in v0.6.0
type JobModuleDataResponse struct {
ProjectDir string `json:"project-dir"`
Config map[string]interface{} `json:"config"`
Env map[string]string `json:"env"`
Module *analyzerapi.ProjectModule
Deployment *DeploymentResponse
}
Click to show internal directories.
Click to hide internal directories.