Documentation ¶
Index ¶
- func LoadHandlers(database *sql.DB, store hawk.CredentialStore, hostPort string, ...) (func(router *mux.Router), *workflowsupport.WorkScheduler)
- type Action
- type Application
- type ApplicationInfo
- type ApplicationRecord
- type Applications
- type ApplicationsDataGateway
- func (gateway ApplicationsDataGateway) CreateIfAbsent(integrationId string, objectId string, name string, description string, ...) (string, error)
- func (gateway ApplicationsDataGateway) DeleteById(id string) error
- func (gateway ApplicationsDataGateway) Find() ([]ApplicationRecord, error)
- func (gateway ApplicationsDataGateway) FindById(id string) (*ApplicationRecord, error)
- func (gateway ApplicationsDataGateway) FindByIntegrationId(integrationId string) (*ApplicationRecord, error)
- func (gateway ApplicationsDataGateway) FindByObjectId(objectId string) (*ApplicationRecord, error)
- type ApplicationsHandler
- func (handler ApplicationsHandler) GetPolicies(w http.ResponseWriter, r *http.Request)
- func (handler ApplicationsHandler) List(w http.ResponseWriter, _ *http.Request)
- func (handler ApplicationsHandler) SetPolicies(w http.ResponseWriter, r *http.Request)
- func (handler ApplicationsHandler) Show(w http.ResponseWriter, r *http.Request)
- type ApplicationsService
- func (service ApplicationsService) Apply(jsonRequest Orchestration) error
- func (service ApplicationsService) GatherRecords(identifier string) (ApplicationInfo, IntegrationInfo, Provider, error)
- func (service ApplicationsService) RetainAction(fromPolicies, toPolicies []policysupport.PolicyInfo) ([]policysupport.PolicyInfo, error)
- func (service ApplicationsService) RetainResource(fromPolicies, toPolicies []policysupport.PolicyInfo) ([]policysupport.PolicyInfo, error)
- type DiscoveryWorkFinder
- type DiscoveryWorker
- type Integration
- type IntegrationInfo
- type IntegrationRecord
- type Integrations
- type IntegrationsDataGateway
- func (gateway IntegrationsDataGateway) Create(name string, provider string, key []byte) (string, error)
- func (gateway IntegrationsDataGateway) Delete(id string) error
- func (gateway IntegrationsDataGateway) Find() ([]IntegrationRecord, error)
- func (gateway IntegrationsDataGateway) FindById(id string) (IntegrationRecord, error)
- type IntegrationsHandler
- type Meta
- type Object
- type Orchestration
- type OrchestrationHandler
- type Policies
- type Policy
- type Provider
- type Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadHandlers ¶
func LoadHandlers(database *sql.DB, store hawk.CredentialStore, hostPort string, providers map[string]Provider) (func(router *mux.Router), *workflowsupport.WorkScheduler)
Types ¶
type Application ¶
type ApplicationInfo ¶
type ApplicationRecord ¶
type Applications ¶
type Applications struct {
Applications []Application `json:"applications"`
}
type ApplicationsDataGateway ¶
func (ApplicationsDataGateway) CreateIfAbsent ¶
func (ApplicationsDataGateway) DeleteById ¶
func (gateway ApplicationsDataGateway) DeleteById(id string) error
func (ApplicationsDataGateway) Find ¶
func (gateway ApplicationsDataGateway) Find() ([]ApplicationRecord, error)
func (ApplicationsDataGateway) FindById ¶
func (gateway ApplicationsDataGateway) FindById(id string) (*ApplicationRecord, error)
func (ApplicationsDataGateway) FindByIntegrationId ¶
func (gateway ApplicationsDataGateway) FindByIntegrationId(integrationId string) (*ApplicationRecord, error)
func (ApplicationsDataGateway) FindByObjectId ¶
func (gateway ApplicationsDataGateway) FindByObjectId(objectId string) (*ApplicationRecord, error)
type ApplicationsHandler ¶
type ApplicationsHandler struct {
// contains filtered or unexported fields
}
func (ApplicationsHandler) GetPolicies ¶
func (handler ApplicationsHandler) GetPolicies(w http.ResponseWriter, r *http.Request)
func (ApplicationsHandler) List ¶
func (handler ApplicationsHandler) List(w http.ResponseWriter, _ *http.Request)
func (ApplicationsHandler) SetPolicies ¶
func (handler ApplicationsHandler) SetPolicies(w http.ResponseWriter, r *http.Request)
func (ApplicationsHandler) Show ¶
func (handler ApplicationsHandler) Show(w http.ResponseWriter, r *http.Request)
type ApplicationsService ¶
type ApplicationsService struct { ApplicationsGateway ApplicationsDataGateway IntegrationsGateway IntegrationsDataGateway Providers map[string]Provider }
func (ApplicationsService) Apply ¶
func (service ApplicationsService) Apply(jsonRequest Orchestration) error
func (ApplicationsService) GatherRecords ¶
func (service ApplicationsService) GatherRecords(identifier string) (ApplicationInfo, IntegrationInfo, Provider, error)
func (ApplicationsService) RetainAction ¶
func (service ApplicationsService) RetainAction(fromPolicies, toPolicies []policysupport.PolicyInfo) ([]policysupport.PolicyInfo, error)
func (ApplicationsService) RetainResource ¶
func (service ApplicationsService) RetainResource(fromPolicies, toPolicies []policysupport.PolicyInfo) ([]policysupport.PolicyInfo, error)
type DiscoveryWorkFinder ¶
type DiscoveryWorkFinder struct { Results chan bool Gateway IntegrationsDataGateway }
func NewDiscoveryWorkFinder ¶
func NewDiscoveryWorkFinder(gateway IntegrationsDataGateway) DiscoveryWorkFinder
func (*DiscoveryWorkFinder) FindRequested ¶
func (finder *DiscoveryWorkFinder) FindRequested() []interface{}
func (*DiscoveryWorkFinder) MarkCompleted ¶
func (finder *DiscoveryWorkFinder) MarkCompleted()
func (*DiscoveryWorkFinder) MarkErroneous ¶
func (finder *DiscoveryWorkFinder) MarkErroneous()
func (*DiscoveryWorkFinder) Stop ¶
func (finder *DiscoveryWorkFinder) Stop()
type DiscoveryWorker ¶
type DiscoveryWorker struct { Providers map[string]Provider Gateway ApplicationsDataGateway }
func (*DiscoveryWorker) Run ¶
func (n *DiscoveryWorker) Run(work interface{}) error
type Integration ¶
type IntegrationInfo ¶
type IntegrationRecord ¶
type Integrations ¶
type Integrations struct {
Integrations []Integration `json:"integrations"`
}
type IntegrationsDataGateway ¶
func (IntegrationsDataGateway) Delete ¶
func (gateway IntegrationsDataGateway) Delete(id string) error
func (IntegrationsDataGateway) Find ¶
func (gateway IntegrationsDataGateway) Find() ([]IntegrationRecord, error)
func (IntegrationsDataGateway) FindById ¶
func (gateway IntegrationsDataGateway) FindById(id string) (IntegrationRecord, error)
type IntegrationsHandler ¶
type IntegrationsHandler struct {
// contains filtered or unexported fields
}
func (IntegrationsHandler) Create ¶
func (handler IntegrationsHandler) Create(w http.ResponseWriter, r *http.Request)
func (IntegrationsHandler) Delete ¶
func (handler IntegrationsHandler) Delete(w http.ResponseWriter, r *http.Request)
func (IntegrationsHandler) List ¶
func (handler IntegrationsHandler) List(w http.ResponseWriter, _ *http.Request)
func (IntegrationsHandler) RunWorker ¶
func (handler IntegrationsHandler) RunWorker()
type Orchestration ¶
type OrchestrationHandler ¶
type OrchestrationHandler struct {
// contains filtered or unexported fields
}
func (OrchestrationHandler) Update ¶
func (o OrchestrationHandler) Update(writer http.ResponseWriter, request *http.Request)
type Provider ¶
type Provider interface { Name() string DiscoverApplications(IntegrationInfo) ([]ApplicationInfo, error) GetPolicyInfo(IntegrationInfo, ApplicationInfo) ([]policysupport.PolicyInfo, error) SetPolicyInfo(IntegrationInfo, ApplicationInfo, []policysupport.PolicyInfo) (status int, foundErr error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.