Documentation ¶
Overview ¶
package cfr provides utilities for interaction with cloudfront
Index ¶
- func DeleteDistribution(cfr *cloudfront.CloudFront, dist *Distribution) error
- func DisableDistribution(cfr *cloudfront.CloudFront, dist *Distribution) error
- func New(id string, key string, httpClient *http.Client) *cloudfront.CloudFront
- func RefreshStatus(cfr *cloudfront.CloudFront, dist *Distribution) error
- type Distribution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDistribution ¶
func DeleteDistribution(cfr *cloudfront.CloudFront, dist *Distribution) error
func DisableDistribution ¶
func DisableDistribution(cfr *cloudfront.CloudFront, dist *Distribution) error
func New ¶
func New(id string, key string, httpClient *http.Client) *cloudfront.CloudFront
func RefreshStatus ¶
func RefreshStatus(cfr *cloudfront.CloudFront, dist *Distribution) error
Types ¶
type Distribution ¶
type Distribution struct { // "": we haven't even started bringing up this distribution // "InProgress": distribution is getting set up // "Deployed": distribution is ready to serve Status string // FQDN of this distribution Domain string // Lantern instance ID of the server that this distribution points to. InstanceId string // Free-form description of the purpose of this distribution. Comment string // Whether this distribution is enabled (currently only used for // deleting distributions) Enabled bool // contains filtered or unexported fields }
func CreateDistribution ¶
func CreateDistribution(cfr *cloudfront.CloudFront, name string, originDomain string, comment string) (*Distribution, error)
func ListDistributions ¶
func ListDistributions(cfr *cloudfront.CloudFront) ([]*Distribution, error)
Click to show internal directories.
Click to hide internal directories.