Documentation ¶
Index ¶
- func IndexHandler(w http.ResponseWriter, r *http.Request)
- func LoadHandlers(orchestratorUrl string, client Client) func(router *mux.Router)
- type Application
- type ApplicationsHandler
- type Check
- type Client
- type HTTPClient
- type Integration
- type IntegrationHandler
- type IntegrationProviderInterface
- type OrchestrationHandler
- type Status
- type StatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexHandler ¶
func IndexHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Application ¶
type ApplicationsHandler ¶
type ApplicationsHandler interface { List(w http.ResponseWriter, r *http.Request) Show(w http.ResponseWriter, r *http.Request) Edit(w http.ResponseWriter, r *http.Request) Update(w http.ResponseWriter, r *http.Request) Policies(w http.ResponseWriter, r *http.Request) }
func NewApplicationsHandler ¶
func NewApplicationsHandler(orchestratorUrl string, client Client) ApplicationsHandler
type Client ¶
type Client interface { Health() (string, error) Integrations() ([]Integration, error) CreateIntegration(name string, provider string, key []byte) error DeleteIntegration(id string) error Applications(refresh bool) ([]Application, error) Application(id string) (Application, error) GetPolicies(id string) ([]hexapolicy.PolicyInfo, string, error) SetPolicies(id string, policies string) error Orchestration(from string, to string) error GetHttpClient() HTTPClient }
func NewOrchestratorClient ¶
func NewOrchestratorClient(client HTTPClient, url string) Client
NewOrchestratorClient returns a handle to a client that calls the Orchestrator service. When `client` is specified it will override OAuth2 token support.
type HTTPClient ¶
type IntegrationHandler ¶
type IntegrationHandler interface { List(w http.ResponseWriter, r *http.Request) New(w http.ResponseWriter, r *http.Request) CreateIntegration(w http.ResponseWriter, r *http.Request) Delete(w http.ResponseWriter, r *http.Request) }
func NewIntegrationsHandler ¶
func NewIntegrationsHandler(orchestratorUrl string, client Client) IntegrationHandler
type IntegrationProviderInterface ¶
type IntegrationProviderInterface interface {
// contains filtered or unexported methods
}
type OrchestrationHandler ¶
type OrchestrationHandler interface { New(w http.ResponseWriter, r *http.Request) Update(w http.ResponseWriter, r *http.Request) }
func NewOrchestrationHandler ¶
func NewOrchestrationHandler(orchestratorUrl string, client Client) OrchestrationHandler
type StatusHandler ¶
type StatusHandler struct {
// contains filtered or unexported fields
}
func NewStatusHandler ¶
func NewStatusHandler(orchestratorUrl string, client Client) StatusHandler
func (StatusHandler) StatusHandler ¶
func (p StatusHandler) StatusHandler(w http.ResponseWriter, _ *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.