deployment

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Convention

type Convention struct {
	Config  config.Config
	Service Services
}

func (Convention) Deploy

func (Convention) Destroy

func (c Convention) Destroy(ctx context.Context, d Deployment) error

func (Convention) Find

func (c Convention) Find(ctx context.Context, deploymentName string) (Deployment, error)

func (Convention) List

func (c Convention) List(ctx context.Context, deploymentPrefix string) ([]Deployment, error)

type Deployment

type Deployment struct {
	lambda.GetFunctionOutput
}

func (Deployment) FetchRelease

func (d Deployment) FetchRelease(ctx context.Context, r RegistryService, registryId string) (release.Release, error)

type FunctionService

type FunctionService interface {
	Inspect(ctx context.Context, name string) (*lambda.GetFunctionOutput, error)
	List(ctx context.Context, prefix string) ([]lambda.GetFunctionOutput, error)
	PutPolicy(ctx context.Context, arn string, document string, tags map[string]string) (*iam.GetPolicyOutput, error)
	DeletePolicy(ctx context.Context, arn string) (*iam.DeletePolicyOutput, error)
	PutRole(ctx context.Context, name string, document string, tags map[string]string) (*iam.GetRoleOutput, error)
	DeleteRole(ctx context.Context, name string) (*iam.DeleteRoleOutput, error)
	AttachPolicyToRole(ctx context.Context, policyArn, roleName string) (*iam.AttachRolePolicyOutput, error)
	DetachPolicyFromRole(ctx context.Context, policyArn, roleName string) (*iam.DetachRolePolicyOutput, error)
	DeleteFunction(ctx context.Context, name string) (*lambda.DeleteFunctionOutput, error)
	GetRolePolicies(ctx context.Context, name string) (*iam.ListAttachedRolePoliciesOutput, error)
	PutFunction(ctx context.Context, put *lambda.CreateFunctionInput, concurreny int32) (*lambda.GetFunctionOutput, error)
	PatchFunction(ctx context.Context, patch *lambda.UpdateFunctionConfigurationInput) (*lambda.GetFunctionConfigurationOutput, error)
	EnsureEniGcRole(ctx context.Context) (*iam.GetRoleOutput, error)
}

type RegistryService

type RegistryService interface {
	InspectByDigest(ctx context.Context, registryId, repository, digest string) (dockerTypes.ImageInspect, error)
}

type Services

type Services struct {
	Function FunctionService
	Registry RegistryService
}

Jump to

Keyboard shortcuts

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