functions

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudFunctionIsInternal

func CloudFunctionIsInternal(resource commons.Resource) bool

func CloudFunctionIsNotUsingDefaultSA

func CloudFunctionIsNotUsingDefaultSA(resource commons.Resource) bool

func CloudFunctionRequireIAMAuthentication

func CloudFunctionRequireIAMAuthentication(resource commons.Resource) bool

func CloudFunctionsDoesNotHaveSecretInEnv

func CloudFunctionsDoesNotHaveSecretInEnv(resource commons.Resource) bool

func GetCloudFunctionPolicy

func GetCloudFunctionPolicy(function *functionspb.Function) *iampb.Policy

func GetCloudFunctions

func GetCloudFunctions(account internal.GCPAccount) []*functionspb.Function

func RunChecks

func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, queue chan []commons.Check)

Types

type CloudFunction

type CloudFunction struct {
	Function *functionspb.Function
	Project  string
	Policy   *iampb.Policy
}

func (*CloudFunction) GetID

func (c *CloudFunction) GetID() string

Jump to

Keyboard shortcuts

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