Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateProvider ¶
type CertificateProvider struct { Client *acm.ACM Status *api.DistributionStatus Certificate *resolver.Certificate }
func NewCertificateProvider ¶
func NewCertificateProvider( cfg client.ConfigProvider, status *api.DistributionStatus, cert *resolver.Certificate, ) *CertificateProvider
Sets up a new instance of the CertificateProvider
func (*CertificateProvider) Check ¶
func (c *CertificateProvider) Check() error
func (*CertificateProvider) Create ¶
func (c *CertificateProvider) Create() error
func (*CertificateProvider) Delete ¶
func (c *CertificateProvider) Delete() error
func (*CertificateProvider) Reconcile ¶
func (c *CertificateProvider) Reconcile() error
type CloudFrontProvider ¶
type CloudFrontProvider struct {
Auth *auth.AwsAuthProvider
}
func New ¶
func New(corev1 corev1rest.CoreV1Interface) (*CloudFrontProvider, error)
func (CloudFrontProvider) Delete ¶
func (p CloudFrontProvider) Delete( class api.DistributionClassSpec, distro api.Distribution, status *api.DistributionStatus, ) error
func (CloudFrontProvider) Reconcile ¶
func (p CloudFrontProvider) Reconcile( class api.DistributionClassSpec, distro api.Distribution, cert *resolver.Certificate, status *api.DistributionStatus, ) error
Creates a new CloudFront Provider from the given Distribution and calculated ResolvedOrigin
func (CloudFrontProvider) Wants ¶
func (p CloudFrontProvider) Wants(class api.DistributionClassSpec) bool
type DistributionProvider ¶
type DistributionProvider struct { Client *cloudfront.CloudFront Distribution api.Distribution Class cfapi.CloudFrontSpec Status *api.DistributionStatus CurrentState *cloudfront.Distribution DesiredState *cloudfront.DistributionConfig }
func NewDistributionProvider ¶
func NewDistributionProvider( cfg client.ConfigProvider, class api.DistributionClassSpec, distro api.Distribution, status *api.DistributionStatus, ) *DistributionProvider
Sets up a new instance of the DistributionProvider
func (*DistributionProvider) Check ¶
func (c *DistributionProvider) Check() error
Checks an existing Distribution's state matches with what is expected and updates it if not
func (*DistributionProvider) Create ¶
func (c *DistributionProvider) Create() error
Creates a CloudFront Distribution and sets its status on the Distribution resource
This is called in one of two circumstances:
- The Distribution Controller does not find any CloudFront state on the Distribution.
- The Distribution Controller has found CloudFront state, but when Check() was running, AWS returned a Not Found on it (implying the Distribution has been destroyed).
func (*DistributionProvider) Delete ¶
func (c *DistributionProvider) Delete() error
func (*DistributionProvider) Reconcile ¶
func (c *DistributionProvider) Reconcile() error
Click to show internal directories.
Click to hide internal directories.