Documentation ¶
Index ¶
- type Diff
- type Distribution
- type DistributionConfig
- type Service
- func (s *Service) CreateOriginAccessIdentity() (string, error)
- func (s *Service) DeleteDistribution(distributionId string) error
- func (s *Service) DeleteOriginAccessIdentity(oaiId string) error
- func (s *Service) DisableDistribution(distributionId string) error
- func (s *Service) EnsureDistribution(config DistributionConfig) (*Distribution, error)
- func (s *Service) GetOriginAccessIdentity(oaiId string) (*cloudfront.OriginAccessIdentity, *string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶ added in v0.9.0
type Diff struct { ETag *string Existing *cloudfront.Distribution NeedsUpdate bool NeedsCreate bool TagsToBeAdded map[string]string TagsToBeRemoved []string }
func (*Diff) IsUpToDate ¶ added in v0.9.0
type Distribution ¶
type DistributionConfig ¶ added in v0.9.0
type Service ¶
type Service struct { Client cloudfrontiface.CloudFrontAPI // contains filtered or unexported fields }
Service holds a collection of interfaces.
func NewService ¶
NewService returns a new service given the Cloudfront api client.
func (*Service) CreateOriginAccessIdentity ¶
func (*Service) DeleteDistribution ¶
func (*Service) DeleteOriginAccessIdentity ¶
func (*Service) DisableDistribution ¶
func (*Service) EnsureDistribution ¶ added in v0.9.0
func (s *Service) EnsureDistribution(config DistributionConfig) (*Distribution, error)
func (*Service) GetOriginAccessIdentity ¶
func (s *Service) GetOriginAccessIdentity(oaiId string) (*cloudfront.OriginAccessIdentity, *string, error)
Click to show internal directories.
Click to hide internal directories.