Documentation ¶
Index ¶
- type Convention
- func (c Convention) Deploy(ctx context.Context, r release.Release) (Deployment, error)
- func (c Convention) Destroy(ctx context.Context, d Deployment) error
- func (c Convention) Find(ctx context.Context, deploymentName string) (Deployment, error)
- func (c Convention) List(ctx context.Context, deploymentPrefix string) ([]Deployment, error)
- type Deployment
- type FunctionService
- type RegistryService
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Convention ¶
func FromServices ¶
func FromServices(c config.Config, f FunctionService, r RegistryService) Convention
func (Convention) Deploy ¶
func (c Convention) Deploy(ctx context.Context, r release.Release) (Deployment, error)
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 }
Click to show internal directories.
Click to hide internal directories.