Documentation ¶
Index ¶
- type API
- func (a *API) AddDomain(d *domain.Domain) (<-chan *server.Event, error)
- func (a *API) CreateEnvironment(env *environment.Environment) (<-chan *server.Event, error)
- func (a *API) DeleteDomain(name string) (<-chan *server.Event, error)
- func (a *API) Deploy(spec *deployment.Spec) (<-chan *server.Event, error)
- func (a *API) Deployment(id string) (*deployment.Deployment, error)
- func (a *API) DeploymentLogs(id string) ([]string, error)
- func (a *API) DestroyApp(app, env string) error
- func (a *API) DestroyEnvironment(name string) (<-chan *server.Event, error)
- func (a *API) ListDeployments() ([]*deployment.Deployment, error)
- func (a *API) ListDomains() ([]string, error)
- func (a *API) ListEnvironments() ([]string, error)
- func (a *API) TFApplyDomain(name string) (<-chan *server.Event, error)
- func (a *API) TFApplyEnv(name string) (<-chan *server.Event, error)
- func (a *API) TFPlanDomain(name string) (<-chan *server.Event, error)
- func (a *API) TFPlanEnv(name string) (<-chan *server.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { HttpClient *http.Client WsDialer *websocket.Dialer // contains filtered or unexported fields }
API represents a client that can interact with a Cloudfauj Server REST API
func (*API) CreateEnvironment ¶
func (a *API) CreateEnvironment(env *environment.Environment) (<-chan *server.Event, error)
func (*API) DeleteDomain ¶ added in v0.0.2
func (*API) Deploy ¶
Deploy requests the server to deploy an application. It streams all the deployment logs.
func (*API) Deployment ¶
func (a *API) Deployment(id string) (*deployment.Deployment, error)
func (*API) DestroyApp ¶
func (*API) DestroyEnvironment ¶
func (*API) ListDeployments ¶
func (a *API) ListDeployments() ([]*deployment.Deployment, error)
func (*API) ListDomains ¶ added in v0.0.2
func (*API) ListEnvironments ¶
func (*API) TFApplyDomain ¶ added in v0.0.4
func (*API) TFApplyEnv ¶ added in v0.0.4
func (*API) TFPlanDomain ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.