cfr

package
v0.0.0-...-fd97e0e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

package cfr provides utilities for interaction with cloudfront

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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