clients

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigEnvVariableName = "CONFIGURATION"
View Source
const FunctionClarityBucketName = "functionclarity"
View Source
const FunctionClarityLambdaVerierName = "FunctionClarityLambda"

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient struct {
	// contains filtered or unexported fields
}

func NewAwsClient

func NewAwsClient(accessKey string, secretKey string, s3 string, region string, lambdaRegion string) *AwsClient

func NewAwsClientInit

func NewAwsClientInit(accessKey string, secretKey string, region string) *AwsClient

func (*AwsClient) BlockFunction

func (o *AwsClient) BlockFunction(funcIdentifier *string) error

func (*AwsClient) DeleteConcurrencyLevel

func (o *AwsClient) DeleteConcurrencyLevel(funcIdentifier string) error

func (*AwsClient) DeployFunctionClarity

func (o *AwsClient) DeployFunctionClarity(trailName string, keyPath string, deploymentConfig i.AWSInput, suffix string) error

func (*AwsClient) DownloadPublicKeys added in v1.0.3

func (o *AwsClient) DownloadPublicKeys(bucketPath string) (string, error)

func (*AwsClient) DownloadSignature added in v1.0.3

func (o *AwsClient) DownloadSignature(fileName string, outputType string, bucketPathToSignatures string) error

func (*AwsClient) FillNotificationDetails

func (o *AwsClient) FillNotificationDetails(notification *Notification, functionIdentifier string) error

func (*AwsClient) FuncContainsTags

func (o *AwsClient) FuncContainsTags(funcIdentifier string, tagKes []string) (bool, error)

func (*AwsClient) GetConcurrencyLevel

func (o *AwsClient) GetConcurrencyLevel(funcIdentifier string) (*int32, error)

func (*AwsClient) GetConcurrencyLevelTag

func (o *AwsClient) GetConcurrencyLevelTag(funcIdentifier string, tag string) (error, *int32)

func (*AwsClient) GetEcrToken

func (o *AwsClient) GetEcrToken() (*ecr.GetAuthorizationTokenOutput, error)

func (*AwsClient) GetFuncCode

func (o *AwsClient) GetFuncCode(funcIdentifier string) (string, error)

func (*AwsClient) GetFuncHash added in v1.0.3

func (o *AwsClient) GetFuncHash(funcIdentifier string) (string, error)

func (*AwsClient) GetFuncImageURI

func (o *AwsClient) GetFuncImageURI(funcIdentifier string) (string, error)

func (*AwsClient) HandleBlock

func (o *AwsClient) HandleBlock(funcIdentifier *string, failed bool) error

func (*AwsClient) HandleDetect

func (o *AwsClient) HandleDetect(funcIdentifier *string, failed bool) error

func (*AwsClient) IsBucketExist

func (o *AwsClient) IsBucketExist(bucketName string) bool

func (*AwsClient) IsCloudTrailExist

func (o *AwsClient) IsCloudTrailExist(trailName string) bool

func (*AwsClient) IsFuncInRegions

func (o *AwsClient) IsFuncInRegions(regions []string) bool

func (*AwsClient) IsSnsTopicExist

func (o *AwsClient) IsSnsTopicExist(topicArn string) bool

func (*AwsClient) Notify

func (o *AwsClient) Notify(msg string, topicARN string) error

func (*AwsClient) ResolvePackageType

func (o *AwsClient) ResolvePackageType(funcIdentifier string) (string, error)

func (*AwsClient) UnblockFunction

func (o *AwsClient) UnblockFunction(funcIdentifier *string) error

func (*AwsClient) UpdateVerifierFucConfig

func (o *AwsClient) UpdateVerifierFucConfig(action *string, includedFuncTagKeys *[]string, includedFuncRegions *[]string, topic *string) error

func (*AwsClient) Upload

func (o *AwsClient) Upload(signature string, identity string, isKeyless bool) error

func (*AwsClient) ValidateCredentials

func (o *AwsClient) ValidateCredentials() bool

type Client

type Client interface {
	ResolvePackageType(funcIdentifier string) (string, error)
	GetFuncCode(funcIdentifier string) (string, error)
	GetFuncImageURI(funcIdentifier string) (string, error)
	GetFuncHash(funcIdentifier string) (string, error)
	IsFuncInRegions(regions []string) bool
	FuncContainsTags(funcIdentifier string, tagKes []string) (bool, error)
	Upload(signature string, identity string, isKeyless bool) error
	DownloadSignature(fileName string, outputType string, bucketPathToSignatures string) error
	HandleBlock(funcIdentifier *string, failed bool) error
	HandleDetect(funcIdentifier *string, failed bool) error
	Notify(msg string, snsArn string) error
	FillNotificationDetails(notification *Notification, functionIdentifier string) error
	DownloadPublicKeys(path string) (string, error)
}

type GCPClient

type GCPClient struct {
	// contains filtered or unexported fields
}

func NewGCPClientInit

func NewGCPClientInit(bucket string, location string, functionRegion string) *GCPClient

func (*GCPClient) DownloadPublicKeys added in v1.0.3

func (o *GCPClient) DownloadPublicKeys(path string) (string, error)

func (*GCPClient) DownloadSignature added in v1.0.3

func (p *GCPClient) DownloadSignature(fileName string, outputType string, bucketPathToSignatures string) error

func (*GCPClient) FillNotificationDetails

func (p *GCPClient) FillNotificationDetails(notification *Notification, functionIdentifier string) error

func (*GCPClient) FuncContainsTags

func (p *GCPClient) FuncContainsTags(funcIdentifier string, tagKes []string) (bool, error)

func (*GCPClient) GetFuncCode

func (p *GCPClient) GetFuncCode(funcIdentifier string) (string, error)

func (*GCPClient) GetFuncHash added in v1.0.3

func (o *GCPClient) GetFuncHash(funcIdentifier string) (string, error)

func (*GCPClient) GetFuncImageURI

func (p *GCPClient) GetFuncImageURI(funcIdentifier string) (string, error)

func (*GCPClient) HandleBlock

func (p *GCPClient) HandleBlock(funcIdentifier *string, failed bool) error

func (*GCPClient) HandleDetect

func (p *GCPClient) HandleDetect(funcIdentifier *string, failed bool) error

func (*GCPClient) IsFuncInRegions

func (p *GCPClient) IsFuncInRegions(regions []string) bool

func (*GCPClient) Notify

func (p *GCPClient) Notify(msg string, snsArn string) error

func (*GCPClient) ResolvePackageType

func (p *GCPClient) ResolvePackageType(funcIdentifier string) (string, error)

func (*GCPClient) Upload

func (p *GCPClient) Upload(signature string, identity string, isKeyless bool) error

type Notification

type Notification struct {
	AccountId          string
	FunctionName       string
	FunctionIdentifier string
	Action             string
	Region             string
}

Jump to

Keyboard shortcuts

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