iapProvider

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleClient

type GoogleClient struct {
	HttpClient HTTPClient
	ProjectId  string
}

func (*GoogleClient) GetAppEngineApplications

func (c *GoogleClient) GetAppEngineApplications() ([]policyprovider.ApplicationInfo, error)

func (*GoogleClient) GetBackendApplications

func (c *GoogleClient) GetBackendApplications() ([]policyprovider.ApplicationInfo, error)

func (*GoogleClient) GetBackendPolicy

func (c *GoogleClient) GetBackendPolicy(name, objectId string) ([]iam.Binding, error)

func (*GoogleClient) SetBackendPolicy

func (c *GoogleClient) SetBackendPolicy(name, objectId string, binding *iam.Binding) error

type GoogleProvider

type GoogleProvider struct {
	HttpClientOverride HTTPClient
	GcpMapper          *gcpBind.GooglePolicyMapper
}

func (*GoogleProvider) DiscoverApplications

func (g *GoogleProvider) DiscoverApplications(info policyprovider.IntegrationInfo) (apps []policyprovider.ApplicationInfo, err error)

func (*GoogleProvider) GetPolicyInfo

func (g *GoogleProvider) GetPolicyInfo(integration policyprovider.IntegrationInfo, app policyprovider.ApplicationInfo) (infos []hexapolicy.PolicyInfo, err error)

func (*GoogleProvider) Name

func (g *GoogleProvider) Name() string

func (*GoogleProvider) NewHttpClient

func (g *GoogleProvider) NewHttpClient(key []byte) (HTTPClient, error)

func (*GoogleProvider) Project

func (g *GoogleProvider) Project(key []byte) string

func (*GoogleProvider) SetPolicyInfo

func (g *GoogleProvider) SetPolicyInfo(integration policyprovider.IntegrationInfo, app policyprovider.ApplicationInfo, policyInfos []hexapolicy.PolicyInfo) (int, error)

type HTTPClient

type HTTPClient interface {
	Get(url string) (resp *http.Response, err error)
	Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL