Documentation
¶
Index ¶
- Constants
- func CreateCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[cdn.CustomDomain]
- func CreateDistributionPoolWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
- func DeleteCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface, ...) *wait.AsyncActionHandler[cdn.CustomDomain]
- func DeleteDistributionWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
- func UpdateDistributionWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
- type APIClientInterface
Constants ¶
View Source
const ( // Deprecated: DistributionStatusCreating is deprecated and will be removed after 14th November 2025. Use [cdn.DISTRIBUTIONSTATUS_CREATING] instead. DistributionStatusCreating = "CREATING" // Deprecated: DistributionStatusActive is deprecated and will be removed after 14th November 2025. Use [cdn.DISTRIBUTIONSTATUS_ACTIVE] instead. DistributionStatusActive = "ACTIVE" // Deprecated: DistributionStatusUpdating is deprecated and will be removed after 14th November 2025. Use [cdn.DISTRIBUTIONSTATUS_UPDATING] instead. DistributionStatusUpdating = "UPDATING" // Deprecated: DistributionStatusDeleting is deprecated and will be removed after 14th November 2025. Use [cdn.DISTRIBUTIONSTATUS_DELETING] instead. DistributionStatusDeleting = "DELETING" // Deprecated: DistributionStatusError is deprecated and will be removed after 14th November 2025. Use [cdn.DISTRIBUTIONSTATUS_ERROR] instead. DistributionStatusError = "ERROR" )
Variables ¶
This section is empty.
Functions ¶
func CreateCDNCustomDomainWaitHandler ¶
func CreateCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface, projectId, distributionId, domain string) *wait.AsyncActionHandler[cdn.CustomDomain]
func CreateDistributionPoolWaitHandler ¶
func CreateDistributionPoolWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
func DeleteCDNCustomDomainWaitHandler ¶
func DeleteCDNCustomDomainWaitHandler(ctx context.Context, a APIClientInterface, projectId, distributionId, domain string) *wait.AsyncActionHandler[cdn.CustomDomain]
func DeleteDistributionWaitHandler ¶
func DeleteDistributionWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
func UpdateDistributionWaitHandler ¶
func UpdateDistributionWaitHandler(ctx context.Context, api APIClientInterface, projectId, distributionId string) *wait.AsyncActionHandler[cdn.GetDistributionResponse]
Types ¶
type APIClientInterface ¶
type APIClientInterface interface {
GetDistributionExecute(ctx context.Context, projectId string, distributionId string) (*cdn.GetDistributionResponse, error)
GetCustomDomainExecute(ctx context.Context, projectId string, distributionId string, domain string) (*cdn.GetCustomDomainResponse, error)
}
Interfaces needed for tests
Click to show internal directories.
Click to hide internal directories.