cdn

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoutingRulesData

func GetRoutingRulesData(d *schema.ResourceData) (*[]cdn.RoutingRule, error)

GetRoutingRulesData gets distribution routing rules data from terraform

func SetDistributionData

func SetDistributionData(d *schema.ResourceData, distribution cdn.Distribution) error

SetDistributionData sets distribution data from a distribution sdk object

Types

type Client

type Client struct {
	SdkClient *cdn.APIClient
}

Client is a struct that defines the CDN client

func NewCDNClient

func NewCDNClient(username, password, token, url, version, terraformVersion string) *Client

NewCDNClient returns a new CDN client

func (*Client) IsDistributionReady

func (c *Client) IsDistributionReady(ctx context.Context, d *schema.ResourceData) (bool, error)

IsDistributionReady checks if the distribution is ready

Jump to

Keyboard shortcuts

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