Documentation
¶
Index ¶
- Constants
- Variables
- func GetSubnetsFromSet(subnets *schema.Set) []string
- func IPAllowlistStatusCreate(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) resource.StateRefreshFunc
- func IPAllowlistStatusDelete(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) resource.StateRefreshFunc
- func IPAllowlistStatusRead(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) resource.StateRefreshFunc
- func ProcessResponse(resp *http.Response, targetStateCodes []string, pendingStatusCodes []string) (interface{}, string, error)
- func ResourceIPAllowlist() *schema.Resource
- func WaitIPAllowlistCreate(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) error
- func WaitIPAllowlistDelete(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) error
- func WaitIPAllowlistRead(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, ...) ([]string, error)
Constants ¶
View Source
const ( CrudDelayTime = 1 * time.Second PollDelayTime = 3 * time.Second Timeout = 20 * time.Minute PollInterval = 1 * time.Minute )
View Source
const (
ResourceKey = "scp_ip_allowlists"
)
Variables ¶
View Source
var ( PendingStatusCRUD = []string{http.StatusText(429)} PendingStatusVerifyCreated = []string{http.StatusText(429)} PendingStatusVerifyDeleted = []string{http.StatusText(200), http.StatusText(429)} TargetStatusResourceChange = []string{http.StatusText(200)} TargetStatusResourceExists = []string{http.StatusText(200)} TargetStatusResourceDeleted = []string{http.StatusText(404)} )
Functions ¶
func GetSubnetsFromSet ¶
func IPAllowlistStatusCreate ¶
func IPAllowlistStatusDelete ¶
func IPAllowlistStatusRead ¶
func IPAllowlistStatusRead(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, feature string) resource.StateRefreshFunc
func ProcessResponse ¶
func ResourceIPAllowlist ¶
func WaitIPAllowlistCreate ¶
func WaitIPAllowlistCreate(ctx context.Context, acsClient v2.ClientInterface, stack v2.Stack, feature v2.Feature, newSubnets []string) error
WaitIPAllowlistCreate Handles retry logic for POST requests for create lifecycle function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.