googlecloud

package
v0.0.0-...-2e899d5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 16 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() ([]orchestrator.ApplicationInfo, error)

func (*GoogleClient) GetBackendApplications

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

func (*GoogleClient) GetBackendPolicy

func (c *GoogleClient) GetBackendPolicy(name, objectId string) ([]hexapolicy.PolicyInfo, error)

func (*GoogleClient) SetBackendPolicy

func (c *GoogleClient) SetBackendPolicy(name, objectId string, p hexapolicy.PolicyInfo) error

type GoogleProvider

type GoogleProvider struct {
	HttpClientOverride HTTPClient
}

func (*GoogleProvider) DiscoverApplications

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

func (*GoogleProvider) GetPolicyInfo

func (g *GoogleProvider) GetPolicyInfo(integration orchestrator.IntegrationInfo, app orchestrator.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 orchestrator.IntegrationInfo, app orchestrator.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