Documentation
¶
Index ¶
- func NewRouter(api API) *mux.Router
- type API
- func (api API) CreateDeployment(w http.ResponseWriter, r *http.Request)
- func (api API) CreateEnvironment(w http.ResponseWriter, r *http.Request)
- func (api API) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
- func (api API) GetDeployment(w http.ResponseWriter, r *http.Request)
- func (api API) GetEnvironment(w http.ResponseWriter, r *http.Request)
- func (api API) ListDeployments(w http.ResponseWriter, r *http.Request)
- func (api API) ListEnvironments(w http.ResponseWriter, r *http.Request)
- func (api API) Ping(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(e environment.EnvironmentService, d deployment.DeploymentService, ecs facade.ECS) API
NewAPI initializes the API struct
func (API) CreateDeployment ¶
func (api API) CreateDeployment(w http.ResponseWriter, r *http.Request)
CreateDeployment creates a deployment in an environment using details in the request
func (API) CreateEnvironment ¶
func (api API) CreateEnvironment(w http.ResponseWriter, r *http.Request)
CreateEnvironment creates a new environment using details set in the request
func (API) DeleteEnvironment ¶
func (api API) DeleteEnvironment(w http.ResponseWriter, r *http.Request)
DeleteEnvironment deletes an environment by name
func (API) GetDeployment ¶
func (api API) GetDeployment(w http.ResponseWriter, r *http.Request)
GetDeployment gets the deployment in an environment using the environment name and deployment ID
func (API) GetEnvironment ¶
func (api API) GetEnvironment(w http.ResponseWriter, r *http.Request)
GetEnvironment gets an enironent by name
func (API) ListDeployments ¶
func (api API) ListDeployments(w http.ResponseWriter, r *http.Request)
ListDeployments lists all deployments in an environment
func (API) ListEnvironments ¶
func (api API) ListEnvironments(w http.ResponseWriter, r *http.Request)
ListEnvironments lists all environments across all clusters after applying filters, if any
Click to show internal directories.
Click to hide internal directories.