cloudfront

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Behavior

type Behavior struct {
	PathPattern string
}

type Origin

type Origin struct {
	Host      string
	Behaviors []Behavior
}

type OriginBuilder

type OriginBuilder struct {
	// contains filtered or unexported fields
}

func NewOriginBuilder

func NewOriginBuilder(host string) OriginBuilder

func (OriginBuilder) Build

func (b OriginBuilder) Build() Origin

func (OriginBuilder) WithBehavior

func (b OriginBuilder) WithBehavior(pathPattern string) OriginBuilder

type OriginRepository

type OriginRepository interface {
	// Save ensures the given origin exists on the CloudFront distribution of given ID
	Save(id string, o Origin) error
}

OriginRepository provides a repository for manipulating CloudFront distributions to match desired configuration

func NewOriginRepository

func NewOriginRepository(awsClient cloudfrontiface.CloudFrontAPI) OriginRepository

NewOriginRepository creates a new AWS CloudFront Origin repository

Jump to

Keyboard shortcuts

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