Versions in this module Expand all Collapse all v0 v0.0.1 Nov 8, 2023 Changes in this version + type BrokerClient interface + Deprovision func(instance internal.Instance) (string, error) + type CisClient interface + FetchSubaccountsToDelete func() ([]string, error) + type CisResponse struct + Events []Event + PageNum int + Total int + TotalPages int + type CisResponseVer1 struct + Events []EventVer1 + Total int + TotalPages int + type Client struct + func NewClient(ctx context.Context, config Config, log logrus.FieldLogger) *Client + func (c *Client) FetchSubaccountsToDelete() ([]string, error) + func (c *Client) SetHttpClient(httpClient *http.Client) + type ClientVer1 struct + func NewClientVer1(ctx context.Context, config Config, log logrus.FieldLogger) *ClientVer1 + func (c *ClientVer1) FetchSubaccountsToDelete() ([]string, error) + func (c *ClientVer1) SetHttpClient(httpClient *http.Client) + type Config struct + AuthURL string + ClientID string + ClientSecret string + EventServiceURL string + MaxRequestRetries int + PageSize string + RateLimitingInterval time.Duration + type Event struct + CreationTime int64 + SubAccount string + Type string + type EventDataVer1 struct + SubAccount string + type EventVer1 struct + Data EventDataVer1 + Type string + type SubAccountCleanupService struct + func NewSubAccountCleanupService(client CisClient, brokerClient BrokerClient, storage storage.Instances, ...) *SubAccountCleanupService + func (ac *SubAccountCleanupService) Run() error