handler

package
v0.0.0-...-922fce5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPolicyV1Alpha1

func AddPolicyV1Alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func AddScheduleV1Alpha1

func AddScheduleV1Alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func ChangeStateV1alpha1

func ChangeStateV1alpha1(ctx context.Context, awsClientPool *aws.ClientPool, gcpClientPool *gcp.ClientPool,
	azureClientPool *azure.ClientPool,
) http.HandlerFunc

* For every request, naively we will init a new:

  • EndpointResolverWithOptions to be able to emulate with localstack and return aws config in order to pass to its super.

Problem: if there are N in queue -> N request to aws although there will be k amount of request will use the same AssumeRoleProvider (k<=N)

Optimization: - We can init a client pool identified by AssumeRoleARN

func DeletePolicyV1alpha1

func DeletePolicyV1alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func DeleteScheduleV1alpha1

func DeleteScheduleV1alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func GetPolicyV1Alpha1

func GetPolicyV1Alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func GetScheduleV1alpha1

func GetScheduleV1alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func GetTimeZoneV1Alpha1

func GetTimeZoneV1Alpha1() http.HandlerFunc

func GetVersionInfoV1Alpha1

func GetVersionInfoV1Alpha1(v version.Version) http.HandlerFunc

func ListPolicyV1alpha1

func ListPolicyV1alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func ListScheduleV1alpha1

func ListScheduleV1alpha1(ctx context.Context, store store.Interface) http.HandlerFunc

func ScheduleTaskV1alpha1

func ScheduleTaskV1alpha1(ctx context.Context, store store.Interface,
	taskProcessor worker.Interface) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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