Documentation ¶
Index ¶
- Constants
- type AwsApiGatewayProvider
- func (a *AwsApiGatewayProvider) DiscoverApplications(integrationInfo policyprovider.IntegrationInfo) (apps []policyprovider.ApplicationInfo, err error)
- func (a *AwsApiGatewayProvider) GetPolicyInfo(info policyprovider.IntegrationInfo, appInfo policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
- func (a *AwsApiGatewayProvider) Name() string
- func (a *AwsApiGatewayProvider) SetPolicyInfo(info policyprovider.IntegrationInfo, ...) (status int, foundErr error)
- type AwsApiGatewayProviderOpt
- type AwsApiGatewayProviderService
- func (s *AwsApiGatewayProviderService) DiscoverApplications(_ policyprovider.IntegrationInfo) ([]policyprovider.ApplicationInfo, error)
- func (s *AwsApiGatewayProviderService) GetPolicyInfo(appInfo policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
- func (s *AwsApiGatewayProviderService) SetPolicyInfo(appInfo policyprovider.ApplicationInfo, policyInfos []hexapolicy.PolicyInfo) (int, error)
Constants ¶
View Source
const ProviderTypeAwsApiGW string = "awsapigw"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsApiGatewayProvider ¶
type AwsApiGatewayProvider struct {
// contains filtered or unexported fields
}
func NewAwsApiGatewayProvider ¶
func NewAwsApiGatewayProvider(opts ...AwsApiGatewayProviderOpt) *AwsApiGatewayProvider
func (*AwsApiGatewayProvider) DiscoverApplications ¶
func (a *AwsApiGatewayProvider) DiscoverApplications(integrationInfo policyprovider.IntegrationInfo) (apps []policyprovider.ApplicationInfo, err error)
func (*AwsApiGatewayProvider) GetPolicyInfo ¶
func (a *AwsApiGatewayProvider) GetPolicyInfo(info policyprovider.IntegrationInfo, appInfo policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
func (*AwsApiGatewayProvider) Name ¶
func (a *AwsApiGatewayProvider) Name() string
func (*AwsApiGatewayProvider) SetPolicyInfo ¶
func (a *AwsApiGatewayProvider) SetPolicyInfo(info policyprovider.IntegrationInfo, applicationInfo policyprovider.ApplicationInfo, policyInfos []hexapolicy.PolicyInfo) (status int, foundErr error)
type AwsApiGatewayProviderOpt ¶
type AwsApiGatewayProviderOpt func(provider *AwsApiGatewayProvider)
func WithCognitoClientOverride ¶
func WithCognitoClientOverride(cognitoClientOverride awscognito.CognitoClient) AwsApiGatewayProviderOpt
func WithPolicyStoreSvcOverride ¶
func WithPolicyStoreSvcOverride(policyStoreSvcOverride dynamodbpolicy.PolicyStoreSvc) AwsApiGatewayProviderOpt
type AwsApiGatewayProviderService ¶
type AwsApiGatewayProviderService struct {
// contains filtered or unexported fields
}
func NewAwsApiGatewayProviderService ¶
func NewAwsApiGatewayProviderService(cognitoClient awscognito.CognitoClient, policySvc dynamodbpolicy.PolicyStoreSvc) *AwsApiGatewayProviderService
func (*AwsApiGatewayProviderService) DiscoverApplications ¶
func (s *AwsApiGatewayProviderService) DiscoverApplications(_ policyprovider.IntegrationInfo) ([]policyprovider.ApplicationInfo, error)
func (*AwsApiGatewayProviderService) GetPolicyInfo ¶
func (s *AwsApiGatewayProviderService) GetPolicyInfo(appInfo policyprovider.ApplicationInfo) ([]hexapolicy.PolicyInfo, error)
func (*AwsApiGatewayProviderService) SetPolicyInfo ¶
func (s *AwsApiGatewayProviderService) SetPolicyInfo(appInfo policyprovider.ApplicationInfo, policyInfos []hexapolicy.PolicyInfo) (int, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.